The project is in a healthy, maintained state
A Textbringer plugin that automatically reverts buffers when files are modified externally.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Runtime

 Project Readme

Textbringer Auto Revert

A Textbringer plugin that automatically reverts buffers when files are modified externally.

Installation

Install the gem by executing:

gem install textbringer-auto-revert

Or add it to your Gemfile:

bundle add textbringer-auto-revert

Usage

Auto-revert mode is enabled by default when the plugin is loaded.

When a file is modified externally and the buffer has no unsaved changes, the buffer will automatically revert to the file's contents after any command execution.

Commands

Command Description
global_auto_revert_mode Toggle global auto-revert mode on/off

Disabling

To temporarily disable, run M-x global_auto_revert_mode.

To permanently disable, uninstall the gem or add to your Textbringer config:

Textbringer::GlobalAutoRevertMode.disable
Textbringer::GlobalAutoRevertMode.enabled = false

Configuration

Key Default Description
:auto_revert_verbose true Show message when buffer is reverted

Development

After checking out the repo, run bundle install to install dependencies. Then, run bundle exec rake test to run the tests.

To install this gem onto your local machine, run bundle exec rake install.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/yancya/textbringer-auto-revert.

License

The gem is available as open source under the terms of the WTFPL.