feat: lazysecrets list prints everything lazysecrets can find, for fzf and editor pickers #70

Merged
keb merged 45 commits from feat/list into main 2026-10-14 21:30:44 +02:00
Showing only changes of commit e8d3a3337a - Show all commits
+5 -2
View File
@@ -157,8 +157,10 @@ instead, showing the names and acting on the links:
```sh ```sh
lazysecrets list | fzf --ansi --with-nth='2..-3' --accept-nth=-1 \ lazysecrets list | fzf --ansi --with-nth='2..-3' --accept-nth=-1 \
--header 'enter: link · ctrl-o: open · ctrl-y: copy value · alt-y: copy, stay' \
--bind 'ctrl-o:become(lazysecrets open --action go --account {-2} {-1})' \ --bind 'ctrl-o:become(lazysecrets open --action go --account {-2} {-1})' \
--bind 'ctrl-y:execute-silent(lazysecrets get --account {-2} {-1} | pbcopy)' --bind 'ctrl-y:become(lazysecrets get --account {-2} {-1} | pbcopy)' \
--bind 'alt-y:execute-silent(lazysecrets get --account {-2} {-1} | pbcopy)+change-header(Copied the value of {2..-3})'
``` ```
`--with-nth='2..-3'` shows and searches only the names; `{-1}` and `--with-nth='2..-3'` shows and searches only the names; `{-1}` and
@@ -167,7 +169,8 @@ one word, so this works without `--delimiter`. To filter by kind
yourself: `awk -F'\t' '$1 == "secret"'`. yourself: `awk -F'\t' '$1 == "secret"'`.
`enter` prints the link (`lazysecrets get $(…)`), `ctrl-o` opens it in `enter` prints the link (`lazysecrets get $(…)`), `ctrl-o` opens it in
lazysecrets and `ctrl-y` copies the value (`pbcopy` on macOS; `wl-copy` or lazysecrets, `ctrl-y` copies the value and closes fzf, and `alt-y` copies
it and stays, saying so in the header (`pbcopy` on macOS; `wl-copy` or
`xclip` on Linux). A value copied this way isn't cleared from the `xclip` on Linux). A value copied this way isn't cleared from the
clipboard after `values.clipboardClear`, as one copied in lazysecrets is. clipboard after `values.clipboardClear`, as one copied in lazysecrets is.