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

<C-h> and <C-u> support #54

Open
mawkler opened this issue Sep 22, 2023 · 6 comments
Open

<C-h> and <C-u> support #54

mawkler opened this issue Sep 22, 2023 · 6 comments
Labels
enhancement New feature or request requires functionality Requires implementing functionality

Comments

@mawkler
Copy link

mawkler commented Sep 22, 2023

Hi! Thanks for working on an awesome plugin! Two native insert mode mappings that I think would make sense to suport out of the box are <C-h> and <C-u>.

<C-h> in insert mode is synonymous with backspace, and <c-u> basically deletes everything you just typed in insert mode.

Currently, when typing ( and then pressing <C-u>, the created pair ) is left behind. I think the right pair should get deleted as well.

@altermo
Copy link
Owner

altermo commented Sep 23, 2023

Yeah, I can add <C-u> though it will take time as the API that would make this feature easily implemented is on the TODO stack.
I don't know about <C-h>: it's easy to add it to the config.
I will also be considering adding support for <C-w>.

@altermo altermo added the requires functionality Requires implementing functionality label Sep 23, 2023
@mawkler
Copy link
Author

mawkler commented Sep 23, 2023

Ok! Perhaps the default config value for bs.map and bs.cmap should be changed to { '<BS>', '<C-h>' }? To me it makes sense to comply with Neovim's default mappings out of the box. I can create a PR for it if you agree with me 🙂

@altermo
Copy link
Owner

altermo commented Sep 23, 2023

You can do that.

@altermo altermo added the enhancement New feature or request label Oct 6, 2023
@Bekaboo
Copy link

Bekaboo commented Nov 11, 2023

Any updates on this? Thanks!

@altermo
Copy link
Owner

altermo commented Nov 11, 2023

I'm planning to add it to version 0.7

Version 0.7 will probably come out in a few months, as there's still a lot of work to be done

@Bekaboo
Copy link

Bekaboo commented Nov 11, 2023

Good to know that! Thanks for your amazing work, please keep going.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request requires functionality Requires implementing functionality
Projects
None yet
Development

No branches or pull requests

3 participants