Back to Notenik Docs


The Notenik Knowledge Base

9.4 The Basic Set of Fields ↑

The word link can be used as both a label and a type.

In addition to link itself, this field type will be inferred for a label of URL, or for any label containing the consecutive letters link.

A Collection may have multiple fields of type link.

A link field is expected to hold a single URL. Notenik will attempt to honor as many different URL schemes (https, mailto, etc.) as might usefully be referenced (including its own Custom URL Scheme), and will attempt to handle each according to its type.

When editing, a link field will appear as an auxiliary text field. To enter a long link value, click on the Edit button to the right.

For display purposes, links will generally be styled as a link, and will be clickable.

The first link field encountered within a Note will be considered the Note’s primary link field, and will be acted upon by any special buttons/commands designed to open or otherwise act on that Note’s link. These actions will typically open the link within the user’s preferred Web browser (such as Safari or Chrome).

You can easily Launch a link from within the Notenik Mac App by clicking on the Launch Link button in the Toolbar, or by selecting Launch Link under the Note menu, or by using the keyboard shortcut CMD-L, or by double-clicking on the Note’s line in the List view or the Tags view.

You may also Ctrl-Click (or right-click, etc.) on a row in the List tab, or the Tags tab, then select Launch Link from the contextual menu that appears, in order to launch a link. If you first select multiple rows, then Ctrl-Click on any one of those rows, and select Launch Link, then the links for all of the selected Notes will be launched. You may select multiple rows by Cmd-Clicking on each row to be selected, or by first clicking on a starting row, and then using shift-click on the last row in a range to be selected. Multiple Links may also be launched by using the Launch Link command beneath the Note menu.

Adding a Link to a Note doesn’t necessarily reduce the Note to a simple Bookmark, but this is certainly one way to use a Collection of Notes.

Note that if you use a Link to point to a local folder containing another Notenik Collection, then Launching that Link will result in opening the linked Collection within Notenik (so long as you have given Notenik permission to access that folder).

You may use the Set Local Link command under the Note menu to choose a file or folder to be linked; the resulting path string will then replace any value previously stored in the Link field for the current Note. (Also see the File Links page.)

You may use the Wikipedia Link command under the Note menu to populate the first (or only) Link field for a Note with the Note’s title, converted to a link to that subject on Wikipedia. This command may be invoked while in Edit mode, or in Display mode. This conversion will not always result in a link to a valid Wikipedia page, so you should test the Link for accuracy and relevance after using this command.

You may use the Clean Link command beneath the Note menu to remove any tracking parameters associated with a Link that you wish to save. Thanks to Robb Knight and his TrackerZapper utility for the idea and the code. As an example, the link http://www.example.com/?utm_source=exampleblog&utm_medium=referral&utm_campaign=summer-sale would be reduced to http://www.example.com/. After selecting this menu item, the user will be presented with a window offering a few options. The default source will be the system clipboard, so that a link you copied from somewhere else will be the default starting point for the clean operation. Alternatively, you can use the current Link field value from the currently selected Note as your starting point. Then you can choose what you wish done with the clean link. You may cancel, to do nothing with it, or save it to the system clipboard (as if you had copied it), or place it into the Link field of the currently selected Note. This command may be invoked while in Edit mode, or in Display mode.

Note that you can drag a bookmark from a Web browser (such as Safari or Chrome) and drop it into an open Collection’s List view in order to add that bookmark to the Collection as a new Note. A bookmark can typically be dragged either from the browser’s URL field, at the top of the screen, or from a link within a page. The result of such a drag and drop operation will be a new Note with its Title and Link fields populated.

If you add a Link value without any URL scheme, then the implicit scheme of ‘https://’ will be assumed. In other words, you need only enter ‘Notenik.app’ in the link field, but ‘https://Notenik.app’ is what will be passed to your Web browser when requesting Notenik to open the Link.

Remember that a link stored in its own field is a somewhat different animal from a link coded using Markdown syntax within a Note’s body.

In order to increase interoperability with other apps, such as iA Writer, any surrounding less than / greater than signs will be stripped off when a Link value is read from disk, and such signs will be added when saving to disk, if the link is using some sort of unusual protocol unlikely to be recognized as a link by other apps.

Starting with Version 13.4.0, the display of links will be modified somewhat.

First, link fields are new styled with the ext-link class, which is an existing class defined on the HTML Class Values page. This will generally make the styling of links here consistent with the appearance of links within the Body of the note.

Second, the contents of the display string shown for a link field can now be modified using a special set of values to be placed in the the Collection Template File.

See the following for an example.

Ref Link: <link: x|s|s|x|x > 

Notice there are five separate single-character values separated by pipe characters.

Each position can have one of the following values:

And the five positions represent the following five components of a URL:

A couple of things to note:

And now, to explain what we mean by simplifying the presentation of a component.

First, this only applies to the Host and the Path. There are no simplification algorithms for the other three parts, so they will be displayed as-is, unless they are excluded.

For the Host, the following rules will be applied:

For the Path, the following rules will be applied:

And then, if the host and/or the path were simplified, then the two will be separated by a colon and a space, rather than a slash.

So, for example, given the formatting string above, this URL:

https://en.wikipedia.org/wiki/Comparison_of_note-taking_software

…would be displayed like this:

Wikipedia: Comparison of note-taking software

Depending on what you are using a Collection for, and what sort of links you are recording, this sort of formatting may or may not be useful to you.

In some cases, though, it can make the text of the link much easier to read for humans trying to parse all the pieces.


Next: Launch at Startup Tags