~nilium/1p

b1b1a37e4ac74f4bc159ef2945b5eb89c84ab6b6 — Noel Cower 5 years ago 8ad73ab master v0.2.1
Use uuid for preview window lookup

This is a bug from rearranging the fzf window to put uuid second but
failing to update the selected field correctly.
1 files changed, 1 insertions(+), 1 deletions(-)

M 1p
M 1p => 1p +1 -1
@@ 173,7 173,7 @@ sel="$(
    op list items --account="$sn" |
      jq --arg sn "$sn" -r '.[] | "\($sn)\t\(.uuid)\t\(.overview.title)"'
  done |
  fzf --preview="op get item --account={1} {3} | jq 'del(.details)'" -d $'\t' "$@"
  fzf --preview="op get item --account={1} {2} | jq 'del(.details)'" -d $'\t' "$@"
)"

sel="$(printf '%s' "$sel" | head -n1)"