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

Helm evil scroll down / up #7123

Closed
tobimensch opened this issue Sep 15, 2016 · 9 comments
Closed

Helm evil scroll down / up #7123

tobimensch opened this issue Sep 15, 2016 · 9 comments

Comments

@tobimensch
Copy link

Hello,

at first when using helm I thought you couldn't use evil/vim navigation keys at all (since it would
conflict with entering search terms),
then I discovered that you can use ctrl+j and ctrl+k.

But apparently evil style page down with ctrl+d and ctrl+u doesn't work. So I have to use the page down/page up keys, and I don't really want to since I've come to expect consistent behaviour.

@TheBB
Copy link
Contributor

TheBB commented Sep 15, 2016

(define-key helm-map (kbd "C-d") 'helm-next-page)
(define-key helm-map (kbd "C-u") 'helm-previous-page)

@tobimensch
Copy link
Author

Nice. Thank you! Don't you think this ought to be included in spacemacs's evil mode?

@tobimensch
Copy link
Author

It's not working in all helm buffers correctly. For example in the M-x buffer Ctrl+u seems to be for something else (while ctrl+d works).
Meanwhile in helm-imenu your solution works.

@TheBB
Copy link
Contributor

TheBB commented Sep 15, 2016

Yes of course, you have to unbind the existing keys that shadow these keys. That's one reason why I wouldn't want this default, to be honest. Another is that it's far more efficient to find what you want in helm by simply typing its name rather than scrolling up and down.

@tobimensch
Copy link
Author

tobimensch commented Sep 15, 2016

@TheBB:

Unless you don't know yet what exactly you're searching for and hence want to just scroll through a list of (functions in helm-imenu) or whatever else to get an overview or to find something you don't quite remember the name of anymore.

@sooheon
Copy link

sooheon commented Sep 17, 2016

If you use ivy over helm, there is a far more vimmy way to do this: https://github.com/abo-abo/hydra/wiki/hydra-ivy-replacement

This gives you d/u/g/G movement inside a hydra for ivy. The hydra is like an equivalent of the "normal" mode or state, so you don't need to Ctrl prefix keys like C-j C-u, which causes conflicts. You simply press C-o once in ivy, then single presses of u,d,G, etc will work. If you wish to type again to narrow your searches, you can just press i for insert.

@syl20bnr
Copy link
Owner

There is also a transient state for Helm on C-SPC or M-SPC.

@sixshotx
Copy link

sixshotx commented Sep 26, 2016

Is it possible to rebind ESC to helm transient state trigger in a helm buffer (e.g. helm-mini)?

@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid!

@github-actions github-actions bot added the stale marked as a stale issue/pr (usually by a bot) label Feb 29, 2020
@lebensterben lebensterben removed the stale marked as a stale issue/pr (usually by a bot) label Feb 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants