scrod / nv

Notational Velocity: modeless, mouseless Mac OS X note-taking application
http://notational.net
GNU General Public License v3.0
2.07k stars 403 forks source link

New note from selected words #261

Open ghimus opened 13 years ago

ghimus commented 13 years ago

It would be awesome if you could create a new note by selecting words and triggering a "make note with the selected words as title" action. NV would then create the note, make a link to it in the parent note and switch focus to the new one.

The action could simply be named "Make Link".

olivierguerriat commented 13 years ago

In my humble opinion, this should be made as a third-party service. Actually, I looked to make one right now, but the AppleScript dictionary is very poor, to say the least (the only keyword is "search").

I think it would be great to wider the AppleScript dictionary in order to allow many specific features like this one being developed by power users.

Here's some things I would love to have in the dictionary :

scrod commented 13 years ago

ghimus,

If the user has already taken the taken the time to select text, why wouldn't he/she simply type [[double-square brackets]] around it instead? Pressing command-return while the insertion point was over the link would then be equivalent to clicking on it, leading to the effect you're requesting.

Olivier,

I think your suggestion merits a separate issue.

ghimus commented 13 years ago

Well let's look at the flow for each way:

The way I propose: select text (double click or a few keystrokes) -> make link (keyboard shortcut or context menu item) The way you can do it now: type [[ at selection start point -> move to end point -> type ]] -> move two spaces back -> type Cmd+Enter (to search for the linked text) -> type Enter again to create the note.

With a practical example of two words:

The way I propose: move cursor to either start or end of text to select -> select text (hold Shift+Alt and move sideways two times) -> Make Link (keyboard shortcut). Result: 3 keystrokes

The way you can do it now: move cursor to either start or end of text -> type two square brackets -> move to other point (Alt + sideways two times) -> type another two square brackets -> move two spaces back/forth to land on link text -> Cmd+Enter -> Enter Result: 10 keystrokes

I have no preferred implementation, so if Olivier's idea can generate the same behavior then I'll close this and support his enhancement.

And let me just say that I'm really grateful you've created a note app that's really usable. It's really awesome and so are you for creating and maintaining it.

elasticthreads commented 13 years ago

Or even just:

if you (for example) cmd-click a link (any link in a note) that isn't the title of an existing note, nvALT will create a new note, using the link text as title. You can already quickly create a link out of selected text using cmd-shift-L.

So you'd select text, cmd-shift-L, cmd-click (or cmd-return or something) and have what you're talking about.

What do you think?

On Fri, Aug 12, 2011 at 11:05 AM, ghimus < reply@reply.github.com>wrote:

It would be awesome if you could create a new note by selecting words and triggering a "make note with the selected words as title" action. NV would then create the note, make a link to it in the parent note and switch focus to the new one.

The action could simply be named "Make Link".

Reply to this email directly or view it on GitHub: https://github.com/scrod/nv/issues/261

olivierguerriat commented 13 years ago

Scrod, I opened a new issue : https://github.com/scrod/nv/issues/262

scrod commented 13 years ago

@elasticthreads, this is Notational Velocity — not NValt.

elasticthreads commented 13 years ago

Oops. Sorry. Same idea as posted still applies.

Will be more careful about which app.

On Mon, Aug 15, 2011 at 4:31 PM, scrod < reply@reply.github.com>wrote:

@elasticthreads, this is Notational Velocity not NValt.

Reply to this email directly or view it on GitHub: https://github.com/scrod/nv/issues/261#issuecomment-1810655