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

feat: delimit tangle code blocks with file content #1014

Merged
merged 2 commits into from
Aug 7, 2023

Conversation

jonathf
Copy link
Contributor

@jonathf jonathf commented Aug 6, 2023

Same as with heading, but uses the entire Neorg file as a delimiter. In other words, the output file is identical as the source, but "inverted" in that blocks are the content and the rest of the document are comments.

Code is configure to work as expected with mulitple targets.

For estethical reason I chose to keep empty lines empty.

@vhyrro
Copy link
Member

vhyrro commented Aug 7, 2023

This is a pretty fire feature! I like it a lot. Could you switch the name of filecontent to file-content instead to keep the naming scheme consistent across Neorg? I would do it myself but I probably messed something up with git because I can't push to this PR lol.

@jonathf
Copy link
Contributor Author

jonathf commented Aug 7, 2023

Glad you like the feature. It is a privilege to be part of the process of maturing the literal programming features in neorg.

Renaming complete.

@vhyrro
Copy link
Member

vhyrro commented Aug 7, 2023

Thank you! Tangling is a feature I haven't had time to extend so I'm really happy someone else is taking the wheel :D

@vhyrro vhyrro changed the title feat: Delimit tangle code blocks with file content feat: delimit tangle code blocks with file content Aug 7, 2023
@vhyrro vhyrro merged commit 1809236 into nvim-neorg:main Aug 7, 2023
1 of 2 checks passed
benlubas pushed a commit to benlubas/neorg that referenced this pull request Jan 11, 2024
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.

None yet

2 participants