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

Function CommandAction

internal/action/command.go:97–102  ·  view source on GitHub ↗

CommandAction returns a bindable function which executes the given command

(cmd string)

Source from the content-addressed store, hash-verified

95// CommandAction returns a bindable function which executes the
96// given command
97func CommandAction(cmd string) BufKeyAction {
98 return func(h *BufPane) bool {
99 MainTab().CurPane().HandleCommand(cmd)
100 return false
101 }
102}
103
104var PluginCmds = []string{"install", "remove", "update", "available", "list", "search"}
105

Callers 1

BufMapEventFunction · 0.85

Calls 3

MainTabFunction · 0.85
CurPaneMethod · 0.80
HandleCommandMethod · 0.65

Tested by

no test coverage detected