Commit graph

25 commits

Author SHA1 Message Date
fbc64de607 Merge and reorder imports
This change brings them in-line with the default settings of
rust-analyzer. Originally, I disliked this style, but by now, I've grown
used to it and prefer it slightly. Also, I like staying on the default
path since I usually don't need to check the imports to see if
rust-analyzer messed anything up (except for omitting the self:: when
importing modules defined in the current module, grr :D).

I've also come around to the idea of trailing mod definitions instead of
putting them at the top: I would also put module definitions that
contain code instead of referencing another file below the imports. It
feels weird to have code above imports. So it just makes sense to do the
same for all types of mod definitions.

If rustfmt ever gains stable support for grouping imports, I'll probably
use that instead.
2025-02-21 12:46:25 +01:00
816d8f86a3 Migrate rustfmt style to 2024 edition 2025-02-21 12:17:57 +01:00
cff933b0bf Add and fix more lints 2024-12-04 20:14:41 +01:00
3a3d42bcf3 Fix clippy warning 2024-04-25 20:38:43 +02:00
e0948c4f1c Fix duplicated key presses on windows 2024-01-03 23:51:20 +01:00
101d36cd45 Provide list of key groups in config crate
This also fixes the f1 menu not displaying the room group.
2023-04-30 22:12:21 +02:00
b6fdc3b7e8 Parse and show space key as "space" 2023-04-29 15:04:37 +02:00
591807dd55 Fix handling of shift for KeyCode::Char 2023-04-29 01:17:45 +02:00
9bc6931fae Migrate input handling to new bindings 2023-04-29 01:17:45 +02:00
e5960b8eda Include more things in InputEvent 2023-04-29 01:17:45 +02:00
6b05a2a06d Fix modifiers being capitalized 2023-04-29 01:17:45 +02:00
1ce31b6677 Always show all key bindings in F1 menu 2023-04-29 01:17:45 +02:00
51b1953207 Fix "any" matching no modifiers 2023-04-29 01:17:45 +02:00
36c5831b9b Simplify InputEvent
Now that I've decided the F1 menu should always show all key bindings,
there is no need for the InputEvent to be so complex.
2023-04-27 21:46:33 +02:00
64a7e7f518 Simplify KeyGroup
The trait will only be used for documenting the key bindings in the F1
menu from now on. The InputEvent will be directly match-eable against
KeyBinding-s, which should suffice for input event handling.
2023-04-27 21:37:48 +02:00
6ce2afbc9f Rename Input to InputEvent and add paste events 2023-04-27 21:10:34 +02:00
fdc46aa3b8 Rename Group to KeyGroup 2023-04-27 20:56:41 +02:00
6c99f7a53a Rename Group::Action to Event 2023-04-27 20:39:33 +02:00
9f24cb2de1 Fix function key parsing 2023-04-27 18:30:56 +02:00
e1c3a463b2 Move key binding groups to config crate 2023-04-27 15:31:49 +02:00
478e3e767c Add some key binding groups 2023-04-27 11:08:14 +02:00
17acdd0575 Add Group trait 2023-04-27 10:38:17 +02:00
072290511b Query key bindings against input event 2023-04-27 10:38:17 +02:00
3fbb9127a6 Model and (de-)serialize key bindings 2023-04-27 10:38:17 +02:00
abedc5f194 Create cove-input crate 2023-04-26 14:58:36 +02:00