beaussan / update-time-on-edit-obsidian

MIT License
165 stars 15 forks source link

Ruins the whole frontmatter if it has strings that have colons ":" in them #54

Closed guideblade closed 1 year ago

guideblade commented 1 year ago

Upon the update it ruins YAML keys that are strings that contain colons. title: "Avatar: The Last Airbender" becomes title: "Avatar. And, of course, it throws YAML exception since there is no quotation marks at the end. Ruins the whole YAML. Also the new version 2.0.2 is crazy. It updates the value each millisecond. Had to revert.

beaussan commented 1 year ago

Upon the update it ruins YAML keys that are strings that contain colons. title: "Avatar: The Last Airbender" becomes title: "Avatar. And, of course, it throws YAML exception since there is no quotation marks at the end. Ruins the whole YAML.

What version of the plugin are you running? I can't reproduce it in 2.x

Also the new version 2.0.2 is crazy. It updates the value each millisecond.

Currently looking into it to improve the system

beaussan commented 1 year ago

Also the new version 2.0.2 is crazy. It updates the value each millisecond.

Fixed in 2.1.0.

guideblade commented 1 year ago

Upon the update it ruins YAML keys that are strings that contain colons. title: "Avatar: The Last Airbender" becomes title: "Avatar. And, of course, it throws YAML exception since there is no quotation marks at the end. Ruins the whole YAML.

What version of the plugin are you running? I can't reproduce it in 2.x

Also the new version 2.0.2 is crazy. It updates the value each millisecond.

Currently looking into it to improve the system

I updated to 2.2.0, it still does it. But now it also makes other unsolicited changes to the frontmatter like making empty keys contain "null", or changing all indentation to two spaces (I use one). Also, now when I add a new key, it updates the note, my cursor gets taken to the update key, which becomes peupdate key (because I was typing "type" - it didn't let me finish), and it creates a new update key down below. Reverted back to 1.1.2 again, imho the best version, bug free. I can live without colons in string for now.