diff --git a/docs/links.md b/docs/links.md index 43cd5fc..c619d56 100644 --- a/docs/links.md +++ b/docs/links.md @@ -157,10 +157,10 @@ instead, showing the names and acting on the links: ```sh 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' \ + --header 'enter: link · ctrl-o: open · ctrl-y: copy value · ctrl-x: copy and close' \ --bind 'ctrl-o:become(lazysecrets open --action go --account {-2} {-1})' \ - --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})' + --bind 'ctrl-y:execute-silent(lazysecrets get --account {-2} {-1} | pbcopy)+change-header(Copied the value of {2..-3})' \ + --bind 'ctrl-x:become(lazysecrets get --account {-2} {-1} | pbcopy)' ``` `--with-nth='2..-3'` shows and searches only the names; `{-1}` and @@ -169,9 +169,9 @@ one word, so this works without `--delimiter`. To filter by kind yourself: `awk -F'\t' '$1 == "secret"'`. `enter` prints the link (`lazysecrets get $(…)`), `ctrl-o` opens it in -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 +lazysecrets, `ctrl-y` copies the value, saying so in the header, and +`ctrl-x` copies it and closes fzf (`pbcopy` on macOS; `wl-copy` or `xclip` +on Linux). A value copied this way isn't cleared from the clipboard after `values.clipboardClear`, as one copied in lazysecrets is. `--account` makes `open` and `get` use the account it was listed through,