Skip to content

Insert/ Append/ Prepend a string to a File with a specific Name (at a specific Line) #612

Answered by AB1908
Excali6ur asked this question in Help
Discussion options

You must be logged in to vote

You can find the file to append to with tp.file.find_tfile() and then actually append to it with await app.vault.append(TFile, "string contents").

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Excali6ur
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants