Commit graph

445 commits

Author SHA1 Message Date
4dde87d805 Fix list cursor when item moves off-screen
When a list scrolls or changes in such a way that the cursor item moves
off-screen, the cursor would jump to the closest visible item.

It makes more sense for the cursor to remain on its selected item and
for the list to scroll instead. That way, it is less likely for the user
to perform an action on the wrong list item if they press a key while
the list is changing.
2022-09-25 19:35:58 +02:00
9aac9f6fdd Add error popup when external editor fails 2022-09-25 18:57:59 +02:00
4c7ac31699 Fix inspect message only working when connected 2022-09-16 00:47:20 +02:00
bc54184b13 Simplify function call 2022-09-10 01:03:02 +02:00
8eaec4426b Log encountered errors on shutdown 2022-09-09 22:25:09 +02:00
c07941b374 Log sql errors in vault 2022-09-09 22:04:23 +02:00
37df869695 Simplify code 2022-09-09 21:59:24 +02:00
cb1fdb41b8 Rename tree_id to root_id 2022-09-09 21:55:14 +02:00
da2c3d86f5 Move functions to EuphVault and add EuphRoomVault
This commit moves all euph_* functions from Vault to EuphVault. The
previous EuphVault is now called EuphRoomVault and re-exports all
room-based functions from the EuphVault. It also implements MsgStore.
2022-09-09 21:55:14 +02:00
ff56bb2678 Reduce vault code duplication with macros 2022-09-09 21:55:14 +02:00
d7e19b5eca Add message inspection popup 2022-09-09 00:02:02 +02:00
d92c7cb98e Add room deletion confirmation popup 2022-09-08 22:57:04 +02:00
f49481cb10 Fix cursor disappearing in editor 2022-09-08 22:05:46 +02:00
86c128b92d Document config file format and options 2022-09-01 21:11:53 +02:00
19febc188e Remove unnecessary mut-s 2022-08-30 17:32:57 +02:00
21245a8274 Use absolute paths in key! macro 2022-08-30 17:25:50 +02:00
5eeabea2de Add todos 2022-08-30 17:17:11 +02:00
03ddc5eb9b Add rooms keybindings around autojoin rooms 2022-08-30 15:09:06 +02:00
a091855ea3 Fix links key binding masking editor key bindings 2022-08-30 03:05:37 +02:00
37b04c7eba Open links via number shortcuts 2022-08-30 02:32:29 +02:00
7932c2f20b Show message when no links were found 2022-08-30 02:32:08 +02:00
8846234d8d Extract links from message 2022-08-30 02:31:45 +02:00
JRF
a1043eafd3 Add key bindings to select and open links 2022-08-29 19:00:42 -05:00
c09608d1f8 Open link popup via key binding 2022-08-30 00:30:08 +02:00
bb542ae08e Retrieve individual messages from store 2022-08-29 22:57:02 +02:00
JRF
7e086258b6 Add key bindings to move to parent/root message 2022-08-29 00:38:31 +02:00
827a854101 Add --offline cli flag 2022-08-27 17:05:40 +02:00
73a0971c34 Add 'offline' config option to turn off autojoin 2022-08-27 17:03:31 +02:00
04581f9158 Add 'euph.rooms.<name>.autojoin' config option 2022-08-27 15:09:53 +02:00
74561c791b Add key bindings to dis-/connect from/to all rooms 2022-08-27 14:51:15 +02:00
ac13f4b490 Add key binding to change rooms sort order 2022-08-27 14:37:34 +02:00
c9eee7f1d0 Clean up cursor movement code a bit 2022-08-27 12:10:23 +02:00
8c1b207ac1 Fix --data-dir being incorrectly resolved 2022-08-27 12:10:23 +02:00
6150d05255 Add 'euph.rooms.<name>.force_username' config option 2022-08-25 23:19:40 +02:00
d0ba210855 Add 'euph.rooms.<name>.username' config option 2022-08-25 23:03:33 +02:00
6e6fddc0b1 Add 'euph.rooms.<name>.password' config option 2022-08-25 22:49:34 +02:00
e40948567a Add 'data_dir' config option 2022-08-25 22:33:25 +02:00
84ff1f068b Add 'ephemeral' config option 2022-08-25 22:15:43 +02:00
d61e0ceab7 Load config file on startup 2022-08-25 22:12:29 +02:00
8419afd2e1 Remove old comment 2022-08-25 22:08:47 +02:00
669e52a2ee Add key binding to download more logs 2022-08-22 21:15:49 +02:00
4956027027 Don't download room history in ephemeral mode 2022-08-22 21:15:09 +02:00
68bd6042c5 Add --ephemeral cli flag 2022-08-22 21:04:15 +02:00
f76c6a557d Remove key binding A as alias for a while joining room 2022-08-22 20:36:30 +02:00
3012de944b Fix hidden editor rendering 2022-08-22 20:22:25 +02:00
c618413728 Make popup titles left-aligned
In some cases when expanding popups with centered titles horizontally,
the title would jump right and left by one character. The new popups
also look more like the lazygit popups.
2022-08-22 20:07:26 +02:00
7b1259dee3 Redesign account ui 2022-08-22 20:03:47 +02:00
10e1ad6003 Reconect immediately on login/logout 2022-08-22 18:26:50 +02:00
59a4294e35 Fix char filter when pasting into editor 2022-08-22 17:25:21 +02:00
8128342099 Implement account login and logout 2022-08-22 17:25:21 +02:00