ayntgl
88600de318
refactor: remove new* UI functions
2021-11-29 20:17:14 +04:00
ayntgl
834d7342af
refactor: move util/{discord,ui} to main pkg
2021-11-25 16:35:38 +04:00
ayntgl
b8d09403e7
refactor: remove ui pkg
2021-11-20 20:11:33 +04:00
Canis Li
c82acc2121
fix: remove occurence of ReplySelectedMessage twice ( #102 )
2021-11-18 09:28:50 +04:00
ayntgl
e8a2f33e07
feat: implement multiple keybindings for a command ( #101 )
2021-11-17 12:28:34 +04:00
ayntgl
fc25402615
fix: unselect message after reply message send ( #99 )
2021-11-16 16:00:42 +04:00
ayntgl
1c63b18d8a
refactor: move utility functions to independent package
2021-10-30 19:11:05 +04:00
ayntgl
30dffbaa83
refactor: move UI components to ui package ( #93 )
2021-10-30 18:35:50 +04:00
ayntgl
2be06ef4cd
feat: lazy-load channels on guild select ( #89 )
...
* feat: set channels tree title to 'Channels'
* feat: lazy-load channels on guild select
2021-10-29 15:26:01 +04:00
ayntgl
207a4d43bd
refactor: move utility functions into separate package
2021-10-29 12:53:40 +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
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
7499e83492
feat(ui): display user string representation in box title when replying ( #79 )
2021-10-24 22:30:11 +04:00
ayntgl
18b94450e2
feat: refine and simply config fields
2021-10-23 13:09:18 +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
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
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
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
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
69007026c2
Convert snake_case config fields to TitleCase
2021-10-12 22:37:00 +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
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
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
85438d0799
refactor: preload (append to guild TreeNode) channels upon receiving READY event ( #64 )
2021-09-29 12:28:49 +04:00
ayntgl
88674c5f4d
refactor: rename mainTreeView to channelsTree
2021-09-27 11:29:00 +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
f84c232aab
Move global variables declaration to pertinent file
2021-09-24 19:16:21 +04:00
ayntgl
d262054baf
Implement custom keybindings ( #52 )
2021-09-20 22:11:41 +04:00
ayntgl
8dad4deec0
Implement inline reply mention functionality ( #50 )
2021-09-20 11:27:31 +04:00
ayntgl
f945fbf4f8
Switch to a flat project structure ( #48 )
2021-09-19 19:56:51 +04:00