config.toml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. # Whether to focus the message input automatically when a channel is selected.
  2. # Set to false to preview channels without moving focus.
  3. auto_focus = true
  4. # Whether to enable mouse or not.
  5. mouse = true
  6. # The program to open when the `keys.message_input.editor` keymap is pressed. Set the value to `"default"` to use `$EDITOR`.
  7. editor = "default"
  8. # "default" (unknown), "online", "dnd", "idle", "invisible", "offline"
  9. status = "default"
  10. # Whether to parse and render markdown in messages or not.
  11. markdown = true
  12. hide_blocked_users = true
  13. show_attachment_links = true
  14. # Max members to be in the mention autocomplete suggestions list
  15. # Note: Use autocomplete_limit = 0 to disable.
  16. autocomplete_limit = 20
  17. # The number of messages to fetch when a text-based channel is selected from guilds tree. The minimum and maximum value is 0 and 100, respectively.
  18. messages_limit = 50
  19. [timestamps]
  20. enabled = true
  21. # https://pkg.go.dev/time#Layout
  22. format = "3:04PM"
  23. [notifications]
  24. enabled = true
  25. # The duration of the sound. Set the value to `0` to use default duration. This is only supported on Unix and Windows.
  26. duration = 0
  27. [notifications.sound]
  28. enabled = true
  29. only_on_ping = true
  30. # Global shortcuts
  31. # Esc: Reset message selection or close the channel selection popup.
  32. [keys]
  33. focus_guilds_tree = "Ctrl+G"
  34. focus_messages_list = "Ctrl+T"
  35. focus_message_input = "Ctrl+I"
  36. # Cycle focus between the widgets.
  37. focus_previous = "Ctrl+H"
  38. focus_next = "Ctrl+L"
  39. # Hide/show the guilds tree.
  40. toggle_guilds_tree = "Ctrl+B"
  41. quit = "Ctrl+C"
  42. # Log out and remove the authentication token from keyring.
  43. # Requires re-login upon restart.
  44. logout = "Ctrl+D"
  45. # Only while focusing on the guilds tree
  46. [keys.guilds_tree]
  47. select_previous = "Rune[k]"
  48. select_next = "Rune[j]"
  49. select_first = "Rune[g]"
  50. select_last = "Rune[G]"
  51. # Select the currently highlighted text-based channel or expand a guild or channel.
  52. select_current = "Enter"
  53. yank_id = "Rune[i]"
  54. collapse_parent_node = "Rune[-]"
  55. move_to_parent_node = "Rune[p]"
  56. # Only while focusing on sent messages
  57. [keys.messages_list]
  58. select_previous = "Rune[k]"
  59. select_next = "Rune[j]"
  60. select_first = "Rune[g]"
  61. select_last = "Rune[G]"
  62. # Select the message reference (reply) of the selected channel.
  63. select_reply = "Rune[s]"
  64. # Reply to the selected message.
  65. reply = "Rune[R]"
  66. # Reply (with mention) to the selected message.
  67. reply_mention = "Rune[r]"
  68. cancel = "Esc"
  69. edit = "Rune[e]"
  70. delete = "Rune[D]"
  71. delete_confirm = "Rune[d]"
  72. # Open the selected message's attachments or hyperlinks in the message
  73. # using the default browser application.
  74. open = "Rune[o]"
  75. # Yank (copy) the selected message's content/url/id.
  76. yank_content = "Rune[y]"
  77. yank_url = "Rune[u]"
  78. yank_id = "Rune[i]"
  79. # Only while typing a message
  80. # Alt+Enter: Insert a new line to the current text.
  81. [keys.message_input]
  82. # paste from clipboard (supports both text and images)
  83. paste = "Ctrl+V"
  84. send = "Enter"
  85. # Remove existing text or cancel reply.
  86. cancel = "Esc"
  87. # Complete usernames when mentioning
  88. tab_complete = "Tab"
  89. open_editor = "Ctrl+E"
  90. open_file_picker = "Ctrl+Rune[\\]"
  91. [keys.mentions_list]
  92. up = "Ctrl+P"
  93. down = "Ctrl+N"
  94. # style = { foreground = "", background = "", attributes = "" or [""] }
  95. [theme.title]
  96. alignment = "left" # `"left"`, `"center"`, or `"right"`.
  97. normal_style = { attributes = "dim" }
  98. active_style = { foreground = "green", attributes = "bold" }
  99. [theme.border]
  100. enabled = true
  101. padding = [0, 0, 1, 1] # [top, bottom, left, right]
  102. normal_style = { attributes = "dim" }
  103. active_style = { foreground = "green", attributes = "bold" }
  104. # `"hidden"`, `"plain"`, `"round"`, `"thick"`, or `"double"`.
  105. normal_set = "round"
  106. active_set = "round"
  107. [theme.guilds_tree]
  108. auto_expand_folders = true
  109. # Give tree-like shape
  110. graphics = true
  111. graphics_color = "default"
  112. [theme.messages_list]
  113. reply_indicator = ">"
  114. forwarded_indicator = "<"
  115. mention_style = { foreground = "blue" }
  116. emoji_style = { foreground = "green" }
  117. url_style = { foreground = "blue" }
  118. attachment_style = { foreground = "yellow" }
  119. [theme.mentions_list]
  120. # Note: width and height are capped to the avaliable space
  121. # Minimum width
  122. # 0 = make the list as wide as possible
  123. min_width = 20
  124. # Maximum height
  125. # 0 = make the list as tall as needed
  126. max_height = 0