Пример #1
0
 def _items(self):
     # NOTE: お試し版。しばらく触ってみて後で修正するかも
     lines = self.run_cmd(
         ['ag', '--nocolor', 'def\s' + current_word(),
          '.easyopen_index'])['out'].split("\n")
     return list(
         set([line.split("def ")[1] for line in lines if line != '']))
Пример #2
0
 def run(self):
     self.window.show_input_panel('Find in Gems', current_word(),
                                  self.on_done, None, None)
Пример #3
0
 def run(self):
     self.window.show_input_panel('Find in Gems', current_word(), self.on_done, None, None)
Пример #4
0
 def run(self):
     self.window.show_input_panel('Index Search:', current_word(),
                                  self.on_done, None, None)
Пример #5
0
 def run(self):
     self.window.show_input_panel('Mdfind:', current_word(), self.on_done, None, None)
Пример #6
0
 def run(self):
     self.items = self._items(current_word())
     sublime.active_window().show_quick_panel(self.items, self.panel_done,
                                              sublime.MONOSPACE_FONT)
Пример #7
0
 def run(self):
     self.window.show_input_panel('Mdfind:', current_word(), self.on_done,
                                  None, None)
Пример #8
0
 def run(self):
     self.window.show_input_panel('Git Grep Search:', current_word(), self.on_done, None, None)
Пример #9
0
 def run(self):
     self.items = self._items(current_word())
     sublime.active_window().show_quick_panel(self.items, self.panel_done, sublime.MONOSPACE_FONT)
Пример #10
0
 def _items(self):
     # NOTE: お試し版。しばらく触ってみて後で修正するかも
     lines = self.run_cmd(['ag', '--nocolor', 'def\s' + current_word(), '.easyopen_index'])['out'].split("\n")
     return list(set([line.split("def ")[1] for line in lines if line != '']))