Esempio n. 1
0
 def slack_search_channel(name_search: str) -> None:
     """Search for a channel to jump to."""
     actions.self.slack_switch_channel()
     actions.insert(name_search)
Esempio n. 2
0
 def code_state_while():
     actions.insert('while :')
     actions.edit.left()
Esempio n. 3
0
 def code_state_return():
     actions.insert('return ')
Esempio n. 4
0
 def code_state_else():
     actions.insert('else:')
     actions.key('enter')
Esempio n. 5
0
 def code_state_case():
     actions.insert('case \nbreak;')
     actions.edit.up()
Esempio n. 6
0
 def go_to_website(website: str):
     """Goes to a specific website"""
     actions.browser.focus_address()
     actions.insert(website)
     actions.key("enter")
Esempio n. 7
0
 def code_operator_subscript():
     actions.insert('[]')
     actions.key('left')
Esempio n. 8
0
 def code_state_case():
     actions.insert('case :')
     actions.edit.left()
Esempio n. 9
0
 def code_state_do():
     actions.insert('do {')
     actions.key('enter')
Esempio n. 10
0
 def code_state_else_if():
     actions.insert('elseif ()')
     actions.edit.left()
Esempio n. 11
0
 def code_state_for_each():
     actions.insert('foreach ()')
     actions.edit.left()
Esempio n. 12
0
 def snippet_insert(text: str):
     """Inserts a snippet"""
     actions.user.vscode("editor.action.insertSnippet")
     actions.insert(text)
     actions.key("enter")
Esempio n. 13
0
 def snippet_search(text: str):
     actions.user.vscode("editor.action.insertSnippet")
     actions.insert(text)
Esempio n. 14
0
 def jump_line(n: int):
     actions.user.vscode("workbench.action.gotoLine")
     actions.insert(str(n))
     actions.key("enter")
     actions.edit.line_start()
Esempio n. 15
0
 def insert_formatted(phrase: Union[str, Phrase], formatters: str):
     """Inserts a phrase formatted according to formatters. Formatters is a comma separated list of formatters (e.g. 'CAPITALIZE_ALL_WORDS,DOUBLE_QUOTED_STRING')"""
     actions.insert(format_phrase(phrase, formatters))
Esempio n. 16
0
 def code_state_go_to():
     actions.insert('goto ;')
     actions.edit.left()
Esempio n. 17
0
 def insert_many(strings: List[str]) -> None:
     """Insert a list of strings, sequentially."""
     for string in strings:
         actions.insert(string)
Esempio n. 18
0
 def code_state_return():
     actions.insert('return ;')
     actions.edit.left()
Esempio n. 19
0
 def file_manager_open_directory(path: str):
     """opens the directory that's already visible in the view"""
     actions.key("cmd-shift-g")
     actions.sleep("50ms")
     actions.insert(path)
     actions.key("enter")
Esempio n. 20
0
 def code_break():
     actions.insert('break;')
Esempio n. 21
0
 def code_state_else_if():
     actions.insert('elif :')
     actions.key('left')
Esempio n. 22
0
 def code_next():
     actions.insert('continue;')
Esempio n. 23
0
 def code_state_switch():
     actions.insert('switch ()')
     actions.edit.left()
Esempio n. 24
0
 def code_insert_return_type(type: str):
     actions.insert(f': {type}')
Esempio n. 25
0
 def code_state_for_each():
     actions.insert('for in ')
     actions.key('left')
     actions.edit.word_left()
     actions.key('space')
     actions.edit.left()
Esempio n. 26
0
 def code_block():
     actions.insert('{}')
     actions.edit.left()
     actions.key('enter')
Esempio n. 27
0
 def code_from_import():
     actions.insert('from import ')
     actions.key('left')
     actions.edit.word_left()
     actions.key('space')
     actions.edit.left()
Esempio n. 28
0
 def code_comment_documentation():
     actions.insert('/**')
Esempio n. 29
0
 def code_insert_type_annotation(type: str):
     actions.insert(f": {type}")
Esempio n. 30
0
 def jump_line(n: int):
     actions.key("ctrl-l")
     actions.insert(str(n))
     actions.key("enter")