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

fix: allow more than 2 keybindings per command #300

Merged
merged 1 commit into from
Jun 7, 2023

Conversation

gouegd
Copy link
Contributor

@gouegd gouegd commented Jun 7, 2023

Keybindings are currently limited to 2 per command because replace only replaces the first match when the 1st arg is a string. This seems unintentional.
replaceAll is not available in the ES version targeted, but we can use a regexp as the 1st argument to replace all occurrences.

This is useful when tinkering with the code to add new keybindings, such as those from Helix "select" mode.

@71
Copy link
Owner

71 commented Jun 7, 2023

Thanks!

@71 71 merged commit dd69f4b into 71:master Jun 7, 2023
@gouegd gouegd deleted the allow-more-keybindings branch June 7, 2023 21:31
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

Successfully merging this pull request may close these issues.

2 participants