Skip to content

Feat/issue 47 directive options#89

Open
veggiemonk wants to merge 6 commits intocampoy:masterfrom
veggiemonk:feat/issue-47-directive-options
Open

Feat/issue 47 directive options#89
veggiemonk wants to merge 6 commits intocampoy:masterfrom
veggiemonk:feat/issue-47-directive-options

Conversation

@veggiemonk
Copy link
Copy Markdown

@veggiemonk veggiemonk commented Apr 12, 2026

Hi and thank you for this project. I was just looking for something like this.

I saw the only issue open so I decided to give it a go with the help of LLM.
I'm not too sure about the names of the new functions like dedent.
I thought of trim-line but I don't see a use case besides removing indentation.

Feature Syntax
Exclude matched lines !/regexp/
Exclude whole line !/regexp/ (always line-level)
Strip indentation dedent
Trim trailing blanks trim
Text substitution s/old/new/

In any case, these features make the readability a bit more difficult.

Curious to hear your feedback or if this is even what you want.

fixes #47

veggiemonk and others added 6 commits April 12, 2026 21:41
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Rewrite parseCommand() from a fixed switch on arg count to a flexible
consumption loop that handles exclude (!) prefixes on regexps, dedent/trim
flags, and s/old/new/ substitution tokens. Includes comprehensive tests
for all new syntax and error cases.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.

features needed for Go snippet insertion

1 participant