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

Support Multiple Databases #15

Open
kalaschnik opened this issue Jul 16, 2021 · 5 comments
Open

Support Multiple Databases #15

kalaschnik opened this issue Jul 16, 2021 · 5 comments

Comments

@kalaschnik
Copy link

kalaschnik commented Jul 16, 2021

Would be amazing if multiple databases could be supported. Maybe a future enhancement?

@Angoll
Copy link
Owner

Angoll commented Jul 17, 2021

Hello @kalaschnik

That could be something quite useful, but due to the loading performance reported, mostly due to the Alfred JSON and keepassx limitations it would be increasing the loading time.

I'm thinking if to try to refactor the code using some other language implementing some kind of cache of the keys for the database to speed up the listing and look up. But that can raise some security concerns so I want to think about it and also I will have to look for time to do it.

Thanks for reporting improvements :)

@kalaschnik
Copy link
Author

You may work around performance issues by introducing a sub command. For example kpass db1 for querying db1, etc. Thanks for the response.

@Angoll
Copy link
Owner

Angoll commented Oct 2, 2021

You could Edit the workflow and copy & paste the kpass script filter

In the kpass Script Filter edit the:

  • keywords with something like: kpass_db1
  • At the top of the script add the following line: export database="db1"

In the bin/bash Script Filter add:

  • At the top of the script add the following line: export database="db1"

This will make a command for the specific database, I think this will be a good workarround for your functionality

@kalaschnik
Copy link
Author

kalaschnik commented Oct 4, 2021

That would not survive an update though?

@georgpfolz
Copy link

I tried to tweak it by duplicating (and renaming) the workflow, editing the plist file manually and manually adding a Keychain item.

But for some reason it briefly displays "Please loading database..." but with no results. Everything seems to work fine, but no results are shown. The first workflow still works fine and as expected.

If we could get it to work like this, I guess that would be a nice option until we may get the multiple database support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants