keepass-mode
keepass-mode copied to clipboard
Make database searchable
Hi,
first of all, thanks for your efforts! I think usability would be greatly improved if one could search the database to find a specific entry. As my brain is not compatible with (e)lisp I'm afraid I cannot contribute though...
Cheers, Thomas
I've a small snippet in my config that helps me in doing this using ivy
.
See if it works for you as well.
Here's a permalink. (For the latest state refer to the master branch)
It helps you search in all your keys by pressing s
if in keepass-mode. Or pressing C-c s p
from anywhere in emacs, once you have added (setq keepass-password-file "my-file-location.kbdx")
somewhere in your config.
Thanks for sharing - it works like a charm!
Although this covers most use cases, I leave the issue open because it would be nice to have a full text search (also in the notes/username) not just in the keys...
Hi!
Sorry for such delayed response. I've been busy with a lot of things lately. I am looking forward to improve the release process and the testing of this project. However, I think this feature is worth to take a look at.
I am considering to take a deeper look at @Gleek snippet to see if there is anything worth to actually include in the project's code.
I agree with need this feature. Full text search is the typical way even in GUI UX.
Navigating group tree is cumbersome.
@Gleek 's function works very well. Except it requires ivy. Since keepass-cli is usually too fast to notice, we can even have interactive completion like with GUI KeepassXC.
Gleek 's function works very well. Except it requires ivy
@bhankas I've recently started to try out the vertico, consult, embark ecosystem and have ported this to work with consult with embark actions (along with the existing ivy integration) for copying password, username and opening the entry. Maybe you'll find it useful. Here's the link
PS: To use it with ivy doing (setq +keepass-completion 'ivy)
should switch the completion framework.