Add :indent template placeholders - #21
Draft
k33pn3xtlvl wants to merge 1 commit into
Draft
Conversation
{request:indent} / {response:indent} prefix every non-empty line of the
copied message (4 spaces by default, :indent=N for N spaces, or any
literal prefix such as :indent=\t). Non-breakable spaces are honored.
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.
First, thanks for this plugin. It saves me some copy-paste pain, but not all of it, which is what this PR addresses.
For my daily note taking workflow I need indentation before the request and response, like this:
Previously this wasn't possible — or at least I couldn't figure out how. Since I can read Java better than I write it and wanted to stay focused on the current pentesting task, I poked around with an LLM and this PR was born. It
adds a configurable indent applied to each line of the request and response, each toggleable separately.
This now results in the layout mentioned above:
Request:\n\n{request:indent}\n\nResponse:\n\n{response:indent}Please let me know if anything can be improved.