Linkr

by Kyro
5
4
3
2
1
Score: 50/100

Description

A fast, universal wiki-link workflow for files, headings, blocks, and embeds.

Reviews

No reviews yet.

Stats

0
stars
43
downloads
0
forks
9
days
9
days
9
days
0
total PRs
0
open PRs
0
closed PRs
0
merged PRs
0
total issues
0
open issues
0
closed issues
5
commits

Latest Version

10 days ago

Changelog

Linkr 2.0.3

New

  • Added Copy file link to the File Explorer context menu.
  • Added Copy heading link… for selecting and copying headings.
  • Added command-palette alternatives for copying active file and heading links.
  • Added a paste-time popup with Use link text and Embed content options.
  • Added settings for choosing how copied links are pasted:
    • Ask when pasting
    • Paste without link text
    • Paste with the file name

Improved

  • Standardized visible naming around Link builder.
  • Preserved the existing Linkr interface and styling.
  • Reduced the delivered project from roughly 150 MB to about 324 KB by excluding development dependencies.
  • Updated documentation, security information, release instructions, and changelog.

README file from

Github

Linkr

Linkr is a fast, keyboard-friendly link builder for Obsidian. It creates wiki links to files, headings, and block IDs, with optional display text and one-click embeds.

Version 2.0.3 requires Obsidian 1.13.0 or later.

Features

  • Native-looking file, heading, block, and link-type pickers.
  • A link builder containing only the link types you enable.
  • Direct commands for each enabled link type.
  • File Explorer context-menu actions for copying file and heading links.
  • Normal Cmd/Ctrl+V pasting, with an optional final link-options popup.
  • An Embed content toggle on every final link screen. Turn it on to change [[...]] into ![[...]].
  • Live preview before a link is inserted.
  • Configurable behavior when a display-text field is left blank.
  • Existing editor selections are prefilled as display text.
  • File links can target Markdown notes and attachments.
  • Heading and block links use Obsidian metadata with safe parsing fallbacks.
  • Up to ten recently selected files can appear first.
  • Optional creation of a missing Markdown note from the file picker.
  • New notes follow Obsidian's configured new-note location.
  • Escape, Cancel, and the close button safely cancel without changing the note.
  • Light theme, dark theme, keyboard, and mobile-compatible UI.
  • No telemetry, analytics, advertising, or network requests.
