MCPcopy
hub / github.com/micro-editor/micro / parseKeyArg

Function parseKeyArg

internal/action/command.go:828–831  ·  view source on GitHub ↗
(arg string)

Source from the content-addressed store, hash-verified

826}
827
828func parseKeyArg(arg string) string {
829 // If this is a raw escape sequence, convert it to its raw byte form
830 return strings.ReplaceAll(arg, "\\x1b", "\x1b")
831}
832
833// ShowKeyCmd displays the action that a key is bound to
834func (h *BufPane) ShowKeyCmd(args []string) {

Callers 3

ShowKeyCmdMethod · 0.85
BindCmdMethod · 0.85
UnbindCmdMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected