notaapp / talk

Issues and discussions for the notes app, Nota.
https://nota.md
59 stars 1 forks source link

Feature request - After inserting a new link, navigate to input with TAB #245

Open dvcrn opened 2 years ago

dvcrn commented 2 years ago

When inserting a new link with CMD-K it looks like this (| is the cursor)

[|]()

When I hit tab here I expect the cursor to go into (), so

[](|)

but this doesn't happen. There doesn't seem to be a way to go from [] to () without using the arrow keys.

There is this very hack solution of doing this:

  1. CMD-K
  2. type a word like "foo"
  3. Hit CMD-K again, this removes the link markdown again and only "foo" remains
  4. Hit CMD-K again, this time it turns "foo" into a link and puts the cursor into [foo](|)

... but this also doesn't work for multi-word inputs

So it would be very nice to have this a bit nicer

astoilkov commented 2 years ago

I've made it possible to move the cursor between the link and the title by hitting ⌘K. I hope that helps!

astoilkov commented 1 year ago

The change is now part of the 0.38 release. Does this work for you? Do you think we should do something more?

dvcrn commented 1 year ago

Works great! Thanks :)

One idea, but not sure if necessary or not: When hitting CMD-K to jump between the fields on an existing link, should the existing text get selected so it's easier to override? Currently it jumps to the begining of the next, but makes replacing of the text a bit awkard

astoilkov commented 1 year ago

Aha. We could do that. I will explore the idea.

BTW, do you use Expand Selection (⌘E)? With it, you can hit it twice and select the text.

dvcrn commented 1 year ago

BTW, do you use Expand Selection (⌘E)? With it, you can hit it twice and select the text.

Nice I didn't know about this!