Skip to content

Add :indent template placeholders - #21

Draft
k33pn3xtlvl wants to merge 1 commit into
CompassSecurity:masterfrom
k33pn3xtlvl:master
Draft

Add :indent template placeholders#21
k33pn3xtlvl wants to merge 1 commit into
CompassSecurity:masterfrom
k33pn3xtlvl:master

Conversation

@k33pn3xtlvl

Copy link
Copy Markdown

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:

Request:

	GET /complete/search?client=... HTTP/2
	Host: www.google.com
  ...

Response:

	HTTP/2 200 OK
	Date: Wed, 09 Sep 2026 13:42:44 GMT
	Pragma: no-cache
  ...

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.

{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.
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.

1 participant