/*
* Copyright (C) 2025 Jonni Liljamo <jonni@liljamo.com>
*
* This file is licensed under GPL-3.0-only, see NOTICE and LICENSE for
* more information.
*/
package types
import (
"github.com/charmbracelet/bubbles/key"
)
// TargetListKeyMap defines key bindings for the target list.
type TargetListKeyMap struct {
Quit key.Binding
}
// NewTargetListKeyMap returns a new TargetListKeyMap.
func NewTargetListKeyMap() *TargetListKeyMap {
return &TargetListKeyMap{
Quit: key.NewBinding(
key.WithKeys("q"),
key.WithHelp("q", "quit"),
),
}
}
// ActionListKeyMap defines key bindings for the action list.
type ActionListKeyMap struct {
Back key.Binding
CopyCommand key.Binding
}
// NewActionListKeyMap returns a new ActionListKeyMap.
func NewActionListKeyMap() *ActionListKeyMap {
return &ActionListKeyMap{
Back: key.NewBinding(
key.WithKeys("q"),
key.WithHelp("q", "back"),
),
CopyCommand: key.NewBinding(
key.WithKeys("c"),
key.WithHelp("c", "copy cmd"),
),
}
}