Commit graph

28 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
2ecc482533 Configure all deps in workspace 2024-12-04 20:20:17 +01:00
cff933b0bf Add and fix more lints 2024-12-04 20:14:41 +01:00
19242a658e Update dependencies 2024-05-20 19:12:41 +02:00
d3666674b2 Update dependencies 2024-04-25 20:41:04 +02:00
db529688e9 Use cargo workspace lints 2024-04-25 20:38:21 +02:00
37e4c6b845 Update dependencies 2024-01-11 11:22:34 +01:00
a0b029b353 Update dependencies 2024-01-04 13:52:18 +01:00
39a4f29a2a Update dependencies 2023-12-28 20:05:18 +01:00
2e039a855c Update dependencies 2023-08-31 14:01:03 +02:00
876619454e Update dependencies 2023-05-14 16:48:26 +02: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
325c5e6e5c Remove resolved todos 2023-04-29 15:46:05 +02:00
03c7fb567c Auto-derive Default for KeyGroups 2023-04-29 01:50:33 +02:00
202969c7a9 Add and update key bindings 2023-04-29 01:17:45 +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
15177a529a Clean up macro code a bit 2023-04-27 20:36:00 +02:00
6f85995379 Derive Document for simple enums 2023-04-27 20:34:46 +02:00
458025b8bf Use serde's default annotation for Document 2023-04-27 20:11:16 +02:00
e1c3a463b2 Move key binding groups to config crate 2023-04-27 15:31:49 +02:00
1276a82e54 Implement Group derive proc macro 2023-04-27 11:08:07 +02:00
a1acc26027 Extract Document derive macro to submodule 2023-04-27 10:38:17 +02:00
f2c3011888 Implement Document derive proc macro 2023-04-24 14:02:20 +02:00
dfb2ef5371 Set up cove-macro proc macro crate 2023-04-24 12:03:30 +02:00