Link type Normal Embed content enabled Default
Wiki link [[my_file]] ![[my_file]] Enabled
File link with text [[my_file|photosynthesis]] ![[my_file|photosynthesis]] Enabled
Heading link with text [[my_file#Heading|photosynthesis]] ![[my_file#Heading|photosynthesis]] Enabled
Block link with text [[my_file#^block-id|important idea]] ![[my_file#^block-id|important idea]] Enabled
Heading link [[my_file#Heading]] ![[my_file#Heading]] Disabled
Block link [[my_file#^block-id]] ![[my_file#^block-id]] Disabled

The two no-text subpath links are off by default to keep the command palette and link builder focused. Enable either one under Settings → Linkr → Link types.

Commands

Obsidian automatically displays these commands with the Linkr: prefix:

  • Open link builder… — choose any enabled link type from the Link builder.
  • Insert wiki link — create a file link without display text.
  • Insert file link with text — create a file link with optional display text.
  • Insert heading link with text — choose a file and heading, then enter display text.
  • Insert block link with text — choose a file and explicit block ID, then enter display text.
  • Insert heading link — create a heading link without display text when this type is enabled.
  • Insert block link — create a block link without display text when this type is enabled.
  • Copy active file link — copy a link to the active file.
  • Copy heading link from active file… — choose and copy a heading link from the active file.

Disabled link types are unavailable until they are enabled in Linkr settings.

Linkr does not force a default hotkey because Obsidian community plugins should let each user choose shortcuts and resolve conflicts.

The recommended Link builder shortcut is:

  • macOS: Command+Option+/
  • Windows/Linux: Ctrl+Alt+/

To assign it:

  1. Open Settings → Hotkeys in Obsidian.
  2. Search for Linkr: Open link builder.
  3. Select the plus button beside the command.
  4. Press the recommended key combination.
  5. If Obsidian reports a conflict, choose another combination that is free in your vault.

Using Linkr

  1. Run Linkr: Open link builder… from the command palette or your assigned hotkey.
  2. Choose an enabled link type.
  3. Select a file.
  4. For heading or block links, select the target inside that file.
  5. Enter link text when the selected type supports it. You can also leave it blank.
  6. Turn on Embed content if you want Linkr to add ! before the wiki link.
  7. Review the exact Markdown in the preview.
  8. Press Enter or select Insert link.

Press Escape, select Cancel, or use the close button at any stage to stop without inserting anything.

  1. Right-click a file in Obsidian's left File Explorer.
  2. Select Copy file link.
  3. For a Markdown note, you can instead select Copy heading link… and choose one of its headings.
  4. Open any Markdown note and press Cmd+V on macOS or Ctrl+V on Windows/Linux.

The default Ask when pasting behavior opens Linkr's final popup at the cursor. You can:

  • Enter custom link text.
  • Turn Use link text on or off to add or omit |text.
  • Turn Embed content on or off to choose between [[...]] and ![[...]].
  • Review the exact result before inserting it.

Under Settings → Linkr → Copy and paste, you can change the behavior to:

  • Ask when pasting — show the final Linkr popup.
  • Paste without link text — paste the copied wiki link exactly, without a pipe.
  • Paste with the file name — paste the link with |file name automatically.

The copied value is also placed on the normal system clipboard, so it can be pasted outside Obsidian as Markdown. Linkr only opens its popup when the copied Linkr value is pasted into an Obsidian editor.

Under Settings → Linkr → Link text, choose what happens when a link-text field is blank. Text you type always takes priority.

Setting Heading-link result
Target name [[file#heading1|heading1]]
File > target [[file#heading1|file > heading1]]
File name [[file#heading1|file]]
Generic text [[file#heading1|link]]
No link text [[file#heading1]]

For block links, Target name uses visible block text when available. For file links, it uses the file name.

Settings

Enable or disable the choices shown in the link builder and their matching direct commands. Wiki link is enabled by default; heading and block links without display text are disabled by default.

Choose the fallback used when display text is blank.

  • View the recommended hotkey.
  • Choose which enabled type appears first.
  • Optionally move the last-used type to the top.

Copy and paste

Choose whether copied File Explorer links ask for final options when pasted, paste without link text, or automatically use the file name as link text.

File picker

  • Choose how many recently used files appear first, from zero to ten.
  • Show or hide folder paths.
  • Clear Linkr's recent-file ordering without changing vault files.

New notes

  • Allow Linkr to offer a new Markdown note when a file search has no exact match.
  • Optionally give new notes an H1 title matching the file name.

For file links, type a name that does not exactly match an existing file. Linkr offers Create “Note name” at the end of the results. Selecting it creates a Markdown note in Obsidian's configured new-note location and continues the link flow.

Creation is unavailable during heading and block flows because a new empty note does not yet contain a heading or block target.

Installation

After Linkr is accepted into the Community Plugins directory:

  1. Open Settings → Community plugins.
  2. Select Browse and search for Linkr.
  3. Select Install, then Enable.

Manual installation

Download these files from the matching GitHub release:

  • main.js
  • manifest.json
  • styles.css

Place them in:

<your-vault>/.obsidian/plugins/linkr/

Restart Obsidian or reload community plugins, then enable Linkr under Settings → Community plugins.

Compatibility

  • Minimum Obsidian version: 1.13.0
  • Desktop: supported
  • Mobile: supported
  • Desktop-only APIs: not used

Privacy and security

Linkr works entirely inside Obsidian. It does not send network requests, collect analytics, use telemetry, show advertising, or transmit note contents. Its saved plugin data contains only Linkr settings and recently selected vault-relative file paths. A copied link target is kept only in memory while Obsidian is running and is not saved by Linkr.

Known limitations

  • Block links require explicit Obsidian block IDs such as ^block-id.
  • A newly created note cannot immediately be used for a heading or block link because it has no targets yet.
  • Shortcut availability depends on the user's Obsidian configuration and installed plugins.
  • The paste popup is available for the most recently copied Linkr file or heading link. Copying different clipboard content restores normal paste behavior.

Development

npm install
npm run check
npm run lint
npm run build

The production build creates main.js. Keep main.js out of source commits and attach it to the GitHub release with manifest.json and styles.css.

The local node_modules directory contains development tools and can be around 150 MB. It is ignored by Git and is not part of the plugin release. The installable Linkr files are only main.js, manifest.json, and styles.css.

Support

Report problems or request features through the Linkr issue tracker.

License

Linkr is available under the MIT License.


Crafted by @NameIsKyro.