Commit graph

25 commits

Author SHA1 Message Date
3012de944b Fix hidden editor rendering 2022-08-22 20:22:25 +02:00
84930c8c34 Add focus and hiding options to editor 2022-08-22 17:15:09 +02:00
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
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
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
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
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
cbe2b2e10e Add some todos 2022-08-03 00:12:14 +02:00
806200b799 Remove old editor code 2022-08-02 22:56:33 +02:00
64c64884e4 Fix cursor position after trailing newline 2022-08-02 22:54:52 +02:00
3ab73668ba Fix editor cursor not being made visible 2022-08-02 22:09:41 +02:00
cfcc663169 Remove pseudo message after server replied 2022-08-02 21:43:35 +02:00
fe0f6c7520 Edit editor contents externally 2022-08-02 00:42:52 +02:00
5c9c6e9d98 Fix word wrapping inside VJoins 2022-08-01 19:13:54 +02:00
2d1c953250 Update toss 2022-08-01 19:13:06 +02:00
e93c29b839 Prompt editor for cursor row 2022-07-28 11:46:10 +02:00
099cb8d4f7 Fix cursor placement in nick dialog 2022-07-23 23:45:42 +02:00
77c5b479aa Add 'choose nick' dialog 2022-07-23 23:00:09 +02:00
a5757d4660 Fix editor cursor positioning 2022-07-23 22:25:14 +02:00
f1899ab295 Add inline editor for connecting to new rooms 2022-07-23 22:09:05 +02:00
5f28ff0ffd Make editor a widget 2022-07-23 19:49:58 +02:00
Renamed from src/ui/editor.rs (Browse further)