Commit graph

275 commits

Author SHA1 Message Date
fe381e1146 Make unrendered editors' behaviour a bit more sane
In practice, this doesn't really matter anyways.
2022-08-20 16:25:46 +02:00
037bed698c Make room list heading always visible 2022-08-19 23:26:49 +02:00
36b717ff8c Use euphoxide instead of euph module 2022-08-18 18:13:49 +02:00
6dc7d2bd0b Placate clippy 2022-08-17 23:06:49 +02:00
80dad00125 Fix crash when connecting to some types of room 2022-08-17 23:04:43 +02:00
19a477e423 Make cursor visible after exiting editor 2022-08-11 14:37:04 +02:00
f7e7003788 Handle paste events in editor
Only on non-windows platforms though, since crossterm doesn't support
pasting on windows.
2022-08-10 23:59:45 +02:00
5ad9f0f3e7 Include pastes in input events 2022-08-10 23:59:08 +02:00
fa91515a61 Move euph room ui to new euph module 2022-08-10 22:35:30 +02:00
f7e379fe3a Scroll with page up/down 2022-08-10 03:14:26 +02:00
5acb4c6396 Center cursor on screen 2022-08-09 15:51:47 +02:00
a4b79d4e81 Move cursor to prev/next sibling 2022-08-09 15:44:35 +02:00
c41ab742d3 Fix message count in folded info 2022-08-09 15:12:49 +02:00
87a14eedf2 Move cursor over folded subtrees 2022-08-09 15:07:37 +02:00
0ad3432141 Fold subtrees 2022-08-09 15:00:12 +02:00
26923745ad Show unseen message count in room status info 2022-08-09 01:18:20 +02:00
9314e29b0e Fix unseen message count not appearing initially
When launching cove, the euph_rooms hash map would be empty until
interacting with a room for the first time. This led to the unseen
message count only being displayed after interacting with a room. Now,
missing rooms are inserted into euph_rooms during stabilization.
2022-08-09 00:50:07 +02:00
888870b779 Show unseen message count in room list 2022-08-08 23:14:58 +02:00
bfc221106d Move to prev/next unseen message 2022-08-08 21:31:12 +02:00
cee91695e0 Mark older messages as seen instead 2022-08-08 21:31:12 +02:00
573f231466 Mark all messages as seen 2022-08-08 21:31:12 +02:00
43247e2a5c Mark all visible messages as seen 2022-08-08 21:31:12 +02:00
de569211f6 Display seen status of messages 2022-08-08 21:31:12 +02:00
6166c5e366 Toggle messages' seen status 2022-08-08 21:31:09 +02:00
a2b9f57a09 Fix room and nick dialog padding 2022-08-07 00:55:54 +02:00
d114857abd Update changelog 2022-08-07 00:55:54 +02:00
de095e74ae Change binding for external editor
In order to avoid collisions with ctrl+e, we need a new binding. In
bash/readline, ctrl+x is used as a sort of leader key to initiate
multi-key bindings. I don't think I'll implement multi-key combinations
any time soon, so now ctrl+x stands for 'edit in eXternal editor'.
2022-08-07 00:30:36 +02:00
9ebe2361a9 Move cursor one word left/right 2022-08-07 00:25:53 +02:00
51d03c6fe2 Fix moving to end of last line 2022-08-07 00:01:27 +02:00
4bf6d80988 Move to start/end of editor line 2022-08-06 23:54:53 +02:00
ba35a606a8 Increase F1 key binding column width 2022-08-06 23:54:43 +02:00
0d3131facd Add more readline-like key bindings 2022-08-06 23:54:22 +02:00
bfbdec4396 Move editor key handling to one place 2022-08-06 23:39:56 +02:00
f48a4a6416 Remove trailing newline of externally edited text 2022-08-06 23:39:56 +02:00
c4d3f5ba4d Move cursor in message editor vertically 2022-08-06 23:39:56 +02:00
d97dff07e4 Add note about F1 to empty rooms list 2022-08-04 17:16:44 +02:00
a0f2f9500c Fix ? not working in normal room view 2022-08-04 17:03:38 +02:00
6c1ce49236 Show available key bindings with F1/? 2022-08-04 17:02:54 +02:00
a51bb60342 Add Resize widget 2022-08-04 16:53:05 +02:00
8374552715 Fix cursor moving out of bounds
On a long line ending with whitespace, the cursor would be able to move
out of bounds if there was enough whitespace.
2022-08-04 02:22:20 +02:00
20ea96f83e Match key events using macros 2022-08-04 01:05:08 +02:00
a3327a7a2c Fix HJoin/VJoin available space calculations 2022-08-03 21:38:54 +02:00
70e8755e6a Align nicks in nick list vertically 2022-08-03 19:57:06 +02:00
2dfdbbb4d2 Fix scrolling when composing a new thread
When composing a new thread and writing more than one line, the chat
wouldn't scroll to make the editor cursor visible again. My original
guess for when the scrolling code should run was a bit too restrictive.
2022-08-03 03:08:00 +02:00
4d1a42427a Add scrolloff 2022-08-03 02:52:53 +02:00
042f0ab78d Move cursor chronologically 2022-08-03 02:02:12 +02:00
01ee4b4ce8 Use new highlight colors for editor and pseudo messages 2022-08-03 01:12:31 +02:00
cbe2b2e10e Add some todos 2022-08-03 00:12:14 +02:00
f70d0c25cf Clear editor contents with ctrl+l 2022-08-02 23:14:27 +02:00
806200b799 Remove old editor code 2022-08-02 22:56:33 +02:00