Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auxiliar -end headers to setting the end of a level and avoid problematic refactors #106

Open
AMGMNPLK opened this issue Oct 13, 2023 · 0 comments

Comments

@AMGMNPLK
Copy link

AMGMNPLK commented Oct 13, 2023

PROBLEM

I use refactor by levels of headers. However, I want to know how to refactor the content of some headers but not going further from their section. We don't have syntax to tell to Note-Refactor how to do it. Let me explain. You have this text:

# Header A

## Header AA
Text of header A

## Header AB

Text of header AB

Text of header A that should be outside of Header AB when refactor.

## Header AC

Text of header AC

Notice the text Text of header A that should be outside of Header AB when refactor.. How can I get that the plugin refactor doesn't add it to Header AB but remains in Header A?

SOLUTION

I think that this plugin should have a syntax to assign the end of the previous level. I was thinking on something like:

# Header A

## Header AA
Text of header A

## Header AB

Text of header AB

## -end

Text of header A that should be outside of Header AB when refactor.

## Header AC

Text of header AC

Notice the ## -end. The plugin should skip the text from that to the next header. And, when doing the refactor, ideally it should delete those # -end auxiliar headers.

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

No branches or pull requests

1 participant