From db33fb09410af685839816ce26c13167aedcfda3 Mon Sep 17 00:00:00 2001 From: hut Date: Sun, 18 Apr 2010 17:56:13 +0200 Subject: defaults.keys: another example --- ranger/defaults/keys.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ranger/defaults/keys.py b/ranger/defaults/keys.py index 0fd25877..3f279d2b 100644 --- a/ranger/defaults/keys.py +++ b/ranger/defaults/keys.py @@ -69,8 +69,9 @@ map = keymanager.get_context('browser') map("d", fm.move(down=0.5, pages=True)) map("u", fm.move(up=0.5, pages=True)) -# Add direction keys to all keymaps +# Add keys to all contexts map = KeyMapWithDirections() # create new empty keymap. +map("q", fm.exit()) map.dir("", down=3) # I'm quick, I want to move 3 at once! keymanager.merge_all(map) # merge the new map into all existing ones. """ -- cgit 1.4.1-2-gfad0 > mirror of ranger - a simple, vim-like file managerakspecs <akspecs@tilde.institute>
summary refs log blame commit diff stats