summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/config/rc.conf1
-rw-r--r--ranger/core/actions.py14
2 files changed, 7 insertions, 8 deletions
diff --git a/ranger/config/rc.conf b/ranger/config/rc.conf
index de0b5043..f34b6e0c 100644
--- a/ranger/config/rc.conf
+++ b/ranger/config/rc.conf
@@ -490,6 +490,7 @@ cmap <end>   eval fm.ui.console.move(right=-1, absolute=True)
 cmap <backspace>  eval fm.ui.console.delete(-1)
 cmap <delete>     eval fm.ui.console.delete(0)
 cmap <C-w>        eval fm.ui.console.delete_word()
+cmap <A-d>        eval fm.ui.console.delete_word(backward=False)
 cmap <C-k>        eval fm.ui.console.delete_rest(1)
 cmap <C-u>        eval fm.ui.console.delete_rest(-1)
 cmap <C-y>        eval fm.ui.console.paste()
diff --git a/ranger/core/actions.py b/ranger/core/actions.py
index 58f7aa20..442182ff 100644
--- a/ranger/core/actions.py
+++ b/ranger/core/actions.py
@@ -160,7 +160,7 @@ class Actions(FileManagerAware, SettingsAware):
 
     def execute_console(self, string='', wildcards=[], quantifier=None):
         """Execute a command for the console"""
-        command_name = string.split()[0]
+        command_name = string.lstrip().split()[0]
         cmd_class = self.commands.get_command(command_name, abbrev=False)
         if cmd_class is None:
             self.notify("Command not found: `%s'" % command_name, bad=True)
@@ -553,12 +553,6 @@ class Actions(FileManagerAware, SettingsAware):
         if func is not None:
             self.settings['sort'] = str(func)
 
-    def set_filter(self, fltr):
-        try:
-            self.thisdir.filter = fltr
-        except:
-            pass
-
     def mark_files(self, all=False, toggle=False, val=None, movedown=None, narg=None):
         """A wrapper for the directory.mark_xyz functions.
 
@@ -1258,7 +1252,11 @@ class Actions(FileManagerAware, SettingsAware):
             src = src.path
 
         try:
-            os.renames(src, dest)
+            os.makedirs(os.path.dirname(dest))
+        except OSError:
+            pass
+        try:
+            os.rename(src, dest)
         except OSError as err:
             self.notify(err)
             return False
it/061recipe.cc?h=hlt&id=af085cf654eb499c1756509dea1d74f93ecbef45'>af085cf6 ^
1b76245c ^
af085cf6 ^


1b76245c ^
af085cf6 ^


















60448ff1 ^






b436291f ^
60448ff1 ^






63bd37bc ^


b436291f ^

63bd37bc ^
b436291f ^
63bd37bc ^



b436291f ^

63bd37bc ^
60448ff1 ^

7afe09fb ^
60448ff1 ^












1b76245c ^
60448ff1 ^



1b76245c ^
60448ff1 ^




65c905fe ^
60448ff1 ^
63bd37bc ^
65c905fe ^
63bd37bc ^
65c905fe ^
63bd37bc ^


65c905fe ^
60448ff1 ^
65c905fe ^

60448ff1 ^


7afe09fb ^
c6034af3 ^
65c905fe ^

7afe09fb ^


4f32f024 ^













7cdd5187 ^












4d238fd7 ^


1b76245c ^
7cdd5187 ^

4d238fd7 ^

7cdd5187 ^









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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197