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

[FEATURE] Define target for Persistent Output #389

Open
jedifindtrick opened this issue Dec 5, 2024 · 0 comments
Open

[FEATURE] Define target for Persistent Output #389

jedifindtrick opened this issue Dec 5, 2024 · 0 comments
Labels
features request Request for a new feature.

Comments

@jedifindtrick
Copy link

Is your feature request related to a problem? Please describe.
How persistent output is working right now with outputting it directly below the code block, there must be three empty lines after it to not break/replace anything that comes after.
So if you have multiple code blocks it can quickly get messy if you don't want it to break things.

For example, if I were to run the following:

Before:
image
After:
image

And the same thing is if you run it multiple times but have the "proper" spacing:

Before:
image
Run 1:
image
Run 2:
image
Run 3:
image

Describe the solution you'd like
The way I see it, some possible solutions could be:

  • Have it output to a predefined property in the note (would be nice).
  • Have it output to another code block that contains a specific string (similar to using sed to replace something in a file).
  • Automatically add a certain amount of line breaks to the output as to not break/replace other content in the note.
  • Have it work similarly to the QuickAdd plugin where you can specify specific headers that it should be output to and also if it should append it to the top/bottom of the file/header (simlar to using echo "Text to append" >> file.txt and sed -i '1i Text to prepend' file.txt).

Describe alternatives you've considered
Short of not using persistent output, nothing I've tried has worked (due to what was explained above)

@jedifindtrick jedifindtrick added the features request Request for a new feature. label Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
features request Request for a new feature.
Projects
None yet
Development

No branches or pull requests

1 participant