-
Notifications
You must be signed in to change notification settings - Fork 1
Description
Is your feature request related to a problem? Please describe.
Currently, Weftspace can only parse the nodes from a file, meaning that it is ill-suited to making adjustments to manually produced files because it won't respect pre-existing formatting or comments.
Describe the solution you'd like
Add an option to parse files in "lines" consisting of nodes and trailing whitespace/comments. Store the lines in an ArrayList or equivalent, as well as adding the nodes to a node tree. Then, when any nodes are added, modified, or removed, track the changes in the list.
This would also ideally include a way to modify files without having to entirely overwrite them.
Describe alternatives you've considered
Maybe finding some way to make the lines only part of the list instead of having a tree, and then have a corresponding input?
Has anyone else had a similar idea?
Came up during a discussion with VK on Discord... seems to be sort of similar in end result to what Quyykk did with the plugin editor? No related issues here.
Additional context
N/A