config.toml 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  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. # Use autocomplete_limit = 0 to disable autocompleting mentions
  12. # Note: tab completion will still work, but it won't show any list.
  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+Space"
  33. # Hide/show the guilds tree.
  34. toggle_guilds_tree = "Ctrl+B"
  35. quit = "Ctrl+C"
  36. # Log out and remove the authentication token from keyring.
  37. # Requires re-login upon restart.
  38. logout = "Ctrl+D"
  39. # Only while focusing on the guilds tree
  40. [keys.guilds_tree]
  41. select_previous = "Rune[k]"
  42. select_next = "Rune[j]"
  43. select_first = "Rune[g]"
  44. select_last = "Rune[G]"
  45. # Select the currently highlighted text-based channel or expand a guild or channel.
  46. select_current = "Enter"
  47. yank_id = "Rune[i]"
  48. collapse_parent_node = "Rune[-]"
  49. move_to_parent_node = "Rune[p]"
  50. # Only while focusing on sent messages
  51. [keys.messages_list]
  52. select_previous = "Rune[k]"
  53. select_next = "Rune[j]"
  54. select_first = "Rune[g]"
  55. select_last = "Rune[G]"
  56. # Select the message reference (reply) of the selected channel.
  57. select_reply = "Rune[s]"
  58. # Reply to the selected message.
  59. reply = "Rune[r]"
  60. # Reply (with mention) to the selected message.
  61. reply_mention = "Rune[R]"
  62. cancel = "Esc"
  63. delete = "Rune[D]"
  64. delete_confirm = "Rune[d]"
  65. # Open the selected message's attachments or hyperlinks in the message
  66. # using the default browser application.
  67. open = "Rune[o]"
  68. # Yank (copy) the selected message's content/url/id.
  69. yank_content = "Rune[y]"
  70. yank_url = "Rune[u]"
  71. yank_id = "Rune[i]"
  72. # Only while typing a message
  73. # Alt+Enter: Insert a new line to the current text.
  74. [keys.message_input]
  75. # paste from clipboard (supports both text and images)
  76. paste = "Ctrl+V"
  77. send = "Enter"
  78. # Remove existing text or cancel reply.
  79. cancel = "Esc"
  80. # Complete usernames when mentioning
  81. tab_complete = "Tab"
  82. open_editor = "Ctrl+E"
  83. open_file_picker = "Ctrl+\\"
  84. [keys.mentions_list]
  85. up = "Ctrl+P"
  86. down = "Ctrl+N"
  87. # style = { foreground = "", background = "", attributes = "" or [""] }
  88. [theme.title]
  89. alignment = "left" # `"left"`, `"center"`, or `"right"`.
  90. normal_style = { attributes = "dim" }
  91. active_style = { foreground = "green", attributes = "bold" }
  92. [theme.border]
  93. enabled = true
  94. padding = [0, 0, 1, 1] # [top, bottom, left, right]
  95. normal_style = { attributes = "dim" }
  96. active_style = { foreground = "green", attributes = "bold" }
  97. # `"hidden"`, `"plain"`, `"round"`, `"thick"`, or `"double"`.
  98. normal_set = "round"
  99. active_set = "round"
  100. [theme.guilds_tree]
  101. auto_expand_folders = true
  102. # Give tree-like shape
  103. graphics = true
  104. graphics_color = "default"
  105. [theme.messages_list]
  106. reply_indicator = ">"
  107. forwarded_indicator = "<"
  108. mention_style = { foreground = "blue" }
  109. emoji_style = { foreground = "green" }
  110. url_style = { foreground = "blue" }
  111. attachment_style = { foreground = "yellow" }
  112. [theme.mentions_list]
  113. # Note: width and height are capped to the avaliable space
  114. # Minimum width
  115. # 0 = make the list as wide as possible
  116. min_width = 20
  117. # Maximum height
  118. # 0 = make the list as tall as needed
  119. max_height = 0