aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo Vivier <leo.vivier@gmail.com>2018-09-01 11:01:37 +0200
committerLeo Vivier <leo.vivier@gmail.com>2018-09-01 11:01:37 +0200
commit565110840d6a0a54e99b77f797279ccb8e490f94 (patch)
tree834c0634bb820527af6997fcf7d20c044f0219f1
parent442c846f1c4f2f1c1e012008eb15ad57e01d765e (diff)
downloadranger-565110840d6a0a54e99b77f797279ccb8e490f94.tar.gz
Set default and alternative bindings for word-movements
- Alt-B and Alt-F are set as the default bindings (cmap), - Alt-LEFT and Alt-RIGHT are set as alternative bindings (copycmap).
-rw-r--r--ranger/config/rc.conf5
1 files changed, 3 insertions, 2 deletions
diff --git a/ranger/config/rc.conf b/ranger/config/rc.conf
index f25589e3..59c52084 100644
--- a/ranger/config/rc.conf
+++ b/ranger/config/rc.conf
@@ -615,11 +615,12 @@ 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)
cmap <delete> eval fm.ui.console.delete(0)