note-refactor-obsidian icon indicating copy to clipboard operation
note-refactor-obsidian copied to clipboard

Split notes does not take everything

Open jaded0 opened this issue 4 years ago • 3 comments

I split a note by H1 headers. It left anything within each section (headed by an H1 header) after any sublist. For example:

title of my thing

  • cool

  • cooler

    • start of a sublist
    • this sublist is not included in the new note and is left on the old one, unsplit.

I had a huge document that I had been working on for hours and I thought I lost it in this process. Consider making the plugin save a backup by default.

jaded0 avatar Oct 29 '21 02:10 jaded0

I am also working on refactoring several monolithic documents (glossar-ish kind of docs) into individual files per entry, and this plugin in a massive time saver! 🙏🏻 I could quickly search/replace my non-markdown "header" format into H1's (#) to prep the document for the split into proper, separate Markdown files.

As @jaded0 reported: everything up to the first list was left over in the big-file.

So while nothing was lost, and creating the files is already a huge improvement in my refactoring workflow, I had to manually copy the remains from the big file each newly created file. Fortunately the auto-generated links left behind in place of the cutout parts helped to quickly open the new file and copy-paste the forgotten parts.

I'd hope for this feature to extract and copy from

  • H1 to next H1
  • H2 to next H2 or H1, whichever level comes first
  • H3 to next H3 or next H2 or next H1, whichever level comes first

Thank you!

WebMechanic avatar Nov 20 '21 13:11 WebMechanic

The split also stops before a blockquote >, numeric lists and other list-itemish characters.

The documents I am refactoring now are not proper Markdown as I started them long before I heard of this format and they were already too large to do a manual update.

I often have link "lists" at the end of each entry that I (back then) indented using >. Also for the looks of it in my text editor, I sometimes used "•", "—" and other dots, dashes and symbols instead of the regular Markdown hyphen/minus - or * as a list item character.

These list items usually have a blank in front of the symbol:

 > https://example.com

 • Baccalà

They were all left behind after the split.

WebMechanic avatar Nov 20 '21 13:11 WebMechanic