EdenQwQ
106bef257c
added many keysyms
2 years ago
EdenQwQ
1ef54df4f7
support single keysym
2 years ago
Shinyzenith
92b8b6f24b
[feature] Do not allow multiple instances.
2 years ago
Shinyzenith
078135bc55
[update] Mention failed line on parse error.
2 years ago
Shinyzenith
44568d19fc
[Update] add printscr to enum
2 years ago
EdenQwQ
8499692702
Implement inline comments support when parsing config
2 years ago
Shinyzenith
a415b24323
[update] Example config file uploaded.
2 years ago
Shinyzenith
4eb86e8a74
[update] remove sock test
2 years ago
EdenQwQ
9886b6c194
fix the bug caused by wrong comparing method
2 years ago
Shinyzenith
bd1227a245
[Bug fix] fix auto repeat bug
2 years ago
Shinyzenith
0af29511f5
[wip] working cooldown
2 years ago
Shinyzenith
e949a8bd72
[wip] Check last hotkey for duplicate removal.
2 years ago
EdenQwQ
4d3c58cca8
rustfmt
2 years ago
EdenQwQ
d5ba98f2f3
fix
2 years ago
EdenQwQ
48c1e58564
finish
2 years ago
EdenQwQ
902a2b545f
a hashmap from evdev:Key to config::Modifiers
2 years ago
EdenQwQ
ed00571241
small improvement
2 years ago
Shinyzenith
cc2c0f4f68
[update] lower sleep time.
2 years ago
Shinyzenith
25987beba6
[testing] Documentation.
2 years ago
Shinyzenith
465c155be5
[testing]Print possible matches based on key count
2 years ago
Aakash Sen Sharma
6ac6ede0d9
[merge] Config handler refactor by EdenQwQ
...
[feature] Ignore duplicate key signatures by EdenQwQ
2 years ago
Shinyzenith
61633a5799
[update] Concise notation.
2 years ago
EdenQwQ
34c2426e03
modify test to make sure this also work with empty modifier
2 years ago
EdenQwQ
d697eaea36
ignore duplicated keys
2 years ago
EdenQwQ
d83063fc1e
convert to lowercase
2 years ago
Eden
eca333e62e
Merge pull request #29 from waycrate/config_new
...
refactor
2 years ago
Shinyzenith
bdc878ea45
[Remove] test code was pushed on accident.
2 years ago
Shinyzenith
978fa8195b
[update] Change git slug
2 years ago
Shinyzenith
45b3b1b260
[update] make all fields in hotkey struct, pub
2 years ago
EdenQwQ
271c8c32b2
finished
2 years ago
EdenQwQ
d007cfdace
join lines ending with backslash and have the same type before actual parsing
2 years ago
EdenQwQ
2e84be120e
a new vector called lines_with_types to store the position and the type of each line
2 years ago
EdenQwQ
c64ed4bcc3
ignore some tests concerning empty commands
2 years ago
Shinyzenith
70b8634de8
[update] Change git slug
2 years ago
Aakash Sen Sharma
707ca1b816
Merge branch 'main' into config
2 years ago
Angelo Fallaria
560f69dc0a
test: refactor return statement in tests
...
In many tests, the structure at the end of the test function is like
this:
```rust
eval_test(...);
Ok(())
```
It can be simplified to just:
```rust
eval_test(...)
```
2 years ago
Angelo Fallaria
f9e0db9309
fix: remove unused code in parse_keybind
2 years ago
Angelo Fallaria
5ad8877e73
feat: allow empty commands
2 years ago
Angelo Fallaria
0f3f64551f
style(config): format w/ rustfmt
2 years ago
Angelo Fallaria
f272fcfc64
feat: add more modifiers
...
Modifiers added: Escape, BackSpace, Return, Tab, Minus, Equal, Grave
2 years ago
Angelo Fallaria
b06323540e
test: add tests for more keysyms
2 years ago
Angelo Fallaria
252e09a5d2
refactor: use 'map' instead of iteration for modifiers
2 years ago
Angelo Fallaria
5e2b74d923
feat: add detection of modifier keys
2 years ago
Angelo Fallaria
981d4c0387
refactor: reduce one line of indent in parsing
...
Checking if the current line is a command can be refactored
into a guard clause.
2 years ago
Angelo Fallaria
ff635cc3d9
refactor: remove unused 'keysyms' var in parse_contents
2 years ago
Angelo Fallaria
5aa87b60cc
test: add tests for invalid configs
2 years ago
Angelo Fallaria
b5ba778072
feat: add modifiers field to Hotkey
2 years ago
Angelo Fallaria
7a34a1e664
test: add #[test] to #[ignore] tests
2 years ago
Angelo Fallaria
1953fe269e
test: refactor valid config tests into a wrapper
2 years ago
Angelo Fallaria
920458cdf7
style: put the error checks next to each other
2 years ago