[WIP] Editing

This commit is contained in:
Martin Pander
2024-05-23 16:01:25 +02:00
parent 7712711736
commit fe00170a5c
6 changed files with 133 additions and 24 deletions

View File

@ -21,6 +21,7 @@ type Keymap struct {
SetProject key.Binding
Select key.Binding
Insert key.Binding
Undo key.Binding
}
// NewKeymap creates a new Keymap.
@ -100,5 +101,10 @@ func NewKeymap() *Keymap {
key.WithKeys("i"),
key.WithHelp("insert", "Insert mode"),
),
Undo: key.NewBinding(
key.WithKeys("u"),
key.WithHelp("undo", "Undo"),
),
}
}