npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

joplin-plugin-context-utils

v1.10.0

Published

> [!note] > This plugin was created entirely with AI tools.

Readme

[!note] This plugin was created entirely with AI tools.

[!note] This plugin only supports the markdown editor (codemirror 6). The legacy editor is not supported.

Context Utils

Context Utils is a Joplin plugin that adds various options to the right-click context menu in the Markdown Editor, along with commands for toggling task list items, contextual copy, fetching link titles, and automatically cleaning up pasted list items.

Context Menu Options

  • Open Link/Send Email - Open external URLs in browser or open mailto: links in default mail client.

  • Open All Links - Opens all detected HTTP(S) links in the current text selection, in selection order.

  • Add External Link - Insert a hyperlink at the cursor

  • Add Link to Note - Insert a link to another note at the cursor

  • Copy URL/Copy Email - Copy URL to clipboard, or copy email address from mailto: link.

  • Copy Code - Copy code from inline code or code block to clipboard.

  • Copy Heading Link - Display options to copy a markdown link to the heading at the cursor (internal anchor or external note link)

  • Copy Quote - Display option to copy block quote contents without quote markers

  • Toggle Task(s) - Toggle task on selected line or Toggle all tasks in selection(s).

    • Can be assigned a keyboard shortcut (uses CmdOrCtrl+Shift+Space by default).
    • Also available in the markdown viewer: select text across one or more tasks, then right-click the selection. Joplin only shows a context menu in the viewer over selected text, so select at least part of a task's text to toggle it from there.
  • Go to Footnote - Scroll editor to defintion associated with the selected Footnote reference.

  • Go to Heading - Scroll editor to specified heading when right clicking on internal anchor link (e.g. [Test](#test))

  • Open Note as Pinned Tab - Allows you to right click a link to another joplin note and pin it to a tab (requires the Note Tabs plugin)

  • Resource Properties - Right click a link to or embed of a Joplin resource (attachment) to view its name, filename, type, size, created/updated dates, ID, and the notes that reference it.

    • The name can be edited, which renames the resource's title and filename (the file extension is kept).
    • Optionally updates the link text / image alt text of the link you right clicked. This is enabled by default only when the link text still matches the resource's old name, so custom link text is kept. Links in other notes are not changed.
    • HTML image embeds (including resized images) are supported: updates or adds the alt attribute while preserving the image URL, dimensions, and other attributes.
    • The referencing notes list comes from Joplin's resource index, so a link added moments ago may not be listed yet.
  • Fetch Link Title(s) - Fetches the title of a URL and updates markdown link to include the title (or converts to a markdown link if its a bare URL). Operates on the single link at the cursor, or every link in the selection.

    • Can be assigned a keyboard shortcut.
    • Note that this results in an outbound request to fetch the web page title.
    • If a linkpreview.net API key is configured in plugin settings, the plugin tries linkpreview.net first and falls back to direct page fetching if needed.
    • Custom link title rules let you derive the link text directly from the URL (no page fetch). See below. Jira links are handled by a default rule.
    • Note that Open All Links and Fetch Link Title(s) do not support reference-style links or links inside embeds.

Custom link title rules

The Custom link title rules (JSON) setting holds a JSON array of rules. When a rule's regex matches a link's URL, "Fetch Link Title" uses that rule's title template as the link text instead of fetching the page. Rules are tried in order; the first matching rule that produces a non-empty title is used. If no rule produces a title, the normal fetch behavior applies.

Each rule is an object:

| Field | Required | Description | | --------- | -------- | ------------------------------------------------------------------------------------------ | | pattern | yes | Regex source tested against the full URL. | | title | yes | Template for the link text. $1–$9 insert capture groups; $& inserts the whole match. | | flags | no | Regex flags, e.g. "i" for case-insensitive. |

Example — title a helpdesk ticket link from its track= query parameter so that https://helpdesk.example.com/ticket.php?track=7QF-MZP-9KD2 becomes 7QF-MZP-9KD2:

[{ "pattern": "^https?://helpdesk\\.example\\.com/.*[?&]track=([^&#]+)", "title": "$1", "flags": "i" }]

The default value ships a rule for Jira issue links (e.g. …/browse/PROJ-123 → PROJ-123), you can edit or remove it.

[!note] Joplin settings are a single-line field, so the value must be minified (one line) JSON. Rules use your own regular expressions, so a pathological pattern could make fetching hang — keep patterns simple and anchored.

Contextual Copy

A "Contextual Copy" command is provided that will copy the innermost copyable context at the current cursor position. For example:

  • Cursor inside block quote > copies contents of the block quote
  • Cursor inside a http(s) URL > copies link
  • Cursor inside code block or inline code > copies contents of the inline code/code block
  • Mixed scenario (inline code inside a block quote) > copies code if cursor is inside the inline code, otherwise copies the quote contents.

This can be assigned a keyboard shortcut and uses CmdOrCtrl+Shift+X by default.

Clean up pasted list items

When you paste a list after an existing list marker, this setting prevents duplicate bullets, numbers, or task boxes. For example, pasting - foo on a - line produces - foo instead of - - foo.

It also adjusts the pasted list to the current list's indentation and style, and renumbers numbered items when needed. Nested items keep their structure.

Settings

  • Each context menu option can be enabled or disabled in the Plugin settings.
  • Enable/Disable toast messages.
  • Optional secure linkpreview.net API key setting for link title fetching.
  • Custom link title rules (JSON) for deriving link text from the URL (see Custom link title rules).
  • Default heading format for Contextual Copy (internal or external).
  • Clean up pasted list items (off by default; see Clean up pasted list items).

Misc Notes

  • Some of these context menu options overlap with the ones provided by the Rich Markdown plugin. Each option can be toggled on/off to avoid conflicts/duplicate menu items.