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

Add [Home-Key] shortcut to jump into ~ #68

Closed
dns2utf8 opened this issue Sep 7, 2019 · 4 comments
Closed

Add [Home-Key] shortcut to jump into ~ #68

dns2utf8 opened this issue Sep 7, 2019 · 4 comments

Comments

@dns2utf8
Copy link

dns2utf8 commented Sep 7, 2019

Did a discussion occur before?
No

Is your feature request related to a problem? Please describe.
I am usually deeply in a nested structure and I can't find stuff on the disk.

Describe the solution you'd like
I was searching for a button eg. the Home-Key to jump into my users home directory to start the search there.

Describe alternatives you've considered
I read about shortcuts, but the docs are not good enough for a 5min fix.

Additional context
I like this project so far, please add more docs and explain better why the service is needed.

@Canop
Copy link
Owner

Canop commented Sep 7, 2019

Problem is the Home key could be used for other things:

  1. going top of the list, as in some other list based applications
  2. going to the beginning of the input, which is always focused
  3. going to ~

I've chosen 2.

I'm open to suggestions regarding a shortcut to go to ~.

@dns2utf8
Copy link
Author

dns2utf8 commented Sep 9, 2019

What if there was a shortcut on the ~-key?
Or when one enters :~ it could jump to to?

@dns2utf8
Copy link
Author

dns2utf8 commented Sep 9, 2019

Or Alt + Home?

@Canop
Copy link
Owner

Canop commented Sep 13, 2019

OK, here's what I'll do (should be done by tomorrow):

  1. define a few more internal verbs, among them :focus_root and :focus_user_home
  2. allow configuration to map trigger keys to verbs

It means you'll be able to add this to config.toml:

[[verbs]]
invocation = "root"
key = "F9"
execution = ":focus_root"

[[verbs]]
invocation = "home"
key = "ctrl-H"
execution = ":focus_user_home"

In this example, ctrl-H sends to your home, and F9 sends to /.

I don't know if there will also be a default mapping for those actions as none seems obvious.

@Canop Canop closed this as completed in 73798a3 Sep 13, 2019
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

2 participants