zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
47.85k stars 2.8k forks source link

Markdown link creation improvements #5087

Open JosephTLyons opened 1 year ago

JosephTLyons commented 1 year ago

Check for existing issues

Is your feature request related to a problem?

-

Describe the solution you'd like

  1. Have link in clipboard
  2. Select some text in a markdown file
  3. Paste the text, Zed automatically forms a valid markdown link

  1. Select some text in a markdown file
  2. Type [
  3. Zed automatically wraps the selected text in [ and ], adds the () at the end, and drops the cursors in inside of it.
    • If there is a link in the clipboard, it is added in between ()

EDIT: After typing both of these out, it seems that they are similar enough to pick just one over the other. The first one is probably the better solution, if I had to pick one over the other.

If applicable, add mockups / screenshots to help present your vision of the feature

No response

SamuelLHuber commented 2 weeks ago

would also love if links to headlines would be suggested in editor.

like

# link1

[link](# <- HERE SUGGEST link1)