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

Function _get_vi_mode

mycli/clitoolbar.py:97–105  ·  view source on GitHub ↗

Get the current vi mode for display.

()

Source from the content-addressed store, hash-verified

95
96
97def _get_vi_mode() -> str:
98 """Get the current vi mode for display."""
99 return {
100 InputMode.INSERT: "I",
101 InputMode.NAVIGATION: "N",
102 InputMode.REPLACE: "R",
103 InputMode.REPLACE_SINGLE: "R",
104 InputMode.INSERT_MULTIPLE: "M",
105 }[get_app().vi_state.input_mode]

Callers 1

get_toolbar_tokensFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected