keys.go 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. package config
  2. type (
  3. NavigationKeys struct {
  4. SelectPrevious string `toml:"select_previous"`
  5. SelectNext string `toml:"select_next"`
  6. SelectFirst string `toml:"select_first"`
  7. SelectLast string `toml:"select_last"`
  8. }
  9. Keys struct {
  10. FocusGuildsTree string `toml:"focus_guilds_tree"`
  11. FocusMessagesList string `toml:"focus_messages_list"`
  12. FocusMessageInput string `toml:"focus_message_input"`
  13. ToggleGuildsTree string `toml:"toggle_guilds_tree"`
  14. GuildsTree GuildsTreeKeys `toml:"guilds_tree"`
  15. MessagesList MessagesListKeys `toml:"messages_list"`
  16. MessageInput MessageInputKeys `toml:"message_input"`
  17. MentionsList MentionsListKeys `toml:"mentions_list"`
  18. Logout string `toml:"logout"`
  19. Quit string `toml:"quit"`
  20. }
  21. GuildsTreeKeys struct {
  22. NavigationKeys
  23. SelectCurrent string `toml:"select_current"`
  24. YankID string `toml:"yank_id"`
  25. CollapseParentNode string `toml:"collapse_parent_node"`
  26. MoveToParentNode string `toml:"move_to_parent_node"`
  27. }
  28. MessagesListKeys struct {
  29. NavigationKeys
  30. SelectReply string `toml:"select_reply"`
  31. Reply string `toml:"reply"`
  32. ReplyMention string `toml:"reply_mention"`
  33. Cancel string `toml:"cancel"`
  34. Delete string `toml:"delete"`
  35. Open string `toml:"open"`
  36. YankContent string `toml:"yank_content"`
  37. YankURL string `toml:"yank_url"`
  38. YankID string `toml:"yank_id"`
  39. }
  40. MessageInputKeys struct {
  41. Send string `toml:"send"`
  42. Cancel string `toml:"cancel"`
  43. TabComplete string `toml:"tab_complete"`
  44. OpenEditor string `toml:"open_editor"`
  45. OpenFilePicker string `toml:"open_file_picker"`
  46. }
  47. MentionsListKeys struct {
  48. Up string `toml:"up"`
  49. Down string `toml:"down"`
  50. }
  51. )