ylc395 / joplin-plugin-note-link-system

A complete Link System for Joplin. Referrer(aka. backlink), Quick Link, Copy Anchor, Hover To Preview, and much more feature
154 stars 5 forks source link

Feature request: Only show note title for link to sections #8

Open shinglyu opened 2 years ago

shinglyu commented 2 years ago

Currently if I reference a H1 called # My section 123 in a note called Note A, I get:

[Note A#my-section-123](:/ec02a18f371542ddac713afc5b116e1c#my-section-123)

It would be great to have an configuration option to hide the section part in the link title by default, like so:

[Note A](:/ec02a18f371542ddac713afc5b116e1c#my-section-123)

I know this can be solved by using the Quick Link: What Happen After Completion: Select title of Link option. However, I almost always remove the section part, so under the current behavior I have to

  1. Create a quick link
  2. Remove the section part from the link title
  3. Move my cursor back to the end of the link so I can continue typing

This proposed option can avoid the redundant work of step 2 and step 3.

ylc395 commented 2 years ago

This feature gets a low priority from me. But PRs are welcome.

shinglyu commented 2 years ago

Sure, I'll look into it when I have some time.

battmanux commented 1 year ago

I do have a similar need : when linking to a ection, I would like the section title to be the title by default:

Current behaviour:

[Note A#my-section-123](:/ec02a18f371542ddac713afc5b116e1c#my-section-123)

becomes:

[My section 123](:/ec02a18f371542ddac713afc5b116e1c#my-section-123)