Keep selected text when inserting a URL · Issue #2029 · marktext/marktext · GitHub
Skip to content

Keep selected text when inserting a URL #2029

Closed

Description

@Li-An

Describe your feature request

Hello, it seemed to me that in previous version, copying an URL on selected text created a proper formatted link. It’s not the case actually.

Activity

  1. fxha commented on Jun 7, 2020

    @fxha
    Contributor

    Thank you for taking the time to report this issue. We cannot reproduce this issue without steps to reproduce, please provide some steps or how the error occurred.

  2. Li-An commented on Jun 7, 2020

    @Li-An
    Author

    Well, it’s quite simple. You copy an URL, You select some text in Marktext. You paste the URL to create a linked text.

  3. fxha commented on Jun 7, 2020

    @fxha
    Contributor

    Which version are you using? I tried the following:

    1. foo bar foo
    2. Select bar
    3. Paste a URL
    4. Result: foo [Copy URL on selected text to get a link · Issue #2029 · marktext/marktext · GitHub](https://github.com/marktext/marktext/issues/2029) foo

    If you just want a raw URL, please use Ctrl+V go get foo https://github.com/marktext/marktext/issues/2029 foo.

  4. Li-An commented on Jun 7, 2020

    @Li-An
    Author

    If I have foo bar foo and URL is https://home.com. I select bar and when I paste (sorry, I just noticed that my english is so bad that I should have written paste and not copy) the URL, I hope to get

    foo [bar](https://home.com) foo

    I hope it’s clearer now.

  5. added and removed
    🐤 blocked/need infoNeed more details about this issue or pull request
    on Jun 10, 2020
  6. changed the title [-]Copy URL on selected text to get a link[/-] [+]Keep selected text when inserting a URL[/+] on Jun 10, 2020
  7. maxibor commented on Jun 17, 2020

    @maxibor

    Would be a nice feature to have 😃

  8. brainchild0 commented on Jun 21, 2020

    @brainchild0
    Contributor

    I feel it might be confusing if regular pasting created a link, but it would be convenient if some different menu item and keyboard shortcut produced this effect.

  9. cpsauer commented on Nov 26, 2020

    @cpsauer

    I too think that this feature would be very nice to have!

    It's becoming common enough across other types of editors I use that this is what I would have guessed would happen on paste.

  10. ks00x commented on Feb 18, 2022

    @ks00x

    I miss this feature too! If the clipboard contains a valid url and text is selected in the editor then create a markdown link with the selected text as the link text.

  11. LuxBrg commented on Apr 21, 2026

    @LuxBrg

    Hi, is the feature already on the roadmap? I come from another editor and want to use MarkText. This feature is really missing.

  12. Li-An commented on Apr 21, 2026

    @Li-An
    Author

    Hi, is the feature already on the roadmap? I come from another editor and want to use MarkText. This feature is really missing.

    I think the development is dead. I use Typora.

  13. self-assigned this
    on Oct 6, 2026
  14. added 2 commits that reference this issue on Oct 15, 2026
    6ef518e
    fba0bc0
  15. added a commit that references this issue on Oct 15, 2026
    0cda325
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions