about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2009-07-18 21:49:08 +0200
committerhut <hut@lavabit.com>2009-07-18 21:49:08 +0200
commitf5590f434263e9f8fbc7ba5d4211e984bade445a (patch)
tree5696ef7f6e36b8d32ad29b97642fefe983757598
parente3da2766bd220e85d6850ff6a0d1c692dba9c0d0 (diff)
downloadranger-f5590f434263e9f8fbc7ba5d4211e984bade445a.tar.gz
renamed option "dir_first" to "list_dir_first"
this is more obvious :-)
-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,