Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
shinglyu opened this issue Feb 23, 2022 · 3 comments
Open

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

shinglyu opened this issue Feb 23, 2022 · 3 comments

Comments

@shinglyu
Copy link

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
Copy link
Owner

ylc395 commented Feb 25, 2022

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

@shinglyu
Copy link
Author

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

@battmanux
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants