Permalink
Browse files

Revert all option added to revert panel

  • Loading branch information...
1 parent 4be1ae0 commit d5ad3b7b5edc95f240139e5cf2d59f0b8ffab288 Tomek Wytrębowicz committed Sep 17, 2012
Showing with 16 additions and 10 deletions.
  1. +4 −0 messages/0.1.4.txt
  2. +12 −10 vlt.py
  3. BIN vlt.pyc
View
@@ -0,0 +1,4 @@
+Vlt integration 0.1.4 changelog:
+
+Features:
+ - Revert All option added to Revert panel
View
@@ -486,22 +486,24 @@ def run(self, edit):
class VltRevertChoiceCommand(VltStatusCommand):
#VltStatusCommand):
def show_status_list(self):
- #self.results = [[" - All Files", ""]] + self.results
+ self.results = [[" - All Files", "revert all files"]] + self.results
self.quick_panel(self.results, self.panel_done,
sublime.MONOSPACE_FONT)
def panel_followup(self, picked_status, picked_file, picked_index):
working_dir=self.get_working_dir()
+ if picked_index == 0:
+ command = ['vlt', 'revert -R', vlt_root(working_dir)]
+ else:
+ command = ['vlt']
- command = ['vlt']
-
- #get rid of (mime/type)
- picked_file = picked_file.strip('"').split(" (")[0]
- #if os.path.isfile(working_dir+"/"+picked_file):
- command += ['revert']
- #else:
- # command += ['rm']
- command += [picked_file]
+ #get rid of (mime/type)
+ picked_file = picked_file.strip('"').split(" (")[0]
+ #if os.path.isfile(working_dir+"/"+picked_file):
+ command += ['revert']
+ #else:
+ # command += ['rm']
+ command += [picked_file]
self.run_command(command, self.rerun,
working_dir=working_dir)
View
Binary file not shown.

0 comments on commit d5ad3b7

Please sign in to comment.