Commit graph

293 commits

Author SHA1 Message Date
ayntgl
e4f0812bd1 docs(README): update ci badge 2021-10-25 21:18:00 +04:00
ayntgl
89dd7221ab ci: add gofmt step to github workflow 2021-10-25 21:16:44 +04:00
ayntgl
7499e83492
feat(ui): display user string representation in box title when replying (#79) 2021-10-24 22:30:11 +04:00
ayntgl
1a6ce2e42f feat: add graphics field to config 2021-10-23 14:19:01 +04:00
ayntgl
18b94450e2 feat: refine and simply config fields 2021-10-23 13:09:18 +04:00
ayntgl
4510d190cf feat: change Focus keybindings to sensible defaults 2021-10-23 12:46:43 +04:00
ayntgl
012a0b2855 fix: return nil for *inputCapture events to overwrite existing handlers 2021-10-20 20:11:39 +04:00
ayntgl
685cd7d5e7 refactor: check if ref is nil to determine TreeNode is channel or not 2021-10-18 15:59:36 +04:00
ayntgl
a62e179d80 build: upgrade ayntgl/discordgo@next to latest 2021-10-17 19:06:28 +04:00
ayntgl
58457ea309 docs(README): add xclip installation instructions 2021-10-17 13:43:53 +04:00
ayntgl
b88fb82172 docs: token -> Token 2021-10-17 13:34:58 +04:00
ayntgl
508a4249e6
feat: render message type CALL (3) & GUILD_MEMBER_JOIN (7) (#78) 2021-10-17 13:25:02 +04:00
ayntgl
ceae56bca3 refactor: move isUnread to util.go 2021-10-17 13:02:19 +04:00
ayntgl
b04e5df2fa docs: update README preview 2021-10-16 23:40:08 +04:00
ayntgl
8001a530aa refactor: reduce onMessagesViewInputCapture() cyclomatic complexity 2021-10-16 21:21:38 +04:00
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