Tait Hoyem
347d4bd409
Remove common
2 years ago
Tait Hoyem
f40385ae65
Attempt at working with optional keys
2 years ago
Tait Hoyem
85779876dd
swhkd -> sohkd
2 years ago
Tait Hoyem
f2a17998a5
Working consumption of keys
2 years ago
Tait Hoyem
80f4fde12d
Move socket sending to new thread
2 years ago
Tait Hoyem
d58fb3d5c3
Add control program to change modes; also accepted over sohkdctl.sock
2 years ago
Tait Hoyem
56a94b2dee
New Hotkey struct; compiling
2 years ago
Tait Hoyem
af323a0f16
Add consume config
2 years ago
Tait Hoyem
78179cc836
Add modal keybindings
2 years ago
EdenQwQ
07c86a2c2b
[test]config: restore test for 'none'
2 years ago
EdenQwQ
7e60588717
[update]config: avoid possible error when removing file; fix typo; ignore undone tests
2 years ago
Angelo Fallaria
9b81a7ed6a
test: add another test for multiple ranges
2 years ago
Angelo Fallaria
0223510bf7
test: add test for multiple ranges
2 years ago
Angelo Fallaria
547027c52c
Merge branch 'main' of github.com:waycrate/swhkd
2 years ago
Angelo Fallaria
49fd6268a5
test: make keybind order not matter for config test
2 years ago
Angelo Fallaria
3b0edf53e4
test: remove unimplemented tests
2 years ago
Angelo Fallaria
71b7faf138
revert: remove alias tests
2 years ago
Angelo Fallaria
da5e14d761
fix: remove git merge conflict markers
2 years ago
Angelo Fallaria
220d16d0b0
revert: "[feat] config: support for aliases"
...
This reverts commit 76ca5be56e
.
2 years ago
EdenQwQ
5720d0b3f7
[update] config: add brace key
2 years ago
EdenQwQ
7c4b545853
[update] config: mod1 = alt, mod4 =
2 years ago
Eden
53eca2d556
[remove] config: remove unnecessary check
...
I'm literally pushing this commit on my phone lol
2 years ago
EdenQwQ
ca68cc6cb1
[update] config: add space key; add support for using '_' as a 'None'
2 years ago
EdenQwQ
467067459c
[test] config: test for should work aliases (just to make sure)
2 years ago
EdenQwQ
938fc88b7c
Merge branch 'main' into config_devel
...
merge main
2 years ago
EdenQwQ
76ca5be56e
[feat] config: support for aliases
2 years ago
EdenQwQ
7c230c4054
[fix] config: typo in comment
2 years ago
Angelo Fallaria
ba1ad4845c
refactor(config): order functions by importance
...
To better communicate which functions are more fundamental,
`parse_contents` has been put above `parse_keybinds` and
`extract_curly_brace`.
2 years ago
Angelo Fallaria
ba84ffab6a
refactor: rename push_direct_output to push_one_item
2 years ago
Angelo Fallaria
3fceb8bb1e
refactor: improve var names for ascii iterator
2 years ago
Angelo Fallaria
983b02aa45
refactor: rename start/end to start_index/end_index
2 years ago
Angelo Fallaria
38b1d758c7
style: format w/ rustfmt
2 years ago
Angelo Fallaria
67a558288e
refactor: rename .._curly_brace to str_..._braces
2 years ago
Angelo Fallaria
4140fa3065
refactor: rename i in range to ascii_number
2 years ago
Angelo Fallaria
767f8eb6f6
refactor: add descriptive var names for ASCII ranges
2 years ago
Angelo Fallaria
3ce4db7be8
refactor: change range syntax for squirly brace
...
Before:
```rust
begin.parse::<char>().unwrap() as u8..end.parse::<char>().unwrap() as u8 + 1
```
After:
```rust
begin.parse::<char>().unwrap() as u8..=end.parse::<char>().unwrap() as u8
```
We will use ..= instead of adding + 1 to the end range as it is
the idiomatic Rust syntax.
2 years ago
Angelo Fallaria
985598e575
refactor: use another guard clause in squirly brace
2 years ago
Angelo Fallaria
099f54f20e
refactor: rename direct_output closure into push_direct_output
2 years ago
Angelo Fallaria
3188fbde31
refactor: use guard clause in squirly brace fn
2 years ago
Angelo Fallaria
fed4c445a5
style(config): add some blank lines in curly brace fn
2 years ago
Angelo Fallaria
6f18996445
refactor(config): refactor curly brace finding
...
Remove a lot of unnecessary mutable variables to find
the curly braces. Instead, use a bit of functional programming
to achieve the algorithm.
2 years ago
Angelo Fallaria
343e5c74da
refactor: convert another if block into guard clause
2 years ago
Angelo Fallaria
6720ab6ed3
refactor(config): use guard clause in loop
2 years ago
Angelo Fallaria
7d59afb3c6
refactor(config): improve duplicate hotkey check
2 years ago
EdenQwQ
ee31c54d42
[update] config: more tests for range syntax
2 years ago
EdenQwQ
49ebf957b3
rustfmt
2 years ago
EdenQwQ
caaedeb4a7
[update] handle invalid range
2 years ago
EdenQwQ
214b1b1692
Merge remote-tracking branch 'origin/error_display' into config_devel
...
[merge] config error display by Angelo
2 years ago
EdenQwQ
5df6027991
[remove] config: remove test for nonsensical file
2 years ago
Angelo Fallaria
90cb0e4b93
feat(daemon): display error message for config errors
2 years ago