ayntgl
f486f54f1c
refactor: modularize func to reduce cyclomatic complexity
2021-10-16 18:50:57 +04:00
ayntgl
2d95068ded
Fix embed fields and footer parsing ( #77 )
2021-10-16 16:31:05 +04:00
ayntgl
2bd2017f37
Add Borders field to configuration ( #76 )
2021-10-16 16:03:38 +04:00
ayntgl
62215312f0
Refactor
2021-10-16 13:57:16 +04:00
ayntgl
97ac92301c
Fix mouse highlights not handled ( #75 )
2021-10-16 13:07:20 +04:00
ayntgl
3ef4574e03
Unhighlight selected message on Escape event key ( #74 )
2021-10-16 12:45:29 +04:00
ayntgl
be24347e51
Fix selected message index out of range [-1] panic ( #73 )
2021-10-16 12:45:20 +04:00
ayntgl
8ea53c88a5
Relocate global variable declarations
2021-10-15 23:36:00 +04:00
ayntgl
1aefedfaec
Move generateChannelRepr() to ui.go
2021-10-15 23:26:46 +04:00
ayntgl
783903e4ba
Extract default user agent as constant
2021-10-15 23:25:50 +04:00
ayntgl
4b46d39d8e
Clear message InputField text on Escape event key ( #72 )
2021-10-15 22:34:27 +04:00
ayntgl
2400226ee1
Store selected message index (+1) instead of *discordgo.Message struct ( #71 )
...
* Store selected message index (+1) instead of *discordgo.Message struct
* Fix typo; Repling -> Replying
2021-10-15 22:26:48 +04:00
ayntgl
ac64b5fd57
Update README.md
2021-10-14 23:58:45 +04:00
ayntgl
7a8e6a4def
Cleanup
2021-10-14 15:57:01 +04:00
ayntgl
a1f1a258bb
Use OS-specific config directory to store config file
2021-10-14 15:48:14 +04:00
ayntgl
4ab256ecb7
Modularize tview widgets into separate functions
2021-10-14 09:40:00 +04:00
ayntgl
d0b3af13b3
ui: do not clear messages TextView twice
2021-10-13 14:24:51 +04:00
ayntgl
d52e488cf4
discord: parse markdown in embed description and field values
2021-10-13 14:14:22 +04:00
ayntgl
7212644748
discord: distinguish between inline and non-inline embed fields
2021-10-13 13:00:31 +04:00
ayntgl
a8e5998734
discord: improve message embed rendering
2021-10-13 12:53:49 +04:00
ayntgl
69007026c2
Convert snake_case config fields to TitleCase
2021-10-12 22:37:00 +04:00
ayntgl
d86465a938
ux: change default config path to ~/.config/discordo.toml
2021-10-12 17:27:02 +04:00
ayntgl
813188198d
feat: render message embeds ( #70 )
...
Closes #69
2021-10-11 16:07:18 +04:00
ayntgl
083eda48bf
refactor: move renderer functionality to discord.go
2021-10-10 16:56:22 +04:00
ayntgl
7cede44f60
fix: goroutinize message-rendering and channel-acking together
2021-10-09 23:49:40 +04:00
ayntgl
1541b77fc1
perf: efficiently convert string to []byte and use *tview.TextView.Write()
2021-10-07 22:02:50 +04:00
ayntgl
2d5784f840
docs: add config path to usage section
2021-10-02 21:32:06 +04:00
ayntgl
7c140afb03
feat: switch to toml for config ( #67 )
...
* feat: switch to toml for config
* resolve indirect dep
2021-10-02 18:52:23 +04:00
ayntgl
b0ca25677f
docs(README): update sample conf lang to jsonc to allow comments
2021-10-02 18:06:25 +04:00
ayntgl
82253cef01
docs(README): add sample configuration
2021-10-02 18:05:07 +04:00
ayntgl
14f93ee1c0
feat: mark unread channels ( #65 )
...
* feat: distinguish unread messages, channels, and guilds
* feat: add UI acknowledgement functionality
* fix: return if tree node by reference not found
* feat: mark pre-unread messages with bold tag
2021-10-01 22:25:11 +04:00
ayntgl
d159421013
docs: remove trailing whitespace
2021-10-01 15:35:05 +04:00
ayntgl
15919470eb
docs: update markdown support status
2021-10-01 15:11:14 +04:00
ayntgl
ff7aa4eef3
feat: implement discord-flavored markdown renderer ( #66 )
2021-10-01 15:07:33 +04:00
ayntgl
85438d0799
refactor: preload (append to guild TreeNode) channels upon receiving READY event ( #64 )
2021-09-29 12:28:49 +04:00
ayntgl
80179a8246
feat: support w3c names and hex value colors in config ( #60 )
2021-09-27 23:24:21 +04:00
ayntgl
88674c5f4d
refactor: rename mainTreeView to channelsTree
2021-09-27 11:29:00 +04:00
ayntgl
90751d4c39
build: update module path
2021-09-27 09:58:11 +04:00
ayntgl
b2c15c1b47
Merge branch 'main' of https://github.com/ayntgl/discordo
2021-09-25 18:43:38 +04:00
ayntgl
53f3760dc6
Update README.md
2021-09-25 14:05:06 +04:00
ayntgl
359e22318a
refactor: use genChannelRepr() for text channels
2021-09-25 13:18:14 +04:00
ayntgl
a91c1a35b4
refactor: move findByMessageID() to util.go
2021-09-25 13:12:56 +04:00
ayntgl
cbfd15ade8
feat: add DM channels functionality ( #58 )
...
* feat: add DM channels functionality
* fix: remove main TreeView title
2021-09-25 12:52:15 +04:00
ayntgl
7ea5aab4f5
build: update tview to latest
2021-09-24 21:37:40 +04:00
ayntgl
f84c232aab
Move global variables declaration to pertinent file
2021-09-24 19:16:21 +04:00
ayntgl
d6c4fbb903
fix: envelop rune r & R with Rune[*] ( #55 )
2021-09-24 15:57:25 +04:00
ayntgl
222a1c09f0
Merge config package into main
2021-09-24 14:08:58 +04:00
ayntgl
bd86ce14f7
Mark discordo-git AUR package as unofficial
2021-09-24 12:08:43 +04:00
ayntgl
6140d67250
Create config dir if does not exist ( #54 )
...
Closes #53
2021-09-24 11:53:43 +04:00
ayntgl
e43a631950
Directly use *discordgo.Session from global state
2021-09-23 21:57:53 +04:00