Markpad icon indicating copy to clipboard operation
Markpad copied to clipboard

Feature requests : jump to section & paste link into selection

Open fetusfinn opened this issue 8 months ago • 2 comments

Feature A - jump to section

Is your feature request related to a problem? Please describe.

Kinda, for longer files it can be annoying to have to scroll thru it trying to look for what you want, bc sometimes it can be hard to find the header you were looking for since everything is near greyscale and looks almost the same.

Describe the solution you'd like

The ability to create links to headers or defined sections in the file, that you can then click to jump to header, like with html, or in Obsidian.

Example usage, with different link formats with what the link's label becomes, and aliases/ids (basically just how its done in Obsidian)

##### Table of Contents

1. [Hello](#Hello)                -> Hello
2. [[#important]]                 -> important
3. [[#long-note|Long note name]]  -> Long note name
4. [[#Goodbye]]                   -> Goodbye

# Hello
...

Non-header part to jump to using id ^important
...

# Long note name with alias ^long-note
...

# Goodbye
...

Describe alternatives you've considered

Using the search feature, but with that you have to cycle thru every instance of the word/phrase prior to what you're searching for, which can be fine if the section you're looking for has a unique name, or a longer name that you can remember, or if you've used a number in the name, but all of those are rare or have the same pitfalls, in most cases you'll only remember a single word from the section name, so you usually have to cycle thru every instance of that phrase.

I've also tried creating links using [label](#header) but that creates a link to http://tauri.localhost/#header, and when you try click it, it opens that link in the browser.

I've thought about just using Obsidian for all my markdown files (already use for more structured notes), but it doesn't let you just open a random .md file in, you have to copy it to your vault, which is annoying, plus I love the simplicity of Markpad,

Additional context

Links when trying to use a header as the link Image

Feature B - paste link into selection

Feature description

While a link is in your clipboard, and you have some text selected in the editor, then hit paste, the selected text becomes a hyperlink to the link you had copied to your clipboard.

Image

fetusfinn avatar Mar 17 '26 11:03 fetusfinn

both added in v2.6.0!

alecdotdev avatar Mar 20 '26 04:03 alecdotdev

you’re a beast, thank you

fetusfinn avatar Mar 20 '26 11:03 fetusfinn