Exemplo n.º 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 != '']))
Exemplo n.º 2
0
 def run(self):
     self.window.show_input_panel('Find in Gems', current_word(),
                                  self.on_done, None, None)
Exemplo n.º 3
0
 def run(self):
     self.window.show_input_panel('Find in Gems', current_word(), self.on_done, None, None)
Exemplo n.º 4
0
 def run(self):
     self.window.show_input_panel('Index Search:', current_word(),
                                  self.on_done, None, None)
Exemplo n.º 5
0
 def run(self):
     self.window.show_input_panel('Mdfind:', current_word(), self.on_done, None, None)
Exemplo n.º 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)
Exemplo n.º 7
0
 def run(self):
     self.window.show_input_panel('Mdfind:', current_word(), self.on_done,
                                  None, None)
Exemplo n.º 8
0
 def run(self):
     self.window.show_input_panel('Git Grep Search:', current_word(), self.on_done, None, None)
Exemplo n.º 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)
Exemplo n.º 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 != '']))