keys.go 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. package config
  2. type (
  3. SelectionKeys 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. GuildsTreeKeys struct {
  10. SelectionKeys
  11. SelectCurrent string `toml:"select_current"`
  12. YankID string `toml:"yank_id"`
  13. CollapseParentNode string `toml:"collapse_parent_node"`
  14. MoveToParentNode string `toml:"move_to_parent_node"`
  15. }
  16. MessagesListKeys struct {
  17. SelectionKeys
  18. ScrollUp string `toml:"scroll_up"`
  19. ScrollDown string `toml:"scroll_down"`
  20. ScrollTop string `toml:"scroll_top"`
  21. ScrollBottom string `toml:"scroll_bottom"`
  22. SelectReply string `toml:"select_reply"`
  23. Reply string `toml:"reply"`
  24. ReplyMention string `toml:"reply_mention"`
  25. Cancel string `toml:"cancel"`
  26. Edit string `toml:"edit"`
  27. Delete string `toml:"delete"`
  28. DeleteConfirm string `toml:"delete_confirm"`
  29. Open string `toml:"open"`
  30. YankContent string `toml:"yank_content"`
  31. YankURL string `toml:"yank_url"`
  32. YankID string `toml:"yank_id"`
  33. }
  34. MessageInputKeys struct {
  35. Paste string `toml:"paste"`
  36. Send string `toml:"send"`
  37. Cancel string `toml:"cancel"`
  38. TabComplete string `toml:"tab_complete"`
  39. OpenEditor string `toml:"open_editor"`
  40. OpenFilePicker string `toml:"open_file_picker"`
  41. }
  42. MentionsListKeys struct {
  43. SelectionKeys
  44. }
  45. Keys struct {
  46. FocusGuildsTree string `toml:"focus_guilds_tree"`
  47. FocusMessagesList string `toml:"focus_messages_list"`
  48. FocusMessageInput string `toml:"focus_message_input"`
  49. FocusPrevious string `toml:"focus_previous"`
  50. FocusNext string `toml:"focus_next"`
  51. ToggleGuildsTree string `toml:"toggle_guilds_tree"`
  52. GuildsTree GuildsTreeKeys `toml:"guilds_tree"`
  53. MessagesList MessagesListKeys `toml:"messages_list"`
  54. MessageInput MessageInputKeys `toml:"message_input"`
  55. MentionsList MentionsListKeys `toml:"mentions_list"`
  56. Logout string `toml:"logout"`
  57. Quit string `toml:"quit"`
  58. }
  59. )