summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorToon Nolten <toonn@toonn.io>2018-09-01 16:06:21 +0200
committerGitHub <noreply@github.com>2018-09-01 16:06:21 +0200
commit4974dca6baea741a22381e7744a8e8e86770ed3a (patch)
treea6549fc8857101f10ca9bf481108e4188b62f097 /ranger
parent2c04e3364f94c80ecf2f39681b5f380b351fb101 (diff)
parent2c3beb6a8aab819f165956818236892500b13c1a (diff)
downloadranger-4974dca6baea741a22381e7744a8e8e86770ed3a.tar.gz
Merge pull request #1285 from Zaeph/patch-1
Add support for default terminal word-movement commands to console
Diffstat (limited to 'ranger')
-rw-r--r--ranger/config/rc.conf9
1 files changed, 7 insertions, 2 deletions
diff --git a/ranger/config/rc.conf b/ranger/config/rc.conf
index 0228725e..5ac7cc70 100644
--- a/ranger/config/rc.conf
+++ b/ranger/config/rc.conf
@@ -349,6 +349,8 @@ map r  chain draw_possible_programs; console open_with%%space
 map f  console find%space
 map cd console cd%space
 
+map <C-p> console
+
 # Change the line mode
 map Mf linemode filename
 map Mi linemode fileinfo
@@ -615,8 +617,11 @@ cmap <left>  eval fm.ui.console.move(left=1)
 cmap <right> eval fm.ui.console.move(right=1)
 cmap <home>  eval fm.ui.console.move(right=0, absolute=True)
 cmap <end>   eval fm.ui.console.move(right=-1, absolute=True)
-cmap <a-left>   eval fm.ui.console.move_word(left=1)
-cmap <a-right>  eval fm.ui.console.move_word(right=1)
+cmap <a-b> eval fm.ui.console.move_word(left=1)
+cmap <a-f> eval fm.ui.console.move_word(right=1)
+
+copycmap <a-b> <a-left>
+copycmap <a-f> <a-right>
 
 # Line Editing
 cmap <backspace>  eval fm.ui.console.delete(-1)