parent
ebbbd8d819
commit
842a50017f
|
@ -37,7 +37,8 @@ class Replace(Method):
|
||||||
def _execute(self, w, **vargs):
|
def _execute(self, w, **vargs):
|
||||||
a = w.application
|
a = w.application
|
||||||
a.last_replace_before = self.before = vargs['before']
|
a.last_replace_before = self.before = vargs['before']
|
||||||
a.last_replace_after = self.after = vargs['after']
|
a.last_replace_after = self.after = vargs['after'].replace('\\n', '\n').replace('\\\\', '\\')
|
||||||
|
# ???
|
||||||
self.old_window = w
|
self.old_window = w
|
||||||
a.open_mini_buffer('I-Replace: ', lambda x: None, self, None, 'replace')
|
a.open_mini_buffer('I-Replace: ', lambda x: None, self, None, 'replace')
|
||||||
class RegexReplace(Method):
|
class RegexReplace(Method):
|
||||||
|
|
|
@ -30,6 +30,7 @@ class SkipReplace(Method):
|
||||||
|
|
||||||
class ReplaceAll(Method):
|
class ReplaceAll(Method):
|
||||||
'In a replace command, replace all remaining occurances'
|
'In a replace command, replace all remaining occurances'
|
||||||
|
# FIXME: this is super slow
|
||||||
def execute(self, w, **vargs):
|
def execute(self, w, **vargs):
|
||||||
m = w.buffer.method
|
m = w.buffer.method
|
||||||
while m.p1 is not None:
|
while m.p1 is not None:
|
||||||
|
|
Loading…
Reference in New Issue