MCPcopy Index your code
hub / github.com/dbcli/mycli / _

Function _

mycli/key_bindings.py:72–77  ·  view source on GitHub ↗

Open browser to documentation index.

(event: KeyPressEvent)

Source from the content-addressed store, hash-verified

70
71 @kb.add('f1')
72 def _(event: KeyPressEvent) -> None:
73 """Open browser to documentation index."""
74 _logger.debug('Detected F1 key.')
75 webbrowser.open_new_tab(DOCS_URL)
76 prompt_toolkit.application.run_in_terminal(print_f1_help)
77 safe_invalidate_display(event.app)
78
79 @kb.add('escape', '[', 'P')
80 def _(event: KeyPressEvent) -> None:

Callers

nothing calls this directly

Calls 14

safe_invalidate_displayFunction · 0.90
search_historyFunction · 0.90
as_listMethod · 0.80
complete_nextMethod · 0.80
start_completionMethod · 0.80
cancel_completionMethod · 0.80
start_selectionMethod · 0.80
transform_regionMethod · 0.80
insert_textMethod · 0.80
exitMethod · 0.80
validate_and_handleMethod · 0.80
debugMethod · 0.45

Tested by

no test coverage detected