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

Keybindings should provide Action to command bar #144

Merged
merged 1 commit into from
Aug 10, 2024
Merged

Conversation

ulyssa
Copy link
Owner

@ulyssa ulyssa commented Aug 8, 2024

In addition to jumping through a buffer to matching regular expressions, Kakoune can perform other actions that all use the same search regex history and interact with the same register (see #62 and #63 for example).

In order to support these, focusing the command bar should specify the action to take when submitting its contents. I've replaced Register::LastSearch ("/) and Register::LastCommand (":) with a Register::LastCommand(CommandType) variant. History for their contents has also moved into the RegisterStore, and is done in a way that should make #69, #130, and any other new command bar types very straightforward to implement.

@ulyssa ulyssa added the kakoune Issues related to the Kakoune keybindings label Aug 8, 2024
@ulyssa ulyssa force-pushed the custom-cmdbar-actions branch 2 times, most recently from 6b59bc3 to 0ac20d4 Compare August 8, 2024 06:16
@ulyssa ulyssa merged commit 7d8a6c3 into main Aug 10, 2024
4 checks passed
@ulyssa ulyssa deleted the custom-cmdbar-actions branch August 10, 2024 03:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kakoune Issues related to the Kakoune keybindings
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant