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
Angelo Fallaria
0061107669
ci: add basic Rust CI
2 years ago
Eden
8b168b8845
Merge branch 'Shinyzenith:config' into config
2 years ago
EdenQwQ
2b81e33446
error if command doesn't start with whitespace
2 years ago
Angelo Fallaria
a1872dab76
feat: Merge pull request #19 from EdenQwQ
...
small improvement
2 years ago
EdenQwQ
a7529c49f2
small improvement
2 years ago
Angelo Fallaria
cffd1694d1
style: format config.rs using rust-analyzer
2 years ago
Angelo Fallaria
b47904b3f3
test: add test for command with blank space
2 years ago
Angelo Fallaria
c61e92a3a2
style: add comment in ParseError to explain u32 field
2 years ago
Angelo Fallaria
60c2539413
feat: add public load config function
2 years ago
Angelo Fallaria
d26c4666ee
test: edit tests to accomodate the edited functions
2 years ago
Angelo Fallaria
9b6d67f45e
refactor: make parse_contents accept string, not PathBuf
2 years ago
Angelo Fallaria
0a76516178
test: rewrite basic hotkey tests
2 years ago
Angelo Fallaria
d5a95a26ef
refactor: refactor file loading into own function
2 years ago
Angelo Fallaria
0266ab2718
refactor: rename key_presses field in Hotkey to keysyms
2 years ago
Angelo Fallaria
abe8987d79
refactor: rename Keybind to Hotkey
2 years ago
Angelo Fallaria
17d0f02baa
test: add blank tests to fill in later
2 years ago
Angelo Fallaria
d153526037
test: improve test for nonexistent file
2 years ago
Angelo Fallaria
fd9524eaf5
style: remove some newlines in start of parse_config
2 years ago
Angelo Fallaria
ebd9db0689
fix: remove unneeded PartialEq derive in enum
2 years ago
Angelo Fallaria
7103537e31
fix: return actual line number in error
...
Because arrays, vectors, and list-style structures in Rust are
zero-index, we need to increment the line number returned by errors
by one so that it represents their actual line numbers.
2 years ago
Angelo Fallaria
8918b03f6e
feat: add handling of empty command
2 years ago
Angelo Fallaria
5763be0a7b
style: improve styling and comments of config parse func
2 years ago
Angelo Fallaria
503f174672
feat: add more error situations in the config parser
2 years ago