lynchjames / note-refactor-obsidian

Allows for text selections to be copied (refactored) into new notes and notes to be split into other notes.
MIT License
524 stars 38 forks source link

Moving footnotes when refactoring notes #97

Open philou opened 1 year ago

philou commented 1 year ago

General Description

I use footnotes a lot when I take notes. Footnotes often reside at the bottom of the note. When we extract a part of a note to a new note, it is possible that a link to a footnote is extracted while the footnote definition is not.

It would be great to move the referenced footnotes as we refactor the notes.

Example for an extract refactoring

some text, that stays in the original note
...
This is the line I am extracting to a new note[^1]
...
some more text, that also stays in the original note

[^1]: the footnote declaration

The extracted note will look like

This is the line I am extracting to a new note[^1]

It contains a dangling footnote link.

Proposition

I propose that the extracted footnote be:

This is the line I am extracting to a new note[^1]
[^1]: the footnote declaration

Nice to have

The original note could be modified to remove the unused footnotes.

Pull Request

I forked the repo and have started to work on the issue. You can have a look at a draft PR at https://github.com/philou/note-refactor-obsidian/pull/1. It's a proof of concept, just enough to get your feedback about the design and to correct any problem early.

With your advice, I would be glad to continue working on this feature

philou commented 1 year ago

@lynchjames : Hi, did you have the time to check the design in my draft PR? (https://github.com/philou/note-refactor-obsidian/pull/1.)

lynchjames commented 1 year ago

Thanks. I've had a look and left a few comments/questions on the PR.

albertoloscerritos commented 1 month ago

Hi good afternoon. I wanted to ask if this feature was ever implemented, or if there are plans to implement it. Thanks :)