summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-04-30 02:49:28 +0200
committerhut <hut@lavabit.com>2010-04-30 02:49:28 +0200
commitd9c06cf4b542d321d99ce1c8135417fa845d357b (patch)
tree504381c0a081fdbdccb2221e52b402c06d6b42a5
parent5db3ddf07ac34bd9e5f5ebf6c4229b4854e7d76f (diff)
downloadranger-d9c06cf4b542d321d99ce1c8135417fa845d357b.tar.gz
defaults.keys: implement I key
-rw-r--r--ranger/defaults/keys.py5
-rw-r--r--ranger/help/movement.py1
2 files changed, 5 insertions, 1 deletions
diff --git a/ranger/defaults/keys.py b/ranger/defaults/keys.py
index c7e4ec08..a6d7eea6 100644
--- a/ranger/defaults/keys.py
+++ b/ranger/defaults/keys.py
@@ -218,6 +218,11 @@ def append_to_filename(arg):
 	command = 'rename ' + arg.fm.env.cf.basename
 	arg.fm.open_console(cmode.COMMAND, command)
 
+@map("I")
+def insert_before_filename(arg):
+	append_to_filename(arg)
+	arg.fm.ui.console.move(right=len('rename '), absolute=True)
+
 map('cw', fm.open_console(cmode.COMMAND, 'rename '))
 map('cd', fm.open_console(cmode.COMMAND, 'cd '))
 map('f', fm.open_console(cmode.COMMAND_QUICK, 'find '))
diff --git a/ranger/help/movement.py b/ranger/help/movement.py
index 82a13dc6..8a4c155a 100644
--- a/ranger/help/movement.py
+++ b/ranger/help/movement.py
@@ -192,7 +192,6 @@ Clicking into the preview window will usually run the file. |2?|
 	cw	Open the console with ":rename "
 	A	Open the console with ":rename <current filename>"
 	I	Same as A, put the cursor at the beginning of the filename
-		(not yet implemented)
 
 
 ==============================================================================
84002dd41969052b1710704f06aabf82320'>^
240394a4 ^
03ed2a43 ^






2e74f350 ^
03ed2a43 ^
7bf5f967 ^
03ed2a43 ^
7dc8fef8 ^
4833bc23 ^

4ea0f69a ^

03ed2a43 ^
240394a4 ^
240394a4 ^

dc4216a5 ^
7dc8fef8 ^
9e89f023 ^
36e4e71e ^
20ab9343 ^

20ab9343 ^





4ea0f69a ^

240394a4 ^
7dc8fef8 ^
36e4e71e ^

4a383291 ^
78a7d762 ^
e952d6cb ^
78a7d762 ^
03ed2a43 ^
4ea0f69a ^

7838675f ^

03ed2a43 ^
6ff9bb6f ^
03ed2a43 ^
7838675f ^

2c8cb95f ^
03ed2a43 ^



7838675f ^
03ed2a43 ^
2c8cb95f ^
03ed2a43 ^







240394a4 ^



240394a4 ^
03ed2a43 ^
240394a4 ^

03ed2a43 ^


240394a4 ^

03ed2a43 ^


2c8cb95f ^
03ed2a43 ^
240394a4 ^

e5fb3d74 ^
240394a4 ^

03ed2a43 ^

7dc8fef8 ^


03ed2a43 ^


7b33b517 ^
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113