Commit graph

212 commits

Author SHA1 Message Date
7c26947437
commands/list: resolve clippy warnings
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I6a6a6964e1bb8c22b5026ce65889e3aec1b90a71
2025-08-15 08:04:35 +03:00
83d45c6414
list: if we're in a TTY, output data in a TUI
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I6a6a696493f2e7ca911b6c1e2692b67f357a4b6b
2025-08-15 08:04:24 +03:00
raf
7ccaf13bda
Merge pull request #14 from Rexcrazy804/kill-ifd
nix: removal of ifd
2025-08-14 22:22:43 +03:00
Rexiel Scarlet
864b5cb93e
nix: removal of ifd 2025-08-14 23:06:44 +04:00
raf
b4762f3050
Merge pull request #13 from Rexcrazy804/patch-1
docs: correct invalid stash import snippet in README
2025-08-14 19:16:44 +03:00
Rexiel Scarlet
d939d8be01
README: stash --import -> stash import
corrected invalid stash command
2025-08-14 16:05:29 +00:00
raf
dd1c3b22da
Merge pull request #11 from Rexcrazy804/nix-incremental
nix: incremental builds with crane
2025-08-14 18:29:13 +03:00
Rexiel Scarlet
464daf3d71
workflows: addition of nix cache workflow 2025-08-14 19:24:33 +04:00
Rexiel Scarlet
d2996ba521
nix: incremental builds with crane 2025-08-14 19:24:07 +04:00
raf
40f4c1196d
Merge pull request #12 from NotAShelf/notashelf/push-lrzrznnxzlpw
stash: allow confirming destructive operations; add filter
2025-08-14 18:10:38 +03:00
0547376a9e
chore: apply clippy fixes; suppress "too many lines" lint
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I6a6a696476135218b9979677c66c4be4d96aced8
2025-08-14 17:31:26 +03:00
261b154527
stash: use LoadCrediental in the vendored Systemd service
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I6a6a6964e8080cc20ea3c78073141a1978f0b1f1
2025-08-14 17:24:22 +03:00
bbe3a0fd8d
docs: update README with filter options
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I6a6a696403633a49cbefdfe38bc8d6064fdd5a25
2025-08-14 17:24:21 +03:00
f3089148e0
db: allow explicitly skipping sensitive entries
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I6a6a6964ed1deaac0215ae9c6f4c70cfdc50164d
2025-08-14 17:24:20 +03:00
0c0547b6e8
chore: bump dependencies
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I6a6a69647235c4fe03eb0c5e6ea1290110e29ccf
2025-08-14 17:24:19 +03:00
86001652cd
stash: allow confirming destructive operations with --ask
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I6a6a69644c23734a8b088e20473d381390d532b4
2025-08-14 17:24:01 +03:00
f6bf5586ad
import: nesting is ew yuck
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I6a6a6964becfe6f31b0411110b75d4cdfe2b9c63
2025-08-14 10:53:40 +03:00
673bcb01be
docs: add installation instructions
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I6a6a69646bf49248120e693a4793c22441dd74cb
2025-08-14 10:53:39 +03:00
47b85472fa
stash: use stash watch for the vendored systemd service
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I6a6a69649280b8e52b3ee557d8f47091b54515f9
2025-08-13 18:49:28 +03:00
989ab7e4c3
chore: bump crate version
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I6a6a69642b437257ad6c584694fcc084b0572a57
2025-08-13 18:47:27 +03:00
64c923480e
decode: fallback to relaying current clipboard to stdout on failure
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I6a6a696451def3e367afa9e8b0dd6ae626906e53
2025-08-13 18:46:02 +03:00
raf
06221892b7
ci: build with cargo 2025-08-13 14:24:54 +00:00
raf
351b98c921
Merge pull request #9 from NotAShelf/notashelf/push-klsuwwwrwuqn
stash: create database directory automatically if missing
2025-08-13 17:09:10 +03:00
1905f38885
chore: bump crate version
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I6a6a6964fe753338359cc56ed84615bee23b8d58
2025-08-13 17:07:24 +03:00
db6a962c75
stash: create database directory automatically if missing
Oops.

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I6a6a6964866a1711971322c81ea194aa062466da
2025-08-13 17:07:06 +03:00
raf
fe5101809b
Merge pull request #6 from Rexcrazy804/improve-devshell
nix: improve devShell
2025-08-13 17:02:28 +03:00
Rexiel Scarlet
3cc394f6e5
direnv: watch nix/shell.nix for changes 2025-08-13 13:47:32 +04:00
Rexiel Scarlet
76970ee1cd
nix: added rustc into default devShell 2025-08-13 12:04:02 +04:00
57e8bc1474
nix: infer package version from Cargo.toml
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I6a6a6964297f08843615d04e10d405cdc4ef134f
2025-08-13 08:49:32 +03:00
raf
3262715cf0
Merge pull request #5 from NotAShelf/notashelf/push-zlynssnnvsqo
stash: add watch subcommand
2025-08-13 08:01:01 +03:00
291616e253
chore: bump crate version
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I6a6a6964832b0d19cf8919ed8503db5463dcdf54
2025-08-12 23:01:13 +03:00
9d0ad95e07
db: treat valid UTF-8 entries as text/plain
Makes JSON output more... servicable.

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I6a6a6964f642a02e990979f93f53a8b69764b469
2025-08-12 23:01:12 +03:00
f9457911ae
chore: bump crate version
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I6a6a696454149d06a8bcd3df62e1d9549d921b5b
2025-08-12 22:57:21 +03:00
9d40dde63a
commands/watch: make it trait-based; move out of main
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I6a6a6964c16396f2013e7f8a5c1a6c0c3bb2aeaa
2025-08-12 22:57:20 +03:00
d9b0908ada
db: allow listing database contents as JSON
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I6a6a6964a756588168f476d984d18f9e8d65bc4e
2025-08-12 22:57:19 +03:00
1a9625ecc3
chore: bump crate version
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I6a6a69645f6727a52e7caefe47fb1adde3de20af
2025-08-12 21:57:33 +03:00
fbebdf6ed6
meta: optimize release profile; enable LTO
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I6a6a696473887a4d9a526d93c6e1a93de5e3a85e
2025-08-12 21:54:01 +03:00
7d1aa21cdd
db: switch from image to imagesize
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I6a6a6964ab449f38999b5036d6e5554ccae7c049
2025-08-12 21:54:00 +03:00
5bcc23b6f9
stash: don't initialize watch daemon with None
Fixes the daemon always updating the latest entry.

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I6a6a696489a2e9a0928ff799a4210c160014c485
2025-08-12 21:53:59 +03:00
6c5408abd1
stash: make watch loop async
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I6a6a69641a4f39f0368de1bcf5780afbe8e5c0b1
2025-08-12 21:53:47 +03:00
d6e4f47bdd
docs: update README with project comparison; document watch feature
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I6a6a696451e174b6ba4f90cfb4c1547ebd2f694b
2025-08-12 19:21:14 +03:00
fcaf5fb14f
stash: print --help text if no subcommand is provided
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I6a6a69646361b7ade52ee73a6aa11be859132a94
2025-08-12 19:21:13 +03:00
d9029ef8b7
docs: update README with the watch feature
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I6a6a69640e1c77cc479b40f276ba77b736040504
2025-08-12 19:07:39 +03:00
4f725425fc
db: switch to sqlite as the primary backend
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I6a6a69648f81d0d094e11a3e0f0a19d3b8eccd5d
2025-08-12 19:07:38 +03:00
efcbe17d73
stash: add watch subcommand
Watches primary clipboard for changes and stores them in the database.

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I6a6a6964de9949bbe6d8b9301ca97ae785852b46
2025-08-12 19:07:26 +03:00
raf
9c26b6e8d0
Merge pull request #4 from NotAShelf/notashelf/push-pvkyrosxlwkp
treewide: general cleanup
2025-08-12 17:40:19 +03:00
aa602edbee
treewide: fix remaining clippy warnings
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I6a6a6964a4f18b72e3fa774cec6b81baa8267cb6
2025-08-12 17:34:43 +03:00
7ebe514e3a
stash: deduplicate error reporting
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I6a6a6964f0f3f13190dde392fc859718716b56a8
2025-08-12 17:34:42 +03:00
6e21021306
treewide: improve logging; custom error types with thiserror
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I6a6a696464e4123d15cfaedf4727776e55948369
2025-08-12 17:34:41 +03:00
7dd3db4c88
ci: publish tagged releases
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I6a6a6964901463c7111df0764272c26ff83eea9f
2025-08-12 17:34:40 +03:00