diff options
author | Abdo Roig-Maranges <abdo.roig@gmail.com> | 2013-02-10 12:30:15 +0100 |
---|---|---|
committer | Abdo Roig-Maranges <abdo.roig@gmail.com> | 2013-02-12 12:08:44 +0100 |
commit | 470cf6795559fb8525e6d4e7cbe6c693e0004639 (patch) | |
tree | 432c62f50da39f0d429c2ce57c721692cb635176 | |
parent | 014fd772df3fdd505a595babc9e29e1398980527 (diff) | |
download | ranger-470cf6795559fb8525e6d4e7cbe6c693e0004639.tar.gz |
Adds config settings and documentation for the vcs feature
-rw-r--r-- | doc/ranger.pod | 9 | ||||
-rw-r--r-- | ranger/config/rc.conf | 5 | ||||
-rw-r--r-- | ranger/container/settingobject.py | 2 |
3 files changed, 16 insertions, 0 deletions
diff --git a/doc/ranger.pod b/doc/ranger.pod index a06bc6ca..c388aaf7 100644 --- a/doc/ranger.pod +++ b/doc/ranger.pod @@ -690,6 +690,15 @@ Set the title to "ranger" in the tmux program? Use the preview script defined in the setting I<preview_script>? +=item vcs_aware [bool] + +Gather and display data about version control systems. Supported vcs: git, hg. + +=item vcs_backends [list] + +List of vcs backends to use. By default it is ['git', 'hg'], but can be set to +handle only 'git' repositories, for example. + =item xterm_alt_key [bool] Enable this if key combinations with the Alt Key don't work for you. diff --git a/ranger/config/rc.conf b/ranger/config/rc.conf index 5ca31038..bc9d89e8 100644 --- a/ranger/config/rc.conf +++ b/ranger/config/rc.conf @@ -43,6 +43,11 @@ set preview_script ~/.config/ranger/scope.sh # Use the external preview script or display simple plain text previews? set use_preview_script true +# Be aware of version control systems and display information about their +# state. Supported version control systems: git, mercurial, bzr. +set vcs_aware false +set vcs_backends git,hg + # Preview images in full color with the external command "w3mimgpreview"? set preview_images false diff --git a/ranger/container/settingobject.py b/ranger/container/settingobject.py index 3e5c287f..c5148e6d 100644 --- a/ranger/container/settingobject.py +++ b/ranger/container/settingobject.py @@ -45,6 +45,8 @@ ALLOWED_SETTINGS = { 'update_title': bool, 'update_tmux_title': bool, 'use_preview_script': bool, + 'vcs_aware': bool, + 'vcs_backends': list, 'xterm_alt_key': bool, } |