Linkify Plus Plus

Based on Linkify Plus. Turn plain text URLs into links.

< Feedback on Linkify Plus Plus

Review: Good - script works

§
Posted: 2016-03-07
Edited: 2016-03-07

Can someone help me add evernote:/// links to this script?

Hi, Linkify Plus Plus is working awesome. I love it. I'm looking to modify my local version to linkify evernote:/// links. Can anyone help point me in the right direction?

Thanks!

§
Posted: 2016-03-07

Try reading the tech-info for evernote:// links in the oficial website.

Structure

 evernote:///view/[userId]/[shardId]/[noteGuid]/[noteGuid]/

Where:

  • [userId] is the user id of the notebook owner
  • [shardId] is the shard id of the notebook owner
  • [noteGuid] is the guid of the note that is being linked to
§
Posted: 2016-03-08

Hi. Thanks for the reply!
Yeah, I get the structure of the evernote links.
I'm just not sure where to add the code in this script to get something like...
evernote:///view/[userId]/[shardId]/[noteGuid]/[noteGuid]/
to linkify.

eightAuthor
§
Posted: 2016-03-09
  1. You have to edit RE to match :/// scheme.
  2. You have to edit RE to allow domains without TLDs.
  3. Include evernote:/// protocol at line 260

Should we support it officially?

§
Posted: 2016-03-11

Hi eight! Thanks for the awesome script!

There are two types of links I use (both note-taking apps) that would be amazing to have officially supported.

Evernote, which looks like this...
evernote:///

OneNote, which looks like this...
onenote:
These might be much more difficult however because the links are complex...
onenote:#Books§ion-id={F1580D31-86DD-4975-9169-CBB0C3846D9D}&page-id={39F02142-9AAA-49C6-AD26-E47114E2BB1C}&end&base-path=https://d.docs.live.net/dc516d79aca53670/OneNote/@Home/Tab9.one

Evernote, seems easy.
OneNote, maybe not so easy.

What do you think?

eightAuthor
§
Posted: 2016-03-11

Currently the script is designed to find http URLs without the protocol.

We can make a scheme list, then simply match them without knowing the format of each scheme. That is, every word starting with onenote: or evernote:/// will be linkified.

Since it doesn't check the format, it may match something like onenote:hello.

For better results, we need the definition of those schemes, including allowed characters, the max length of each part... etc.

Some schemes from wiki: https://en.wikipedia.org/wiki/Template:URI_schemes

§
Posted: 2016-03-14

I tried digging into the scheme details. Beyond what's written in this thread about the Evernote scheme I couldn't find any further information.

I think a simple matching scheme would be great. Neither protocol will occor in general writing.

eightAuthor
§
Posted: 2016-04-01

Starting from 7.3.0, LPP supports custom rules.

Try adding these lines:

onenote:\S+
evernote:///\S+

Post reply

Sign in to post a reply.