heyman / heynote

A dedicated scratchpad for developers
https://heynote.com
Other
3.85k stars 193 forks source link

Only HTTP(S):// URLs are clickable #255

Open RobertNotRob opened 1 month ago

RobertNotRob commented 1 month ago

Describe the bug Many applications support deep linking through implementing custom URI schemes. For example standard ones "file://", "ftp://" "mailto://" (defined here or custom ones such as slack:// vscode:// and binaryninja://. Only http(s):// URLs are rendered as a clickable link in the Heynote which I would consider a bug. I commonly use these types of links in my workflow which makes the program difficult to use effectively.

To Reproduce Steps to reproduce the behavior:

  1. Open Heynote
  2. Copy a deep link for any program (i.e
  3. Link is not rendered and is not clickable

Expected behavior The link is rendered and can be cmd+clicked by the user.

Screenshots If applicable, add screenshots to help explain your problem.

image

Desktop (please complete the following information):

heyman commented 1 month ago

Not sure that I would consider this a bug. HTTP(S) links should be so much more common than any of the other protocols. VSCode seems to support file://URLs, but not any of the other protocols in the standard.

What's your typical use-case for this?

RobertNotRob commented 1 month ago

I would consider it a bug as it's not conformant to the RFC - but agree that it's subjective and HTTPS should cover a lot of usecases.

I'm using HeyNote as a floating scratch pad for keeping track of my train of thought. I'm trying to take notes while minimising the context switching - and an app like this is perfect for holding that.

Usually I'm doing some form of reverse engineering where I'm trying to figure out how a program works. I have a plugin for the tool I use to do this that enables me to extract segments of code - with a deeplink back to where I found it.

This is super useful as it enables me to get back to useful information in one click - but currently is broken as the "disas://" URLs are not clickable.

RobertNotRob commented 1 month ago

On VSCode - the list for the editor is hard coded. There is a "Allow Link Schemes" setting for the terminal but no such setting for the editor, so instead you need to use a plugin https://github.com/dendronhq/dendron/pull/1317

Another example of this kind of use would be to link to repositories like so: vscode://vscode.git/clone?url=https://github.com/heyman/heynote.git