keepass-mode icon indicating copy to clipboard operation
keepass-mode copied to clipboard

Make database searchable

Open yurumi opened this issue 4 years ago • 6 comments

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

yurumi avatar Sep 30 '20 07:09 yurumi

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.

Gleek avatar Dec 21 '20 06:12 Gleek

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...

yurumi avatar Dec 21 '20 11:12 yurumi

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.

ifosch avatar Jan 09 '21 14:01 ifosch

I agree with need this feature. Full text search is the typical way even in GUI UX.

Navigating group tree is cumbersome.

ykgoon avatar Apr 30 '21 02:04 ykgoon

@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.

bhankas avatar Aug 01 '21 01:08 bhankas

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.

Gleek avatar Jun 10 '22 08:06 Gleek