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
521 stars 38 forks source link

Inserting block contents into current note for further editing #30

Open argenos opened 3 years ago

argenos commented 3 years ago

Use case

Creating a new note (note B) and wanting to reference expand upon an idea in another note (note A). While typing in note B, I can use [[^^ to search for a block and insert it, but I would often want to rephrase or expand on what I wrote before, while keeping the original block intact and keeping track of where the idea came from.

Solution

After having inserted a block, using a command to insert its text into the note. That text can either be

[^1]: [[adams1979 - Green Annotations (2020-11-16)#^391655| The  Hitchhiker's  Guide  to  the  Galaxy  has  a  few  things  to  say  on  the subject  of  towels]]

brimwats1 commented 3 years ago

This would be so helpful and useful!

eleanorkonik commented 3 years ago

This would be awesome!

GitMurf commented 3 years ago

Love this idea. Also as another similar idea/request I have made in Discord:

Is there any way to create a block ref from any sort of click/drag activity of a line? If not would be cool if:

1) Can right-click (context menu) any line and have an option to create block ref by adding a ^block-ref-id to the end of that line and then copy to clipboard the ![[Page-Name#^Block-ref-id]] to be pasted somewhere else.

2) Select a line of text and be able to click n drag the selection (like you already can) but then if you hold ctrl or shift or alt or some key combo, it turns that line into a block ref by adding the ^123445 id on the end and then wherever you drag it to will create the ![[Page-Name#^Block-ref-id]].

3) similar to how in search you can click n drag a result to create the page link wherever you drag it to, if you click n drag the result somewhere, it should create a block ref for you and insert into wherever you dragged it in the ![[Page-Name#^Block-ref-id]] format. If you click n drag the page itself, then it can keep the same functionality with creating page link. But if you click n drag one of the actual results of the search, then creates block ref.