add macro command - #399
Merged
Merged
Conversation
asottile
reviewed
Aug 10, 2026
Owner
There was a problem hiding this comment.
looks pretty good -- nice and simple and works well -- a few things though:
- this should probably get its own dedicated function in
file.pywith an appropriate@edit_actionetc. decorators (right now if you undo a macro it saysundo: uncut selection) - it should probably post a status after the macro itself is applied -- just something simple
asottile
reviewed
Aug 25, 2026
Contributor
Author
|
I believe all of these have been addressed! Please let me know if there is anything else! :) |
asottile
force-pushed
the
add-macro-command
branch
from
September 1, 2026 16:43
5e4597e to
090e57b
Compare
asottile
enabled auto-merge
September 1, 2026 16:43
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Adds a new
<esc>command:m <macro_name>which inserts the text in the file~/.config/babi/macros/<macro_name>if it exists.A couple of notes:
:mfor "macro" but entitled the config directory "snippets". At least for me, I thought it made more sense to use "macros" instead of "snippets" (to be consistent with the naming of the command). If you feel otherwise it's obviously fine to go back to calling these snippets, but wanted to give my two cents.resolves #360