config.toml 3.8 KB

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