From f5590f434263e9f8fbc7ba5d4211e984bade445a Mon Sep 17 00:00:00 2001 From: hut Date: Sat, 18 Jul 2009 21:49:08 +0200 Subject: renamed option "dir_first" to "list_dir_first" this is more obvious :-) --- code/directory.rb | 2 +- code/keys.rb | 2 +- ranger.conf | 2 +- ranger.rb | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/code/directory.rb b/code/directory.rb index 65c4047c..c3ab2fbe 100644 --- a/code/directory.rb +++ b/code/directory.rb @@ -224,7 +224,7 @@ class Directory def sort() @files = @files.sort {|x,y| - if Option.dir_first + if Option.list_dir_first if x.dir? if y.dir? then sort_sub(x, y) else -1 end else diff --git a/code/keys.rb b/code/keys.rb index b042c10e..f3ea33d0 100644 --- a/code/keys.rb +++ b/code/keys.rb @@ -478,7 +478,7 @@ module Fm Option.cd ^= true when 'td' - Option.dir_first ^= true + Option.list_dir_first ^= true @pwd.schedule ## }}} diff --git a/ranger.conf b/ranger.conf index ed72113d..45bf654d 100644 --- a/ranger.conf +++ b/ranger.conf @@ -1,9 +1,9 @@ Option.show_hidden = false Option.sort = :name -Option.dir_first = true Option.sort_reverse = false Option.colorscheme = 'default' Option.wide_bar = true Option.file_preview = true Option.preview = true +Option.list_dir_first = true diff --git a/ranger.rb b/ranger.rb index 50ff8ebf..fc74e012 100755 --- a/ranger.rb +++ b/ranger.rb @@ -35,7 +35,7 @@ end opt = { :show_hidden => false, :sort => :name, - :dir_first => true, + :list_dir_first => true, :sort_reverse => false, :cd => ARGV.include?('--cd'), :colorscheme => true, -- cgit 1.4.1-2-gfad0