mirror of
https://github.com/anotherhadi/spilltea.git
synced 2026-05-20 01:32:33 +02:00
Init
Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com>
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
package keys
|
||||
|
||||
import (
|
||||
"charm.land/bubbles/v2/key"
|
||||
"github.com/anotherhadi/spilltea/internal/config"
|
||||
)
|
||||
|
||||
type DiffKeyMap struct {
|
||||
Clear key.Binding
|
||||
}
|
||||
|
||||
func newDiffKeyMap(cfg config.DiffKeys) DiffKeyMap {
|
||||
return DiffKeyMap{
|
||||
Clear: binding(cfg.Clear, "clear"),
|
||||
}
|
||||
}
|
||||
|
||||
func (d DiffKeyMap) Bindings() []key.Binding {
|
||||
return []key.Binding{d.Clear}
|
||||
}
|
||||
Reference in New Issue
Block a user