Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

list items doesn't appear after fetching #1

Closed
strawoo opened this issue Sep 13, 2018 · 12 comments
Closed

list items doesn't appear after fetching #1

strawoo opened this issue Sep 13, 2018 · 12 comments

Comments

@strawoo
Copy link

strawoo commented Sep 13, 2018

Hi there. I set up this plugin. Although signin 1password account, list items doesn't appear.

@yardnsm
Copy link
Owner

yardnsm commented Oct 1, 2018

Sorry for the late response, for some reason I did not receive notifications for this repo.

When you're initiating the plugin for the second time (after you've signed in), does the plugin asks you for your master password again? Also, are you getting an error message in the status bar? Make sure to have all the requirements installed and available in $PATH.

Try playing with 1Password CLI, to make sure its working properly on your machine. For example:

$ eval $(op signin my)
$ op list items

If you're getting errors or having issues, it could be some issue with the 1Password CLI itself.

@a-phe-lei-a
Copy link

I have same problem. I install all requirements 1Password CLI, fzf and jq.
If I press C-u, 1password ask my password but after I don't have any items.

screenshot 2018-12-24 at 20 48 50

If I try to list items with op list items, I see my items.

@bmdepesa
Copy link

bmdepesa commented Feb 4, 2019

@The33Coder I ran into this problem and solved it by editing the JQ filter in scripts/main.sh.

Where you see:

  local -r JQ_FILTER="
    .[]
    | [select(.overview.URLs | map(select(.u == \"sudolikeaboss://local\")) | length == 1)?]
    | map([ .overview.title, .uuid ]
    | join(\",\"))
    | .[]
  "

Change sudolikeaboss://local\ to https://my.1password.com, if you're using a personal account. After this I was able to retrieve my items.

Please see @yardnsm comments below ^ this solution is non-functional.

@a-phe-lei-a
Copy link

a-phe-lei-a commented Feb 7, 2019

@bmdepesa I change it sudolikeaboss://local\ with https://my.1password.com\ and is little better !

screenshot 2019-02-07 at 21 49 22

Inside 1password I have saved the url as : ssh://user@url, user@url and url only.

@bmdepesa
Copy link

bmdepesa commented Feb 7, 2019

@The33Coder I noticed after posting this that I do not see all items either. My output is the same as yours. Fetching my master credentials works fine. I suspect there was an update to the json schema, but haven't yet delved in to resolve it. If I do, I will post a note here.

@yardnsm
Copy link
Owner

yardnsm commented Feb 8, 2019

Well, as I wanted to avoid bloating the list with all of the login items, I've used the same technique as the sudolikeaboss project: only items with URLs of sudolikeaboss://local will be shown. Refer to the README for more details.

However, I think it would be nice to have an option to disable this behaviour. This plugin support setting a vault to use, so I guess you could still avoid bloating the entire list. What do you think?

@bmdepesa
Copy link

bmdepesa commented Feb 8, 2019

@yardnsm Wow thanks. I can't believe I skipped over the relevant section in the readme. I see now why the 1Password credential was the only one displaying.

+1 to having a flag to disable the default behavior, I agree choosing a specific vault would be the best. I plan on using this to store credentials for different cloud providers, so being able to separate those without having to add a website tag would work best for me.

@The33Coder sorry for the misinformation -- I'm going to revert my changes :)

@a-phe-lei-a
Copy link

@yardnsm Ok, but that is supposed to install sudolikeboss and in Requirements, sudolikeboss is not mentioned and in the readme is writing "maintain compatibility with sudolikeaboss"

@yardnsm
Copy link
Owner

yardnsm commented Jul 20, 2019

@The33Coder the requirements does not mention sudolikeaboss because it's not needed - the URL thingy is being used in order to list only specific items that you explicitly chosen to, and in order to maintain compatibility with sudolikeaboss. The latter means that if you happen to have sudolikeaboss, it'll still be working as expected and if you've migrated from sudolikeaboss you'll still have the expected behaviour.

@jaepetto
Copy link

Hi,

I tried the same fix as @bmdepesa but I still get an empty list in the pane:
image

What could be a permanent fix?

@delucca
Copy link

delucca commented Jan 20, 2020

I've the same issue here too. No items are being shown

@yardnsm
Copy link
Owner

yardnsm commented Feb 24, 2020

Making this plugin compatible with sudolikeaboss made it more complicated to setup. As a result, the compatibility with it was removed and all of the items should be fetched by default (as of #18). The issue should be gone :)

If any of you would like to keep the compatibility with sudolikeaboss, refer to the Filtering by custom url section.

@yardnsm yardnsm closed this as completed Feb 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
6 participants