Commit Graph

61 Commits

Author SHA1 Message Date
Harsh Shandilya cb5f0b2f13 fix(clipboard): add pause between loop iterations 2023-12-23 15:43:17 +05:30
Harsh Shandilya c698b9d509 feat: drop `clipboard-master` dependency
It's just a busy loop this thing is completely unnecessary
2023-12-23 15:42:03 +05:30
Harsh Shandilya ebf0a076fd
chore: fix Clippy lints 2023-08-25 03:53:33 +05:30
Harsh Shandilya 2f72e3e496 fix: address Clippy lints 2023-01-24 17:38:27 +00:00
Harsh Shandilya 7918e78d65 fix: use `rename_all` and fix tests 2023-01-24 17:33:07 +00:00
Harsh Shandilya a0ba1db28a fix: adjust for toml 0.6.0 upgrade 2023-01-24 17:17:24 +00:00
Harsh Shandilya 17867ef5f2
feat(logging): do not clear journald field prefixes 2022-08-15 16:04:19 +05:30
Harsh Shandilya 5d1d59954d
chore(config): fix clippy lints 2022-07-14 03:01:42 +05:30
Harsh Shandilya 2c0a087231
feat: validate config at launch 2022-07-13 16:28:39 +05:30
Harsh Shandilya 0e4fe250d7
feat(config): add config validation 2022-07-13 16:25:05 +05:30
Harsh Shandilya a8b4b579a7
chore(config): add trace logs 2022-07-13 16:25:04 +05:30
Harsh Shandilya 26b0b06759
refactor(logging): extract tracing infrastructure to its own module 2022-07-13 16:25:04 +05:30
Harsh Shandilya 0a425cf59d
fix(config): resolve `clippy::needless-return` lint 2022-06-09 09:54:42 +05:30
Harsh Shandilya 8003246afd
refactor: use tracing's formatting machinery 2022-05-19 06:42:37 +05:30
Harsh Shandilya 487e8eadbb
fix: tweak config file name logging 2022-05-19 06:38:40 +05:30
Harsh Shandilya a4dd6808f4
feat: log config directory to tracing stream 2022-05-16 15:43:35 +05:30
Harsh Shandilya 1c73c20a12
fix: allow compiling on Rust 1.57.0 2022-05-11 21:02:19 +05:30
Harsh Shandilya 7274d8acb2
refactor: fix `clippy::pedantic` lints 2022-05-01 19:03:22 +05:30
Harsh Shandilya a5c22063cd
refactor: switch to argv for argument handling 2022-05-01 18:16:41 +05:30
Harsh Shandilya 42747e0f4c
refactor: fix clippy lints 2022-05-01 18:16:41 +05:30
Harsh Shandilya f0080559dd
refactor: use clipboard-master for events 2022-04-26 22:18:21 +05:30
Harsh Shandilya 9ac2d098e2
nix: update shell config 2022-03-28 13:48:31 +05:30
Harsh Shandilya ae0eb3860a
chore: run cargo fmt 2022-03-18 20:29:49 +05:30
Harsh Shandilya 0ba32ac499
fix(logging): correctly use feature attributes for journald 2022-03-10 16:43:15 +05:30
Harsh Shandilya 139e833d04
feat(logging): add a journald feature to log to systemd 2022-03-10 14:20:20 +05:30
Harsh Shandilya 5d6b27249d
chore: reformat with new rustfmt config 2022-03-07 01:25:48 +05:30
Harsh Shandilya ea3ad1889c
refactor: switch logging to tracing
Adds in slightly more dependencies than I'd like but at least it works
2022-03-07 01:14:49 +05:30
Harsh Shandilya 52489ad051
feat: remove pretty_env_logger
It never really did anything
2022-03-06 16:03:47 +05:30
Harsh Shandilya 86ea822d2c
refactor: bail early if version is requested 2022-03-06 16:00:34 +05:30
Harsh Shandilya c9f3c63b32
chore: fix clippy 1.61 lints 2022-02-25 00:16:09 +05:30
Harsh Shandilya eb3074d324
refactor: use fully qualified variant name 2022-02-22 09:43:17 +05:30
Harsh Shandilya 4684713d7e
refactor: implement `Match` for `MatcherType`
Delegate the responsibility of handling different `MatcherType`s to the config module.
2022-02-22 09:38:31 +05:30
Harsh Shandilya 80e33e97e6
refactor: rename `Substitutor.matcher_type` to `matcher` 2022-02-20 13:50:55 +05:30
Harsh Shandilya 8e2f68b9b7
feat: add tests for config parsers 2022-02-20 02:57:22 +05:30
Harsh Shandilya 7be11d9a90
refactor: support multiple matchers in a single substitutor 2022-02-20 02:45:00 +05:30
Harsh Shandilya 0f67855571
refactor: do not derive Clone in config structs 2022-02-20 02:05:20 +05:30
Harsh Shandilya 6119968d6d
refactor: constify version args slice 2022-02-17 13:14:48 +05:30
Harsh Shandilya 952afdcec3
refactor: remove unnecessary clones and borrows 2022-02-17 13:11:33 +05:30
Harsh Shandilya f1e2106152
chore: change up argument checking logic 2022-02-16 18:40:19 +05:30
Harsh Shandilya bf317fb353
chore: use assay for tests 2022-02-15 17:32:19 +05:30
Harsh Shandilya ff3a72968a
feat: add tests for actions 2022-02-15 03:04:10 +05:30
Harsh Shandilya 86cb0fde40
feat: begin adding tests for matchers 2022-02-15 02:54:56 +05:30
Harsh Shandilya a112cbefc6
refactor: don't move value in Act and Match implementations 2022-02-15 02:54:16 +05:30
Harsh Shandilya 28710ab3ed
fix: remove panicking flow 2022-02-15 02:40:27 +05:30
Harsh Shandilya 358e54b897
main: support various version CLI flags 2022-01-23 15:44:48 +05:30
Harsh Shandilya 675b90f226
main: extract config path logic to its own method 2022-01-23 15:37:26 +05:30
Harsh Shandilya 2d4776d7d0
main: extract clipboard logic to its own method 2022-01-23 15:25:41 +05:30
Harsh Shandilya 0a0919faf6
all: update trivial formatting macros to use implicit capture 2022-01-23 14:40:42 +05:30
Harsh Shandilya 51e7c4a74c
config: add support for `Matcher::Exactly` and `Action::Set` 2022-01-23 14:35:52 +05:30
Harsh Shandilya 20e7ba87de
cargo: fmt 2021-12-05 09:10:54 +05:30