Commits

Alexey Rakeev committed e8551c7

Implemented add/remove sidebar commands

  • Participants
  • Parent commits 27732a3

Comments (0)

Files changed (2)

File Side Bar.sublime-menu

+[
+    {
+        "caption": "Hg",
+        "children":
+        [
+            { "caption": "Add", "command": "hg_add_side", "args": {"paths": []} }
+            ,{ "caption": "Remove", "command": "hg_remove_side", "args": {"paths": []} }
+        ]
+    }
+]
     def run(self, edit):
         self.run_command([get_hg(self.view), 'add', self.get_file_name()])
 
+class HgAddSide(HgWindowCommand):
+    def run(self, paths):
+        self.run_command([get_hg(self.view), 'add'] + paths)
+
 class HgRemove(HgTextCommand):
     def run(self, edit):
         self.run_command([get_hg(self.view), 'remove', '-f', self.get_file_name()])
 
+class HgRemoveSide(HgWindowCommand):
+    def run(self, paths):
+        self.run_command([get_hg(self.view), 'remove', '-f'] + paths)
+
 class HgShelveCommand(HgTextCommand):
     def run(self, edit):
         self.run_command([get_hg(self.view), 'shelve'])