Python sublime_plugin.ViewEventListener() Examples
The following are 1
code examples of sublime_plugin.ViewEventListener().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
sublime_plugin
, or try the search function
.
Example #1
Source File: listener.py From network_tech with Apache License 2.0 | 5 votes |
def run(self, edit): default_search = Network.get_network_on_cursor(self.view.sel()[0], self.view) default_search = default_search if ip.v4.network.search(default_search) else '' self._find_input_panel(network=default_search) # class NetworkCompletionListener(sublime_plugin.ViewEventListener): # def on_query_completions(self, prefix, locations): # for point in locations: # if self.view.match_selector(point, scopes.ipv4.incomplete.ip): # print('ding') # print(prefix) # return