| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- package config
- type (
- GuildsTreeKeys struct {
- Focus string `yaml:"focus"`
- }
- MessagesTextKeys struct {
- Focus string `yaml:"focus"`
- ShowImage string `yaml:"show_image"`
- CopyContent string `yaml:"copy_content"`
- Reply string `yaml:"reply"`
- ReplyMention string `yaml:"reply_mention"`
- SelectReply string `yaml:"select_reply"`
- SelectPrevious string `yaml:"select_previous"`
- SelectNext string `yaml:"select_next"`
- SelectFirst string `yaml:"select_first"`
- SelectLast string `yaml:"select_last"`
- }
- MessageInputKeys struct {
- Focus string `yaml:"focus"`
- Send string `yaml:"send"`
- Paste string `yaml:"paste"`
- LaunchEditor string `yaml:"launch_editor"`
- }
- )
- type Keys struct {
- Cancel string `yaml:"cancel"`
- GuildsTree GuildsTreeKeys `yaml:"guilds_tree"`
- MessagesText MessagesTextKeys `yaml:"messages_text"`
- MessageInput MessageInputKeys `yaml:"message_input"`
- }
- func newKeys() Keys {
- return Keys{
- Cancel: "Esc",
- GuildsTree: GuildsTreeKeys{
- Focus: "Alt+Rune[g]",
- },
- MessagesText: MessagesTextKeys{
- Focus: "Alt+Rune[m]",
- ShowImage: "Rune[i]",
- CopyContent: "Rune[c]",
- Reply: "Rune[r]",
- ReplyMention: "Rune[R]",
- SelectReply: "Rune[s]",
- SelectPrevious: "Up",
- SelectNext: "Down",
- SelectFirst: "Home",
- SelectLast: "End",
- },
- MessageInput: MessageInputKeys{
- Focus: "Alt+Rune[i]",
- Send: "Enter",
- Paste: "Ctrl+V",
- LaunchEditor: "Ctrl+E",
- },
- }
- }
|