Commit graph

305 commits

Author SHA1 Message Date
ayntgl
78f75db905 refactor: cleanup 2021-10-29 13:31:38 +04:00
ayntgl
207a4d43bd refactor: move utility functions into separate package 2021-10-29 12:53:40 +04:00
ayntgl
2a7206b6a3 docs(README): Token -> token 2021-10-28 22:05:31 +04:00
ayntgl
cc45f6b6bf
feat: select selected message's referenced message using keybinding (#87)
* feat: jump to referenced message using keybinding

* Rename JumpToSelectedMessageReference to JumpSelectedMessageReference

* Remove 'to' from toml tag

* Rename JumpSelectedMessageReference to SelectMessageReference
2021-10-28 22:03:05 +04:00
ayntgl
cfee278be8
fix: scroll to end of text on channel select (#85) 2021-10-28 17:10:48 +04:00
ayntgl
5c6d596ac3 docs: go build -> make build 2021-10-27 18:42:20 +04:00
ayntgl
931922b5f5 build: create Makefile 2021-10-27 18:29:54 +04:00
ayntgl
089e6b0b40
docs: remove default config path for plan9 (#83) 2021-10-26 18:14:57 +04:00
ayntgl
98575d2dc7
docs: add xclip installation for fedora (dnf) (#82) 2021-10-26 18:13:16 +04:00
ayntgl
ef130918a6 ci: pass -d -e -s flags to gofmt 2021-10-25 21:25:01 +04:00
ayntgl
5acd62e228 style: format code 2021-10-25 21:21:08 +04:00
chromium
f6061df298
feat: copy message to clipboard using keybinding (#80)
* copy message

* default keybinding

Co-authored-by: chromium <chromium@chromium.codes>
2021-10-25 21:19:28 +04:00
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