Ejemplo n.º 1
0
 def open_window(self, words):
     aliases = {
         'code': 'visual studio code',
         'chrome': 'google chrome',
     }
     window_name = ' '.join(words[1:])
     if window_name in aliases:
         window_name = aliases[window_name]
     api.activate_window(window_name)
Ejemplo n.º 2
0
 def open_window(self, words):
     aliases = {
         'code': 'visual studio code',
         'chrome': 'google chrome',
     }
     window_name = ' '.join(words[1:])
     if window_name in aliases:
         window_name = aliases[window_name]
     api.activate_window(window_name)
Ejemplo n.º 3
0
 def open_window(self, words):
     if words[1] in ['vim', 'them', 'pen', 'then', 'than', 'vent'] or words[0] == '(':
         words[1] = 'vimtastic'
     hotkeys = {
         'adam': 'Autumntastic',
         'Adam': 'Autumntastic',
         'autumn': 'Autumntastic',
         'atom': 'Autumntastic',
         'sublime': 'Sublime Text (UNREGISTERED)',
         'some wine': 'Sublime Text (UNREGISTERED)',
         'someone': 'Sublime Text (UNREGISTERED)',
         'upon': 'Sublime Text (UNREGISTERED)',
         'from': '- Google Chrome',
         'home': '- Google Chrome',
         'control': '- Google Chrome',
         'close': '- Google Chrome',
         'thrown': '- Google Chrome',
         'chrome': '- Google Chrome',
         'google chrome': '- Google Chrome',
         'coral': '- Google Chrome',
         'firefox': 'Vimperator',
     }
     api.activate_window(' '.join(words[1:]))
Ejemplo n.º 4
0
 def open_window(self, words):
     if words[1] in ['vim', 'them', 'pen', 'then', 'than', 'vent'
                     ] or words[0] == '(':
         words[1] = 'vimtastic'
     hotkeys = {
         'adam': 'Autumntastic',
         'Adam': 'Autumntastic',
         'autumn': 'Autumntastic',
         'atom': 'Autumntastic',
         'sublime': 'Sublime Text (UNREGISTERED)',
         'some wine': 'Sublime Text (UNREGISTERED)',
         'someone': 'Sublime Text (UNREGISTERED)',
         'upon': 'Sublime Text (UNREGISTERED)',
         'from': '- Google Chrome',
         'home': '- Google Chrome',
         'control': '- Google Chrome',
         'close': '- Google Chrome',
         'thrown': '- Google Chrome',
         'chrome': '- Google Chrome',
         'google chrome': '- Google Chrome',
         'coral': '- Google Chrome',
         'firefox': 'Vimperator',
     }
     api.activate_window(' '.join(words[1:]))
Ejemplo n.º 5
0
 def open_firefox(self, words):
     api.activate_window(['vimperator'] + words[2:])
Ejemplo n.º 6
0
 def open_atom(self, words):
     api.activate_window(['autumntastic'] + words[2:])
Ejemplo n.º 7
0
 def open_firefox(self, words):
     api.activate_window(['vimperator'] + words[2:])
Ejemplo n.º 8
0
 def open_atom(self, words):
     api.activate_window(['autumntastic'] + words[2:])