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

Allow to change keybindings #514

Closed
hadronized opened this issue Sep 2, 2020 · 5 comments
Closed

Allow to change keybindings #514

hadronized opened this issue Sep 2, 2020 · 5 comments

Comments

@hadronized
Copy link

Is your feature request related to a problem? Please describe.

I’d like to be able to create my own keybindings. I had a look at where you define them, and tried to put them in my ftplugin/clap.vim file, but it doesn’t work (I have a non-us keyboard layout, so the default keybindings are pretty pointless).

Describe the solution you'd like
I would like to be able to remap keys via either a dictionary, or a mechanism allowing me to use ftplugin (like a mode-like mechanism).

Describe alternatives you've considered
Basically that is currently driving me off the plugin, so I’m currently using fzf.

@issue-label-bot
Copy link

Issue-Label Bot is automatically applying the label feature_request to this issue, with a confidence of 0.97. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

@liuchengxu
Copy link
Owner

liuchengxu commented Sep 2, 2020

This should work if you are using neovim:

autocmd FileType clap_input xxx

See #66 (comment), also #116 (comment). If you are using vim, it's very inconveinent for change the keybindgins for now, still haven't come up with a satisfying solution.

@hadronized
Copy link
Author

I’m using neovim, so I’ll try that! Thanks!

@hadronized
Copy link
Author

Works as a charm, thanks a lot! That should be in the doc, it’s very practical! 😊

@liuchengxu
Copy link
Owner

Thanks for the remainder, always forgot to add it in the doc :).

liuchengxu added a commit that referenced this issue Sep 3, 2020
* New shortcut for +no-cache option

* Update CHANGELOG.md

* Add doc about changing the default keybindings

Ref #514
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

2 participants