summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorrandnobx <randynobx@gmail.com>2017-06-15 19:07:26 -0400
committerrandnobx <randynobx@gmail.com>2017-06-15 19:07:26 -0400
commit704ac8d54f9eb4866209cb2d744bc15224e8c4c7 (patch)
treed4b5b7cc679e297dcb8e90d7a299013a09bef1ae /ranger
parentb70aae6561ee1c49e963a511c05c7d8003694e1b (diff)
downloadranger-704ac8d54f9eb4866209cb2d744bc15224e8c4c7.tar.gz
moved inode filtering from choosedir to show-only-dirs
Diffstat (limited to 'ranger')
-rw-r--r--ranger/core/main.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/ranger/core/main.py b/ranger/core/main.py
index 69fd6909..3f4f068a 100644
--- a/ranger/core/main.py
+++ b/ranger/core/main.py
@@ -119,7 +119,7 @@ def main(
         FileManagerAware.fm_set(fm)
         load_settings(fm, args.clean)
 
-        if args.choosedir:
+        if args.show_only_dirs:
             from ranger.container.directory import InodeFilterConstants
             fm.settings.global_inode_type_filter = InodeFilterConstants.DIRS
 
@@ -278,6 +278,8 @@ def parse_arguments():
     parser.add_option('--choosedir', type='string', metavar='PATH',
                       help="Makes ranger act like a directory chooser. When ranger quits"
                       ", it will write the name of the last visited directory to PATH")
+    parser.add_option('--show-only-dirs', action='store_true',
+                      help="Show only directories, no files or links")
     parser.add_option('--selectfile', type='string', metavar='filepath',
                       help="Open ranger with supplied file selected.")
     parser.add_option('--list-unused-keys', action='store_true',