summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-04-30 02:37:26 +0200
committerhut <hut@lavabit.com>2010-04-30 02:37:26 +0200
commit5db3ddf07ac34bd9e5f5ebf6c4229b4854e7d76f (patch)
treeeec9a2299ec14c2487e12d7f4ba03e265af1ae71
parent2e971c4392957e455ef142318566b43a128fbf39 (diff)
downloadranger-5db3ddf07ac34bd9e5f5ebf6c4229b4854e7d76f.tar.gz
defaults.keys: new tabs start in the home directory
-rw-r--r--ranger/defaults/keys.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/ranger/defaults/keys.py b/ranger/defaults/keys.py
index 29a63df9..c7e4ec08 100644
--- a/ranger/defaults/keys.py
+++ b/ranger/defaults/keys.py
@@ -243,7 +243,10 @@ map('gR', fm.cd(RANGERDIR))
 map('gc', '<C-W>', fm.tab_close())
 map('gt', '<TAB>', fm.tab_move(1))
 map('gT', '<S-TAB>', fm.tab_move(-1))
-map('gn', '<C-N>', fm.tab_new())
+@map('gn', '<C-N>')
+def newtab_and_gohome(arg):
+	arg.fm.tab_new()
+	arg.fm.cd('~')   # To return to the original directory, type ``
 for n in range(1, 10):
 	map('g' + str(n), fm.tab_open(n))
 	map('<A-' + str(n) + '>', fm.tab_open(n))
ame/Makefile?h=1.7.1&id=586f66331d1105be03c42e6faeae1672b974a98a'>^
1076f2b

dbf7e03 ^






1076f2b



39677ec ^




1076f2b
8a34fa5 ^
1076f2b
8a34fa5 ^
1076f2b

39677ec ^
dbf7e03 ^


39677ec ^
dbf7e03 ^


















1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61