summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorLeo Vivier <leo.vivier@gmail.com>2018-09-02 09:50:37 +0200
committerLeo Vivier <leo.vivier@gmail.com>2018-09-02 15:57:28 +0200
commit94602cd89b4bc9d0b311d16e0ccc6781c829a95b (patch)
tree2c1e1e37ad94616cbab7fec76d94f22387927e75
parent4974dca6baea741a22381e7744a8e8e86770ed3a (diff)
downloadranger-94602cd89b4bc9d0b311d16e0ccc6781c829a95b.tar.gz
Add mapping to open console and pre-fill it with previous command
Fixes #1293.
Behaviour assigned to Ctrl-p.
Non-essential change which can be removed if we find a better use for Ctrl-p.
-rw-r--r--ranger/config/rc.conf2
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/config/rc.conf b/ranger/config/rc.conf
index 5ac7cc70..9c1a6a83 100644
--- a/ranger/config/rc.conf
+++ b/ranger/config/rc.conf
@@ -349,7 +349,7 @@ map r  chain draw_possible_programs; console open_with%%space
 map f  console find%space
 map cd console cd%space
 
-map <C-p> console
+map <C-p> chain console; eval fm.ui.console.history_move(-1)
 
 # Change the line mode
 map Mf linemode filename