kellenvu / google-keep-markdown

7 stars 2 forks source link

Feature Request: Add stripping of URL domain to use relative linking to assist mobile users #4

Open djsudduth opened 4 weeks ago

djsudduth commented 4 weeks ago

Part of my desire with Keep is to have note-to-note linking without refreshing the entire page or opening a new tab. Your fantastic extension can do that with relative markdown links in this form:

[Compatibilism](#NOTE/1Olfy8J2l4jIER-Akex7qZMGZvG-GG0yZ3Iz_1moXdZrQjFhOu77oxFccLcCbaPWvtSnuw5C1)

This format works great with your extension and will open the markdown link in the same window! I've wanted this forever!

But, that kind of link doesn't work on mobile. So with mobile I typically have to have the full url in the markdown url section - in the form of: https://keep.google.com/#NOTE/1Olfy8J2l4jIER-Akex7qZMGZvG-GG0yZ3Iz_1moXdZrQjFhOu77oxFccLcCbaPWvtSnuw5C1 or https://keep.google.com/u/0/#NOTE/1Olfy8J2l4jIER-Akex7qZMGZvG-GG0yZ3Iz_1moXdZrQjFhOu77oxFccLcCbaPWvtSnuw5C1

These types of url links work with both browser with your extension and mobile (since the link is clickable) in the markdown form: [Compatibilism](https://keep.google.com/#NOTE/1Olfy8J2l4jIER-Akex7qZMGZvG-GG0yZ3Iz_1moXdZrQjFhOu77oxFccLcCbaPWvtSnuw5C1) but unfortunately refresh the full screen or new tab in the browser - reloading Keep

I would like the extension to strip the "https://keep.google.com/" or "https://keep.google.com/u/0/" domain off dynamically so that relative links with no page refresh work on the browser, but mobile works fine with the full link with the domain without this extension.

Thanks! (let me know if I explained this well enough)

djsudduth commented 4 weeks ago

I tested the code on my dev PC - I will submit a pull request

djsudduth commented 3 weeks ago

@kellenvu - pull request added. This works so well with relative note-to-note linking in Keep now!! Thanks for the extension!