Merged
Conversation
- Introduce {code} output token
- Introduce output_formats alternative to formats as mechanism for
specifying complete output format
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
zhisme
requested changes
Dec 8, 2025
Added automatically-derived desc to the keymaps
Contributor
Author
|
@zhisme OK, I think I got everything you raised if you wouldn't mind giving it another look. I also snuck in another change, which is to add automatically-derived descriptions to the keymaps so that things like |
zhisme
requested changes
Dec 12, 2025
Owner
zhisme
left a comment
There was a problem hiding this comment.
Agreed on which-key.nvim, that would be cool!
Regarding the code one small bug I spotted, once solved we are ready to merge
- output_formats must contain {copied_text} to include the copied code
- formats cannot contain {copied_text} (auto-prepended, would cause
duplication)
zhisme
approved these changes
Jan 29, 2026
Owner
|
@t-dub Thank you very much for this feature, this is very useful 🎉 |
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.
Enhancement Adding "Full Format" Option
READMEdelta should clearly explain the new feature.This addresses a desire I had which was to be able to copy code formatted as markdown in addition to a reference to the "remote" version. My use case is for sharing code with context via Slack to coworkers. In order to achieve that, I needed to be able to have a bit more control over the output.
This introduces a new
output_formatsformat which takes an optional{code}token. That allows for both the case I described above but also for omitting the code altogether to quickly be able to pull a reference to the remote URL line. These are definitely secondary to the original intent here, but once I started using this plugin, I realized this was within reach.This is intended to be a fully backward-compatible, non-breaking change. I'm happy to rework it in such a way that is "cleaner" but breaking if desired, but for an unsolicited PR, this seemed the best way to start.