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

Adding configurable shortcuts to avoid "View/Type individual entries" #139

Open
Purtl opened this issue Oct 16, 2022 · 6 comments
Open

Adding configurable shortcuts to avoid "View/Type individual entries" #139

Purtl opened this issue Oct 16, 2022 · 6 comments

Comments

@Purtl
Copy link

Purtl commented Oct 16, 2022

Heyho,
what do you think about the following "scenario":

  • opening keepmenu
  • highlighting the intended entry
  • using a some kind to only type the password/Note/name/whatever of the chosen entry.

with an entry in the config like:
[shortcuts]
password:
title:
username:
url:
...

At the moment that is (correct me if i'm wrong) only possible by:

  • opening keepmenu
  • highlighting "View/Type individual entries"
  • enter
  • highgliht intended entry
  • enter
  • highlight field
  • enter
@firecat53
Copy link
Owner

That already exists 😄 Look at the Auto Type sequences in the docs. If you always only want to type the password without the username or hitting enter and nothing else, edit the entry, select Autotype and enter {PASSWORD}.

Does that match what you're looking for?

@vaygr
Copy link
Contributor

vaygr commented Oct 16, 2022

I guess the biggest part of the request here is shortcuts, so with different shortcuts you could have different autotype sequences.

@firecat53
Copy link
Owner

I think I see what you're saying. I'll have to think about if that's something I want to pursue.

In the meantime, you could possibly work around that using the -a flag to keepmenu. For example, you can have one keyboard shortcut that calls keepmenu like normal, and a second shortcut that calls keepmenu -a '{TOTP}' to only type the TOTP values.

@vaygr
Copy link
Contributor

vaygr commented Oct 16, 2022

Yeah, exactly. TOTP is a special case though. If I have 800 entries and TOTP ones are only 50 of them, it makes little sense to output all for filtering using dmenu. That's why I came up with #132.

@firecat53
Copy link
Owner

So you'd basically have to create "temporary" duplicate entries with the different autotype values when generating the list to display to dmenu. I'm thinking that could work similar to how I have done the multiple URLs feature. That way the configuration file stays simple and only the autotype entries would need to be edited.

@vaygr
Copy link
Contributor

vaygr commented Oct 16, 2022

Precisely. So keepmenu has to be smart to see if there's only {TOTP} in autotype, generate the list only of those entries that contain it.

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