Important
My coding knowledge is currently very limited. This plugin was created entirely with AI tools, and I may be limited in my ability to fix any issues.
Important
This plugin only supports the markdown editor (codemirror 6). The legacy editor is not supported.
Context Utils is a Joplin plugin that adds context menu options in the markdown editor related to links, images, task lists and code. Most of the context menu options will only appear when applicable (e.g. Copy Code only appears when right clicking inside a Code Block or Inline Code).
Open Link/Open Resource/Send Email/Open Note - Open external URLs in browser, open Joplin resources in default app, open mailto: links in default mail client, or open linked note.
Add External Link - Insert a hyperlink at the cursor
Add Link to Note - Insert a link to another note at the cursor
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))
Copy URL/Copy Path/Copy Email - Copy URL or resource file path to clipboard, or copy email address from mailto: link.
Reveal File - Reveal Joplin resource file in file explorer.
Copy Code - Copy code from inline code or code block to clipboard.
Copy OCR Text - Copy OCR text from image resources when available.
Check/Uncheck Task / Check/Uncheck All Tasks - Toggle task on selected line or Toggle all tasks in selection.
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)
Open Note in New Window - Allows you to right click a link to another joplin note and open it in a new window.
Fetch Link Title / Fetch All Link Titles - 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).
- Note that this results in an outbound request to fetch the web page title.
- There's special handling for JIRA links to set the link text to the JIRA issue number (since JIRA issues just set the page title to "Jira"). There's currently no special handling for any other link types.
-
Each context menu option can be enabled or disabled in the Plugin settings.
-
Enable/Disable toast messages.
-
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.
-
Options for "Copy Image" and "Resize Image" are intentionally not provided by this plugin, as they are available in my other plugin: https://github.com/bwat47/simple-image-resize