예제 #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)
예제 #2
0
 def code_state_while():
     actions.insert('while :')
     actions.edit.left()
예제 #3
0
 def code_state_return():
     actions.insert('return ')
예제 #4
0
 def code_state_else():
     actions.insert('else:')
     actions.key('enter')
예제 #5
0
 def code_state_case():
     actions.insert('case \nbreak;')
     actions.edit.up()
예제 #6
0
 def go_to_website(website: str):
     """Goes to a specific website"""
     actions.browser.focus_address()
     actions.insert(website)
     actions.key("enter")
예제 #7
0
 def code_operator_subscript():
     actions.insert('[]')
     actions.key('left')
예제 #8
0
 def code_state_case():
     actions.insert('case :')
     actions.edit.left()
예제 #9
0
 def code_state_do():
     actions.insert('do {')
     actions.key('enter')
예제 #10
0
 def code_state_else_if():
     actions.insert('elseif ()')
     actions.edit.left()
예제 #11
0
 def code_state_for_each():
     actions.insert('foreach ()')
     actions.edit.left()
예제 #12
0
 def snippet_insert(text: str):
     """Inserts a snippet"""
     actions.user.vscode("editor.action.insertSnippet")
     actions.insert(text)
     actions.key("enter")
예제 #13
0
 def snippet_search(text: str):
     actions.user.vscode("editor.action.insertSnippet")
     actions.insert(text)
예제 #14
0
 def jump_line(n: int):
     actions.user.vscode("workbench.action.gotoLine")
     actions.insert(str(n))
     actions.key("enter")
     actions.edit.line_start()
예제 #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))
예제 #16
0
 def code_state_go_to():
     actions.insert('goto ;')
     actions.edit.left()
예제 #17
0
 def insert_many(strings: List[str]) -> None:
     """Insert a list of strings, sequentially."""
     for string in strings:
         actions.insert(string)
예제 #18
0
 def code_state_return():
     actions.insert('return ;')
     actions.edit.left()
예제 #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")
예제 #20
0
 def code_break():
     actions.insert('break;')
예제 #21
0
 def code_state_else_if():
     actions.insert('elif :')
     actions.key('left')
예제 #22
0
 def code_next():
     actions.insert('continue;')
예제 #23
0
 def code_state_switch():
     actions.insert('switch ()')
     actions.edit.left()
예제 #24
0
 def code_insert_return_type(type: str):
     actions.insert(f': {type}')
예제 #25
0
 def code_state_for_each():
     actions.insert('for in ')
     actions.key('left')
     actions.edit.word_left()
     actions.key('space')
     actions.edit.left()
예제 #26
0
 def code_block():
     actions.insert('{}')
     actions.edit.left()
     actions.key('enter')
예제 #27
0
 def code_from_import():
     actions.insert('from import ')
     actions.key('left')
     actions.edit.word_left()
     actions.key('space')
     actions.edit.left()
예제 #28
0
 def code_comment_documentation():
     actions.insert('/**')
예제 #29
0
 def code_insert_type_annotation(type: str):
     actions.insert(f": {type}")
예제 #30
0
 def jump_line(n: int):
     actions.key("ctrl-l")
     actions.insert(str(n))
     actions.key("enter")