JimmyCushnie / JECS

Jimmy's Epic Config System
Do What The F*ck You Want To Public License
156 stars 16 forks source link

Try to preserve column of comment start #24

Open JimmyCushnie opened 4 years ago

JimmyCushnie commented 4 years ago

Suppose we have the following file:

key     : someValue                 # comment
key2    : shortValue                # another comment lmao

If we edit the value of key2 to be longer, the file will now look like this:

key     : someValue                 # comment
key2    : veryVeryLongValue                # another comment lmao

This is obviously not ideal. When the user creates pretty file formatting, SUCC should do its best to preserve that prettiness when the data changes.