summary refs log tree commit diff stats
diff options
context:
space:
mode:
authortoonn <toonn@toonn.io>2018-04-24 16:09:34 +0200
committertoonn <toonn@toonn.io>2018-04-24 16:14:10 +0200
commitedd4f71863840f07e0e7df5c641f2a168f605573 (patch)
tree234c9c55ef91ad0fd163448b8d8dab560bbc73d4
parenta30b5e5b517a04f35e79a41a624aaedf187f6a36 (diff)
downloadranger-edd4f71863840f07e0e7df5c641f2a168f605573.tar.gz
Fix <C-h> mapping
<C-h> is variously interpreted as ^H or ^?, by copying the mapping to
both <backspace> and <backspace2> it should work either case.

Fixes #1083
-rw-r--r--ranger/config/rc.conf2
1 files changed, 2 insertions, 0 deletions
diff --git a/ranger/config/rc.conf b/ranger/config/rc.conf
index afe9ea42..9095de3d 100644
--- a/ranger/config/rc.conf
+++ b/ranger/config/rc.conf
@@ -507,6 +507,8 @@ map zc    set collapse_preview!
 map zd    set sort_directories_first!
 map zh    set show_hidden!
 map <C-h> set show_hidden!
+copymap <C-h> <backspace>
+copymap <backspace> <backspace2>
 map zI    set flushinput!
 map zi    set preview_images!
 map zm    set mouse_enabled!