Files
Hadi 624a723b16 init
Signed-off-by: Hadi <[email protected]>
2026-08-27 00:05:08 +02:00

35 lines
1.4 KiB
Go

package config
import "charm.land/bubbles/v2/key"
type GlobalKeys struct {
Quit key.Binding `mapstructure:"quit" desc:"quit" help:"short"`
Escape key.Binding `mapstructure:"escape" desc:"back" help:"short"`
Help key.Binding `mapstructure:"help" desc:"help" help:"none"`
Up key.Binding `mapstructure:"up" desc:"up" help:"full"`
Down key.Binding `mapstructure:"down" desc:"down" help:"full"`
GotoTop key.Binding `mapstructure:"goto_top" desc:"go to top" help:"full"`
GotoBottom key.Binding `mapstructure:"goto_bottom" desc:"go to bottom" help:"full"`
}
type SearchKeys struct {
Focus key.Binding `mapstructure:"focus" desc:"search" help:"short"`
Clear key.Binding `mapstructure:"clear" desc:"clear search" help:"full"`
}
type ResultsKeys struct {
CopyUser key.Binding `mapstructure:"copy_user" desc:"copy user" help:"short"`
CopyPass key.Binding `mapstructure:"copy_pass" desc:"copy pass" help:"short"`
Enter key.Binding `mapstructure:"enter" desc:"select" help:"short"`
PrintAndQuit key.Binding `mapstructure:"print_and_quit" desc:"print and quit" help:"full"`
Refresh key.Binding `mapstructure:"refresh" desc:"refresh" help:"full"`
}
type Keybindings struct {
Global GlobalKeys `mapstructure:"global"`
Search SearchKeys `mapstructure:"search"`
Results ResultsKeys `mapstructure:"results"`
}