| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 |
- package config
- type (
- NavigationKeys struct {
- SelectPrevious string `toml:"select_previous"`
- SelectNext string `toml:"select_next"`
- SelectFirst string `toml:"select_first"`
- SelectLast string `toml:"select_last"`
- }
- Keys struct {
- FocusGuildsTree string `toml:"focus_guilds_tree"`
- FocusMessagesText string `toml:"focus_messages_text"`
- FocusMessageInput string `toml:"focus_message_input"`
- ToggleGuildsTree string `toml:"toggle_guilds_tree"`
- GuildsTree GuildsTreeKeys `toml:"guilds_tree"`
- MessagesText MessagesTextKeys `toml:"messages_text"`
- MessageInput MessageInputKeys `toml:"message_input"`
- Logout string `toml:"logout"`
- Quit string `toml:"quit"`
- }
- GuildsTreeKeys struct {
- NavigationKeys
- SelectCurrent string `toml:"select_current"`
- YankID string `toml:"yank_id"`
- }
- MessagesTextKeys struct {
- NavigationKeys
- SelectReply string `toml:"select_reply"`
- SelectPin string `toml:"select_pin"`
- Reply string `toml:"reply"`
- ReplyMention string `toml:"reply_mention"`
- Delete string `toml:"delete"`
- Yank string `toml:"yank"`
- Open string `toml:"open"`
- }
- MessageInputKeys struct {
- Send string `toml:"send"`
- Editor string `toml:"editor"`
- Cancel string `toml:"cancel"`
- }
- )
- func defaultKeys() Keys {
- return Keys{
- FocusGuildsTree: "Ctrl+G",
- FocusMessagesText: "Ctrl+T",
- FocusMessageInput: "Ctrl+P",
- ToggleGuildsTree: "Ctrl+B",
- Logout: "Ctrl+D",
- Quit: "Ctrl+C",
- GuildsTree: GuildsTreeKeys{
- NavigationKeys: NavigationKeys{
- SelectPrevious: "Rune[k]",
- SelectNext: "Rune[j]",
- SelectFirst: "Rune[g]",
- SelectLast: "Rune[G]",
- },
- SelectCurrent: "Enter",
- YankID: "Rune[y]",
- },
- MessagesText: MessagesTextKeys{
- NavigationKeys: NavigationKeys{
- SelectPrevious: "Rune[k]",
- SelectNext: "Rune[j]",
- SelectFirst: "Rune[g]",
- SelectLast: "Rune[G]",
- },
- SelectReply: "Rune[s]",
- SelectPin: "Rune[p]",
- Reply: "Rune[r]",
- ReplyMention: "Rune[R]",
- Delete: "Rune[d]",
- Yank: "Rune[y]",
- Open: "Rune[o]",
- },
- MessageInput: MessageInputKeys{
- Send: "Enter",
- Editor: "Ctrl+E",
- Cancel: "Esc",
- },
- }
- }
|