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)
 
 
 ==============================================================================
ef='/akspecs/ranger/commit/doc/ranger.container.history.html?h=v1.9.0b1&id=f07bb12fc5c59430e995a64956b36331ce3629b9'>f07bb12f ^
34a60763 ^
f07bb12f ^

34a60763 ^
f07bb12f ^






34a60763 ^
f07bb12f ^








































34a60763 ^
f07bb12f ^



34a60763 ^


f07bb12f ^






34a60763 ^
f07bb12f ^


34a60763 ^

f07bb12f ^

34a60763 ^
f07bb12f ^



34a60763 ^





f07bb12f ^









34a60763 ^
f07bb12f ^

34a60763 ^
f07bb12f ^

f07bb12f ^

34a60763 ^

f07bb12f ^

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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147