From 470cf6795559fb8525e6d4e7cbe6c693e0004639 Mon Sep 17 00:00:00 2001 From: Abdo Roig-Maranges Date: Sun, 10 Feb 2013 12:30:15 +0100 Subject: Adds config settings and documentation for the vcs feature --- doc/ranger.pod | 9 +++++++++ ranger/config/rc.conf | 5 +++++ ranger/container/settingobject.py | 2 ++ 3 files changed, 16 insertions(+) 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? +=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, } -- cgit 1.4.1-2-gfad0 f stats