bin: Use fzf in passget
This commit is contained in:
parent
39c0f76a2a
commit
bf41c2e9f0
1 changed files with 3 additions and 8 deletions
11
bin/passget
11
bin/passget
|
|
@ -25,14 +25,9 @@ elif [ "${#matches[@]}" -eq 1 ]; then
|
|||
uuid="$(echo "${item}" | jq -r '.uuid')"
|
||||
else
|
||||
uuid="$(echo "${matches[@]}" \
|
||||
| jq -r '"\n\(.uuid)\n\(.url)"' \
|
||||
| zenity \
|
||||
--list --radiolist \
|
||||
--title 'passget' \
|
||||
--text 'Choose a match' \
|
||||
--column ' ' \
|
||||
--column 'UUID' \
|
||||
--column 'URL')"
|
||||
| jq -r '"\(.uuid) \(.url)"' \
|
||||
| fzf \
|
||||
| cut -d ' ' -f 1)"
|
||||
fi
|
||||
|
||||
query_username='.details.fields[] | select(.name == "username") | .value'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue