Commit graph

325 commits

Author SHA1 Message Date
Ayyan
607b5486de
feat(cmd)!: remove token flag (#704) 2026-01-14 10:42:19 -05:00
ayn2op
c8790a63d1 refactor(cmd): replace cobra with stdlib flag 2025-12-31 16:09:12 -05:00
Ayyan
91ca816ea0
refactor: move app and chat UI out of cmd (#680) 2025-12-31 04:35:00 -05:00
ayn2op
9450fb124b feat: add footer configuration support to message input and theme 2025-12-30 18:27:34 -05:00
ayn2op
552250a355 fix(cmd/application): prevent duplicate application Run() calls
Closes #679
2025-12-30 18:10:22 -05:00
Andrej Novikov
ed0dc8e553
feat(guilds_tree): support for forum channels (#612)
Co-authored-by: Ayyan <ayn2op@gmail.com>
2025-12-24 21:16:44 -05:00
ayn2op
99be800e98 refactor: replace tview application methods with direct screen initialization
- Replace EnableMouse, SetInputCapture, EnablePaste with direct screen setup
- Add explicit screen creation and initialization in run method
- Move mouse enablement, title setting, and focus/paste features to screen level
- Update SetRoot calls to remove fullscreen parameter
2025-12-24 19:49:54 -05:00
Vara Rahul Rajana
6f7381df9d
feat(config): add toggleable auto focus on channel select (#671)
Co-authored-by: Ayyan <ayn2op@gmail.com>
2025-12-21 20:00:20 -05:00
ayn2op
88c7a75222 fix(state): improve notification error logging 2025-12-21 18:50:28 -05:00
ayn2op
9d82a04727 refactor(http): set user agent on instance of api.Client instead of package-level global 2025-12-21 17:21:33 -05:00
ayn2op
f52b18cd76 fix(messages_list): check if a channel is selected before selection 2025-12-18 14:03:40 -05:00
ayn2op
252a42780f perf(messages_list): preallocate slice capacity 2025-12-16 23:49:45 -05:00
ayn2op
0f8d561a23 perf(messages_list): optimize color conversion by eliminating string allocation 2025-12-16 22:53:34 -05:00
ayn2op
bed98bec76 refactor: improve variable naming for better readability
- Rename `cv` to `chatView` in chatview constructor
- Rename `bm` to `bitmap` in QR code rendering
- Rename `n` to `notification` in desktop notifications
- Rename `p` to `padding` in UI configuration

These changes make the code more self-documenting and easier to understand by using descriptive variable names instead of abbreviated ones.
2025-12-15 03:19:00 -05:00
ayn2op
9b83d85f7e fix(messages_list): use consistent error message style 2025-12-15 02:57:26 -05:00
Ayyan
f4a092bc24
fix(message_input): prevent resource leak in send() method (#662) 2025-12-11 17:35:53 -05:00
Ayyan
07914616af
fix(messages_list): prevent panic on failed attachment download (#660) 2025-12-11 17:02:24 -05:00
xqrs
9a83762580
feat(clipboard): add wayland support (#657)
Signed-off-by: xqrs <3bd3bdr@gmail.com>
Co-authored-by: Ayyan <ayn2op@gmail.com>
2025-12-10 16:02:38 -05:00
ayn2op
b2a0e7f012 refactor(message_input): remove redundant return 2025-12-10 14:04:13 -05:00
ayn2op
2ab0b0ed9d fix(chatview): remove redundant focus call in focusNext 2025-12-09 19:59:37 -05:00
Ayyan
cd592ae8ed
fix(chatview): conditionally focus message input for focus_previous and focus_next keys (#658) 2025-12-09 19:46:22 -05:00
Ayyan
d29de744fc
build: switch to tcell/v3 (#655) 2025-12-09 01:35:40 -05:00
xqrs
7e8af16e72
fix(message_input): add support for mentions list in (group) dms (#649)
Co-authored-by: Ayyan <ayn2op@gmail.com>
2025-12-09 01:34:41 -05:00
ayn2op
a935920936 fix(cmd): add err to log stmt for cmd.channelHasUser 2025-12-06 12:48:45 -05:00
ayn2op
845485595f fix: allow empty text if message input has attachments 2025-11-30 16:19:59 -05:00
ayn2op
085fe6ddd6 feat(cmd): add accurate usage for token flag 2025-11-28 12:30:07 -05:00
ayn2op
ebd43423eb refactor: inline SetRoot call 2025-11-28 12:27:51 -05:00
ayn2op
3d8a833644 fix: clear right *tview.Flex when layout is built
Closes #630
2025-11-26 22:24:50 -05:00
ayn2op
ac1436b4d4 refactor(cmd): move selected*ID fields to chatView struct 2025-11-24 14:58:14 -05:00
ayn2op
4142c30790 refactor(cmd): move page name consts to chatview.go 2025-11-23 21:41:46 -05:00
Ayyan
0499f5be6d
fix(cmd): do not fetch member for webhooks (#629) 2025-11-23 21:36:40 -05:00
ayn2op
8c77e6553f refactor(cmd): explicitly use \n instead of tview.NewLine 2025-11-23 15:19:53 -05:00
ayn2op
c262f03380 refactor(cmd): update channel sorting to use slices.SortFunc and cmp.Compare instead of sort.Slice 2025-11-23 14:51:30 -05:00
ayn2op
8f217f1278 refactor(cmd): replace fmt.Fprint with io.WriteString 2025-11-23 14:45:25 -05:00
ayn2op
586b68315b refactor: relocate tview theme initialization to newApplication and remove unused import 2025-11-23 14:15:07 -05:00
ayn2op
01cb4c043b refactor(cmd): idk 2025-11-23 14:11:18 -05:00
ayn2op
6d8f281fdc refactor(cmd): rename (*chatView).init to (*chatView).buildLayout 2025-11-23 14:04:21 -05:00
ayn2op
b3ac0dc6b4 refactor(cmd): separate chat UI widgets from application 2025-11-23 14:03:34 -05:00
Ayyan
1589d7b47f
perf(cmd): use a batch writer instead (#628) 2025-11-22 18:56:09 -05:00
ayn2op
ea7f2cf7b2 Reapply "fix(cmd): initialize clipboard in newApplication func (#625)"
This reverts commit 97b2249608.
2025-11-22 13:43:15 -05:00
ayn2op
db9e64fc50 Revert "feat: show error modal on errors (#621)"
This reverts commit dfaaf10818.
2025-11-22 13:38:39 -05:00
ayn2op
97b2249608 Revert "fix(cmd): initialize clipboard in newApplication func (#625)"
This reverts commit f2819e86d3.
2025-11-22 13:38:36 -05:00
Ayyan
f2819e86d3
fix(cmd): initialize clipboard in newApplication func (#625) 2025-11-22 03:26:23 +03:00
xqrs
dfaaf10818
feat: show error modal on errors (#621)
Co-authored-by: ossenthusiast <ossenthusiast@proton.me>
2025-11-22 01:47:26 +03:00
ayn2op
d5a88f3a17 fix(cmd): remove unused import 2025-11-20 00:40:35 -05:00
ayn2op
647ce6f9ec refactor(cmd): use cobra for CLI parsing 2025-11-19 23:51:33 -05:00
ayn2op
de52554f95 refactor(markdown): export renderer and use type-safe config 2025-11-11 23:13:22 -05:00
ayn2op
662539b063 refactor(lint): inconsistent handling of return value 2025-11-11 22:48:39 -05:00
ayn2op
ed6f5fc359 refactor: add (*application).focusMessageInput func 2025-11-10 16:35:52 -05:00
ayn2op
dcc607cf02 refactor: remove extraneous accessor 2025-11-10 16:33:25 -05:00