about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--code/directory.rb2
-rw-r--r--code/keys.rb2
-rw-r--r--ranger.conf2
-rwxr-xr-xranger.rb2
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,