keybinds.go 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. package config
  2. type NavigationKeybinds struct {
  3. Up string `toml:"up"`
  4. Down string `toml:"down"`
  5. Top string `toml:"top"`
  6. Bottom string `toml:"bottom"`
  7. }
  8. type ScrollKeybinds struct {
  9. ScrollUp string `toml:"scroll_up"`
  10. ScrollDown string `toml:"scroll_down"`
  11. ScrollTop string `toml:"scroll_top"`
  12. ScrollBottom string `toml:"scroll_bottom"`
  13. }
  14. type SelectionKeybinds struct {
  15. SelectUp string `toml:"select_up"`
  16. SelectDown string `toml:"select_down"`
  17. SelectTop string `toml:"select_top"`
  18. SelectBottom string `toml:"select_bottom"`
  19. }
  20. type PickerKeybinds struct {
  21. NavigationKeybinds
  22. Toggle string `toml:"toggle"`
  23. Cancel string `toml:"cancel"`
  24. Select string `toml:"select"`
  25. }
  26. type GuildsTreeKeybinds struct {
  27. NavigationKeybinds
  28. SelectCurrent string `toml:"select_current"`
  29. YankID string `toml:"yank_id"`
  30. CollapseParentNode string `toml:"collapse_parent_node"`
  31. MoveToParentNode string `toml:"move_to_parent_node"`
  32. }
  33. type MessagesListKeybinds struct {
  34. SelectionKeybinds
  35. ScrollKeybinds
  36. SelectReply string `toml:"select_reply"`
  37. Reply string `toml:"reply"`
  38. ReplyMention string `toml:"reply_mention"`
  39. Cancel string `toml:"cancel"`
  40. Edit string `toml:"edit"`
  41. Delete string `toml:"delete"`
  42. DeleteConfirm string `toml:"delete_confirm"`
  43. Open string `toml:"open"`
  44. YankContent string `toml:"yank_content"`
  45. YankURL string `toml:"yank_url"`
  46. YankID string `toml:"yank_id"`
  47. }
  48. type MessageInputKeybinds struct {
  49. Paste string `toml:"paste"`
  50. Send string `toml:"send"`
  51. Cancel string `toml:"cancel"`
  52. TabComplete string `toml:"tab_complete"`
  53. OpenEditor string `toml:"open_editor"`
  54. OpenFilePicker string `toml:"open_file_picker"`
  55. }
  56. type MentionsListKeybinds struct {
  57. NavigationKeybinds
  58. }
  59. type Keybinds struct {
  60. FocusGuildsTree string `toml:"focus_guilds_tree"`
  61. FocusMessagesList string `toml:"focus_messages_list"`
  62. FocusMessageInput string `toml:"focus_message_input"`
  63. FocusPrevious string `toml:"focus_previous"`
  64. FocusNext string `toml:"focus_next"`
  65. ToggleGuildsTree string `toml:"toggle_guilds_tree"`
  66. Picker PickerKeybinds `toml:"picker"`
  67. GuildsTree GuildsTreeKeybinds `toml:"guilds_tree"`
  68. MessagesList MessagesListKeybinds `toml:"messages_list"`
  69. MessageInput MessageInputKeybinds `toml:"message_input"`
  70. MentionsList MentionsListKeybinds `toml:"mentions_list"`
  71. Logout string `toml:"logout"`
  72. Quit string `toml:"quit"`
  73. }