27 Commits (b794b89c8057c651824d08e7d93aaba2e975dae1)

Author SHA1 Message Date
EdenQwQ b794b89c80 return the command line instead
2 years ago
EdenQwQ 84fd84cc65 error if command doesn't start with whitespace
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
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
Angelo Fallaria c2c1a0285d feat(config): return error if keybind at last line
2 years ago
Angelo Fallaria 3f5c46cc48 style: remove unecessary TODO: comments
2 years ago
Angelo Fallaria a444e3eff1 style: compress the evdev keys vector
2 years ago
Angelo Fallaria 2d97b2dea3 feat(config): add all alphanumeric numbers
2 years ago
Angelo Fallaria 1a1ba9ffbd test(config): add 9 more unit tests
2 years ago
Angelo Fallaria 252ce9f2e4 feat: add basic config parser
2 years ago