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

Disable auto-link when pasting over a text #50

Open
javierarce opened this issue Jun 23, 2022 · 3 comments
Open

Disable auto-link when pasting over a text #50

javierarce opened this issue Jun 23, 2022 · 3 comments

Comments

@javierarce
Copy link

javierarce commented Jun 23, 2022

If I copy a URL, highlight a text to link it, and paste the URL, the plugin replaces my selection with the link which means that I then need to go and rewrite the title. This is super annoying.

A better approach would be for the plugin to respect the selection and use it instead of the fetched title.

@javierarce javierarce changed the title Disable auto-link when selecting a text Disable auto-link when pasting over a text Nov 2, 2022
@electblake
Copy link

+1

@neoromantic
Copy link
Contributor

Came here to write a feature request exactly for this.

Basically, we want to be able to insert a link over existing title (we wrote).

Currently, it's either do not use auto-link plugin, settle with need to rewrite a link always, or (what I do) have a separate hotkey to insert an empty link on selected text and paste URL in it (which works, but cumbersome).

Ideal solution would be:

  1. have a toggle in settings "replace selection with fetched title on link paste/ preserve selection as title on link paste"
  2. former one is current behavoir (so, no users are baffled by the change)
  3. latter is new: when you paste URL on selection, no fetch needed, link is simply added.

@neoromantic
Copy link
Contributor

I've created a quick PR with a solution. Would appreciate if you approve it (or ask for any changes, if needed)

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