config.toml 4.0 KB

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