summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/config/rc.conf22
-rw-r--r--ranger/core/actions.py1
2 files changed, 12 insertions, 11 deletions
diff --git a/ranger/config/rc.conf b/ranger/config/rc.conf
index 62dd030f..fd883cb8 100644
--- a/ranger/config/rc.conf
+++ b/ranger/config/rc.conf
@@ -241,13 +241,13 @@ map S shell $SHELL
 
 map :  console
 map ;  console
-map !  console shell 
+map !  console shell%space
 map @  console -p6 shell  %%s
-map #  console shell -p 
-map s  console shell 
-map r  chain draw_possible_programs; console open_with 
-map f  console find 
-map cd console cd 
+map #  console shell -p%space
+map s  console shell%space
+map r  chain draw_possible_programs; console open_with%space
+map f  console find%space
+map cd console cd%space
 
 # Change the line mode
 map Mf linemode filename
@@ -271,7 +271,7 @@ map <F3> display_file
 map <F4> edit
 map <F5> copy
 map <F6> cut
-map <F7> console mkdir 
+map <F7> console mkdir%space
 map <F8> console delete
 map <F10> exit
 
@@ -286,7 +286,7 @@ map <PAGEDOWN> move down=1   pages=True
 map <PAGEUP>   move up=1     pages=True
 map <CR>       move right=1
 #map <DELETE>   console delete
-map <INSERT>   console touch 
+map <INSERT>   console touch%space
 
 # VIM-like
 copymap <UP>       k
@@ -337,7 +337,7 @@ map yn shell -f echo -n %f    | xsel -i; xsel -o | xsel -i -b
 # Filesystem Operations
 map =  chmod
 
-map cw console rename 
+map cw console rename%space
 map a  rename_append
 map A  eval fm.open_console('rename ' + fm.thisfile.basename)
 map I  eval fm.open_console('rename ' + fm.thisfile.basename, position=7)
@@ -372,7 +372,7 @@ map yj  eval fm.copy(dirarg=dict(down=1), narg=quantifier)
 map yk  eval fm.copy(dirarg=dict(up=1), narg=quantifier)
 
 # Searching
-map /  console search 
+map /  console search%space
 map n  search_next
 map N  search_next forward=False
 map ct search_next order=tag
@@ -439,7 +439,7 @@ map zP    toggle_option preview_directories
 map zs    toggle_option sort_case_insensitive
 map zu    toggle_option autoupdate_cumulative_size
 map zv    toggle_option use_preview_script
-map zf    console filter 
+map zf    console filter%space
 
 # Bookmarks
 map `<any>  enter_bookmark %any
diff --git a/ranger/core/actions.py b/ranger/core/actions.py
index c7bdcfec..ef74d7a2 100644
--- a/ranger/core/actions.py
+++ b/ranger/core/actions.py
@@ -210,6 +210,7 @@ class Actions(FileManagerAware, EnvironmentAware, SettingsAware):
         macros = {}
 
         macros['rangerdir'] = ranger.RANGERDIR
+        macros['space'] = ' '
 
         if self.fm.thisfile:
             macros['f'] = self.fm.thisfile.relative_path