yardnsm / tmux-1password

:key: Access your 1Password login items within tmux!
MIT License
256 stars 24 forks source link

Items not displaying when containing multiple/no websites #24

Closed jansendotsh closed 3 years ago

jansendotsh commented 3 years ago

It seems that entries only display when they contain a single website. Any entries without a website or multiple websites doesn't show. I can temporarily working around it by splitting out entries but 1Password will gripe about reused passwords and I'd ideally like to converge entries that should share.

yardnsm commented 3 years ago

25 should fix this, but for login items you should still have at least 1 website.

If you still want all of the items to show up regardless of an associated website, you can use the following JQ filter:

set -g @1password-items-jq-filter '
  .[] \
  | [select((.templateUuid == \"001\" and) or (.templateUuid == \"005\"))?] \
  | map([ .overview.title, .uuid ] \
  | join(\",\")) \
  | .[] \
'