MCPcopy Create free account
hub / github.com/cloudbase/garm / toggleVimMode

Method toggleVimMode

cmd/garm-cli/editor/editor.go:55–62  ·  view source on GitHub ↗

toggleVimMode toggles vim mode on/off and updates the UI

()

Source from the content-addressed store, hash-verified

53
54// toggleVimMode toggles vim mode on/off and updates the UI
55func (e *Editor) toggleVimMode() {
56 e.useVim = !e.useVim
57 if e.useVim {
58 e.vimMode = VimNormal
59 }
60 e.updateTitle()
61 e.updateFooter()
62}
63
64// updateTitle updates the editor title to show current vim mode
65func (e *Editor) updateTitle() {

Callers 1

EditTextMethod · 0.95

Calls 2

updateTitleMethod · 0.95
updateFooterMethod · 0.95

Tested by

no test coverage detected