keys.go 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. CollapseAll string `toml:"collapse_all"`
  26. ExpandAll string `toml:"expand_all"`
  27. CollapseParentNode string `toml:"collapse_parent_node"`
  28. MoveToParentNode string `toml:"move_to_parent_node"`
  29. }
  30. MessagesListKeys struct {
  31. NavigationKeys
  32. SelectReply string `toml:"select_reply"`
  33. Reply string `toml:"reply"`
  34. ReplyMention string `toml:"reply_mention"`
  35. Cancel string `toml:"cancel"`
  36. Delete string `toml:"delete"`
  37. DeleteConfirm string `toml:"delete_confirm"`
  38. Open string `toml:"open"`
  39. YankContent string `toml:"yank_content"`
  40. YankURL string `toml:"yank_url"`
  41. YankID string `toml:"yank_id"`
  42. }
  43. MessageInputKeys struct {
  44. Paste string `toml:"paste"`
  45. Send string `toml:"send"`
  46. Cancel string `toml:"cancel"`
  47. TabComplete string `toml:"tab_complete"`
  48. OpenEditor string `toml:"open_editor"`
  49. OpenFilePicker string `toml:"open_file_picker"`
  50. }
  51. MentionsListKeys struct {
  52. Up string `toml:"up"`
  53. Down string `toml:"down"`
  54. }
  55. )