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

Attach a,m,r binding in insert mode while in submit review buffer #778

Open
wd60622 opened this issue Jan 3, 2025 · 2 comments
Open

Attach a,m,r binding in insert mode while in submit review buffer #778

wd60622 opened this issue Jan 3, 2025 · 2 comments
Labels

Comments

@wd60622
Copy link
Collaborator

wd60622 commented Jan 3, 2025

While in the submit review buffer, I would like to have <C-a>, <C-m>, and <C-r> bindings to work in insert mode as well.

Maybe you know a way around this @GuillaumeLagrange?

@wd60622 wd60622 added the Reviews label Jan 3, 2025
@wd60622 wd60622 changed the title Attach i,m,c binding in insert mode while in review buffer Attach a,m,r binding in insert mode while in review buffer Jan 3, 2025
@GuillaumeLagrange GuillaumeLagrange changed the title Attach a,m,r binding in insert mode while in review buffer Attach a,m,r binding in insert mode while in submit review buffer Jan 3, 2025
@GuillaumeLagrange
Copy link
Collaborator

That's definitely doable, this issue should mostly be focused on how do we integrate the mode in our mappings.

My suggestion would be to add an optional property mode for mappings in our config, which can be

nil | string | string[] (or whatever a string table is in lua cats), and then if nil we default to n only, else we apply the mapping to all modes

These should be changeable in the confg default mappings, as well as overridden by user config.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants