Aakash Sen Sharma
ec52c30ea7
[merge] Refactor config handler by EdenQwQ
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
450a532f78
Merge pull request #24 from Shinyzenith/config
...
Config file handler by Angelo-F
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
Shinyzenith
dac1f94b08
[update] Added \n at the end of contributor names.
2 years ago
Shinyzenith
854c505b19
[update] Contributors added.
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
Angelo Fallaria
067cbe2843
feat: add handling for multiline commands
2 years ago
Angelo Fallaria
4fd18d753e
style: remove one whitespace in config.rs for clarity
2 years ago
Angelo Fallaria
60b3c7ff24
style: format w/ rustfmt
2 years ago
Angelo Fallaria
d886ff18eb
fix: return missing command line nr. w/ blank line
2 years ago
Angelo Fallaria
e2027b2a04
style: improve style w/ rustfmt
2 years ago
Angelo Fallaria
7117317001
style: slightly improve style of parse_contents
2 years ago
Angelo Fallaria
681d553654
test: add test wrapper function to check err types
2 years ago
Angelo Fallaria
66c3792927
test: remove test for commented-out commands
...
Reason: Commented commands can be handled by the shell itself.
There's nothing really wrong with a commented-out command.
2 years ago
Aakash Sen Sharma
cdac47494d
[merge]
...
Simpler IPC implementation using std::os::unix::net instead of using interprocess crate.
2 years ago
Shinyzenith
ca629df880
[update] fixed pid file name.
2 years ago
Shinyzenith
ee458412b5
[update] Makefile, mkdir -p
2 years ago
Shinyzenith
f919ff91f3
[update] Warn on no server instances.
2 years ago
Shinyzenith
6d7b42e36e
[Remove] Useless testing file.
2 years ago
Shinyzenith
2e72f381e7
[Remove] interprocess crate from Cargo.toml
2 years ago
Shinyzenith
fdef609339
[junk] Cargo lock bs.
2 years ago
Shinyzenith
35d4960d87
[refactor] Simple IPC implementation using std::os
2 years ago
Aakash Sen Sharma
90f63c00b6
Merge pull request #22 from EdenQwQ/devel
...
Devel: small improvement
2 years ago
EdenQwQ
6fae0fce24
rustfmt, improve
2 years ago
Angelo Fallaria
4bce5f71d1
style: split the whitespace error return statement
2 years ago
Angelo Fallaria
62e20946de
ci: add formatting checker
2 years ago
Angelo Fallaria
21b348d5fc
chore: merge branch 'config' of github.com
2 years ago
Angelo Fallaria
fdf93f6d8c
feat(config): add error when command doesn't start w/ whitespace
...
Config: Error when command doesn't start with whitespace
2 years ago
EdenQwQ
b794b89c80
return the command line instead
2 years ago
EdenQwQ
84fd84cc65
error if command doesn't start with whitespace
2 years ago
Angelo Fallaria
3afb2fd470
ci: rename file to ci.yml and improve formatting
2 years ago
EdenQwQ
42d3c9da71
return the command line instead
2 years ago