MCPcopy Create free account
hub / github.com/dhamidi/leader / String

Method String

keymap.go:54–60  ·  view source on GitHub ↗

String returns a human readable representation of this key binding. It does not descend into any child key maps.

()

Source from the content-addressed store, hash-verified

52
53// String returns a human readable representation of this key binding. It does not descend into any child key maps.
54func (b *KeyBinding) String() string {
55 if b.HasChildren() {
56 return fmt.Sprintf("[%c] <keymap %s>", b.key, b.children.Name())
57 }
58
59 return fmt.Sprintf("[%c] %s", b.key, b.description)
60}
61
62// SetLooping marks this key binding as a looping key binding. This
63// key can be pressed repeatedly to execute the same command

Calls 2

HasChildrenMethod · 0.95
NameMethod · 0.80