Jump to content
  • 1

Highlight content => Create Linked Note


Cangelo

Idea

Posted

I love the new linking of notes and how it works.  Sometimes I have large notes (ie: Monthly Inbox Note) that builds up.  I'd like to be able to:

  1. Highlight text/paragraph/section within a note
  2. Right-click or hit a button to put into a linked note
    • Creates new linked note (allow to specify which notebook)
    • Deletes selected text within original note
    • Adds linked note in the original note

 

2 replies to this idea

Recommended Posts

  • 1
Posted

@Cangelo

Enhancements in EN are of two types: Those that need the EN developers to do the work and those we could potentially automate ourselves.

I wrote an AutoHotKey (Windows only) script that creates a new note from part of an existing note. The process is:

  • Decide what part of the original note you want in a new note (must be contiguous)
  • Ensure the first line of the section is the title of the new note
  • Select the title and the text you want in the note
  • Press ctrl+shift+s

A new note will be created in the same notebook as the original note. The text in the original note will be replaced with a link to the new note. Any tags in the original note are copied to the new note.

As always use at your own risk,

^+s::
{
	SetKeyDelay 100
	sendEvent "^c"
	SendEvent "!^n"
	Sleep 1000
	SendEvent "^v"
	SendEvent "{F2}{Down}{Down}"
	SendEvent "+{End}{Del}"
	SendEvent "!^l"
	SendEvent "!{Tab}"
	Sleep 1000
	SendEvent "^v"
	Sleep 500
	SendEvent "{F3}{Left}+{Left 10}"
	Sleep 50
	send "^c"
	Sleep 100
	SendEvent "!{Tab}"
	Sleep 500
	SendEvent "{F3 3}"
	Sleep 500
	SendEvent "^v"
	Sleep 500
	SendEvent "^w"
}

 

  • Like 1
  • 0
Posted
18 hours ago, Cangelo said:

I love the new linking of notes and how it works.  Sometimes I have large notes (ie: Monthly Inbox Note) that builds up.  I'd like to be able to:

  1. Highlight text/paragraph/section within a note
  2. Right-click or hit a button to put into a linked note
    • Creates new linked note (allow to specify which notebook)
    • Deletes selected text within original note
    • Adds linked note in the original note

 

We often argue that EN works better with short notes, linked together with a table of contents note if required, rather than one big note. Having said that, the tools to split a big note into several smaller ones are pretty limited. I therefore think your suggestion could be really useful. You don't say how the title of the new note  would be  generated.

I  would make the following comments based on what we can do at the moment.

Prevention is better than cure and we should always try not to create long notes in the first place. I don't know what a "Monthly inbox note" is. Could it be created in different notes (daily or by subject) all tagged with 2023_06 say? At the end of the month you could easily create a table of contents for all those notes, or given that they are already linked by tag just move on to the next monthly tag.

In my opinion the easiest workflow for creating a note from text in an existing master note, in roughly the way you want, is currently :

  • Select the text and copy (ctrl+C)
  • Create a new note from that text (Alt+ctrl+V)
  • Press delete to delete the text
  • Alt+Ctrl+L to copy the link for the master document
  • Find the new note in your default notebook
  • Paste in the note link for the master document
  • The back link to the new note is automatically added to the master note

If you want the links the other way around (ie link to new note in a particular place in the master note and the backlink in the new note), which I think you might, it's more complicated as you need to go to the new note, copy the link, and then find your way back to the master note. Going back to the previous note has never been easy in EN as the back arrow takes you to the previous note list not the previous note (I think). However if you have deleted the section then the master note has changed and should therefore be at the top of the recent notes list.

Not very elegant! Your idea of being able to simply "pop out" a section of text into a new note leaving a link to the new note (perhaps in the newish "preview" view) would be awesome.

 

 

  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...