Coder Social home page Coder Social logo

douglas / file-watcher Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lwblackledge/file-watcher

0.0 2.0 0.0 30 KB

An open file watcher for Atom that will prompt when the file on disk has changed.

License: MIT License

CoffeeScript 100.00%

file-watcher's Introduction

Atom file-watcher Package

This package watches open files for conflicts or changes, then uses the Atom confirm feature to prompt to reload each file.

You can turn the prompts for changes on and off in the package settings.

There is also a prompt option to open the original file in a new Atom window so that you can compare your current version with the disk version.

If you are looking at a file that has frequent changes you can also choose to 'Ignore All' changes, which will stop any future alerts until you reload the entire Atom window.

Installation

Either use apm:

  apm install file-watcher

Or find the package in the Atom registry and install.

Settings

AutoReload

Reload without a prompt. Warning: Overrides "Prompt on Change" and "Include the Compare option", and may cause a loss of work!

Include the Compare option

Enable this setting to add the Compare option to the Reload/Ignore prompt, which will open the file in a new editor so you can see the on-disk changes. Enabled by default.

Prompt on Change

Enable this setting to also show the Reload/Ignore prompt when the file changes on disk, even if there are no unsaved changes in Atom

Post-Compare Command

Define an Atom command to run after the compare is shown e.g. split-diff:toggle

Use WatchFile

Mounted file systems don't support inotify and Atom cannot tell when they change. This option adds polling and should only be enabled if you are using a mounted file system like Samba or SSHFS. There may be a slight delay as it polls every 5 seconds.

License

MIT License -- Copyright (c) 2015-2017 Laurence Blackledge

file-watcher's People

Contributors

lwblackledge avatar douglas avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.