config.toml 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  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. edit = "Rune[e]"
  64. delete = "Rune[D]"
  65. delete_confirm = "Rune[d]"
  66. # Open the selected message's attachments or hyperlinks in the message
  67. # using the default browser application.
  68. open = "Rune[o]"
  69. # Yank (copy) the selected message's content/url/id.
  70. yank_content = "Rune[y]"
  71. yank_url = "Rune[u]"
  72. yank_id = "Rune[i]"
  73. # Only while typing a message
  74. # Alt+Enter: Insert a new line to the current text.
  75. [keys.message_input]
  76. # paste from clipboard (supports both text and images)
  77. paste = "Ctrl+V"
  78. send = "Enter"
  79. # Remove existing text or cancel reply.
  80. cancel = "Esc"
  81. # Complete usernames when mentioning
  82. tab_complete = "Tab"
  83. open_editor = "Ctrl+E"
  84. open_file_picker = "Ctrl+\\"
  85. [keys.mentions_list]
  86. up = "Ctrl+P"
  87. down = "Ctrl+N"
  88. # style = { foreground = "", background = "", attributes = "" or [""] }
  89. [theme.title]
  90. alignment = "left" # `"left"`, `"center"`, or `"right"`.
  91. normal_style = { attributes = "dim" }
  92. active_style = { foreground = "green", attributes = "bold" }
  93. [theme.border]
  94. enabled = true
  95. padding = [0, 0, 1, 1] # [top, bottom, left, right]
  96. normal_style = { attributes = "dim" }
  97. active_style = { foreground = "green", attributes = "bold" }
  98. # `"hidden"`, `"plain"`, `"round"`, `"thick"`, or `"double"`.
  99. normal_set = "round"
  100. active_set = "round"
  101. [theme.guilds_tree]
  102. auto_expand_folders = true
  103. # Give tree-like shape
  104. graphics = true
  105. graphics_color = "default"
  106. [theme.messages_list]
  107. reply_indicator = ">"
  108. forwarded_indicator = "<"
  109. mention_style = { foreground = "blue" }
  110. emoji_style = { foreground = "green" }
  111. url_style = { foreground = "blue" }
  112. attachment_style = { foreground = "yellow" }
  113. [theme.mentions_list]
  114. # Note: width and height are capped to the avaliable space
  115. # Minimum width
  116. # 0 = make the list as wide as possible
  117. min_width = 20
  118. # Maximum height
  119. # 0 = make the list as tall as needed
  120. max_height = 0