ayn2op / discordo

A lightweight, secure, and feature-rich Discord terminal client.
MIT License
2.25k stars 70 forks source link

[Question] how can i generate a default config.toml file? #445

Closed ingenarel closed 1 month ago

ingenarel commented 1 month ago

i haven't updated my config file for a while, and there has been some features that were added since. the link that i found for the default toml file leads to a 404.

this is my current config btw:

mouse = true

timestamps = true
timestamps_before_author = true
timestamps_format = "3:04PM"

messages_limit = 100
editor = "default"

[keys]
focus_guilds_tree = "Ctrl+G"
focus_messages_text = "Ctrl+T"
focus_message_input = "Ctrl+P"
toggle_guild_tree = "Ctrl+B"
select_previous = "Rune[k]"
select_next = "Rune[j]"
select_first = "Rune[g]"
select_last = "Rune[G]"

[keys.guilds_tree]
select_current = "Enter"

[keys.messages_text]
select_reply = "Rune[s]"
reply = "Rune[r]"
reply_mention = "Rune[R]"
delete = "Rune[d]"
yank = "Rune[y]"
open = "Rune[o]"

[keys.message_input]
send = "Enter"
editor = "Ctrl+E"
cancel = "Esc"

[theme]
border = true
border_color = "default"
border_padding = [0, 0, 1, 1]
title_color = "#00ff00"
background_color = "default"

[theme.guilds_tree]
auto_expand_folders = false
graphics = true

[theme.messages_text]
author_color = "#ff00e1"
reply_indicator = "  󱞡  "
ayn2op commented 1 month ago

https://github.com/ayn2op/discordo/blob/main/internal/config/config.go#L28

ingenarel commented 1 month ago

pardon me but i really don't know that much programming, only know a little bit of python. and i don't know go. so i don't really know what should i do with the defaultConfig() function

edit: wait nvm i think i can figure it out by searching the functions