Skip to content

A plugin for Obsidian (https://obsidian.md) that adds a menu entry to its search view for copying the Obsidian search URL.

License

Notifications You must be signed in to change notification settings

czottmann/obsidian-copy-search-url

Repository files navigation

Plugin logo thingie: a list icon, a plus, a link icon

Copy Search URL

This plugin adds a menu entry to the "X results" context menu in Obsidian's search view. Clicking it will copy the Obsidian URL for the current search to the clipboard. This allows for easier bookmarking of pre-defined searches.

Showcase

Showcase GIF: both editor and search view are open, a search for "hello" is done, then a mouse click on the new "Copy Obsidian search URL" context menu entry is done, the result is manually pasted in the editor, then another search is done for "dazuma", the menu entry is clicked, the result is pasted into the editor as well, then a third search is done for "plugins", the menu entry is clicked, that result is also pasted into the editor. Obsidian is then switched into reading mode, the three links are clicked in succession, bringing up their related searches

Bug Reports & Discussions

For bug reports please use this repo's Issues section — thank you!

I've moved all plugin discussions to the ActionsDotWork Forum which is a hub for both my Obsidian plugins and the macOS/iOS productivity apps I'm building: Carlo's Obsidian Plugins - ActionsDotWork Forum.

The forum supports single-sign-on via GitHub, Apple and Google, meaning you can log in with your GitHub account.

Installation

  1. Search for "Copy Search URL" in Obsidian's community plugins browser. (This link should bring it up.)
  2. Install it.
  3. Enable the plugin in your Obsidian settings under "Community plugins".

That's it.

Installation via BRAT (for pre-releases or betas)

  1. Install BRAT.
  2. Add "Copy Search URL" to BRAT:
    1. Open "Obsidian42 - BRAT" via Settings → Community Plugins
    2. Click "Add Beta plugin"
    3. Use the repository address czottmann/obsidian-copy-search-url
  3. Enable "Copy Search URL" under Settings → Options → Community Plugins

Please note

This plugin adds functionality (a button) to a core plugin. The jury's out on whether that idea is a wise one, tho — either way, here we are. ;)

I wanted this functionality for a while so I've built it myself. It was a good learning experience for me.

Development

Clone the repository, run pnpm install OR npm install to install the dependencies. Afterwards, run pnpm dev OR npm run dev to compile and have it watch for file changes.

Thanks to …

Author

Carlo Zottmann, [email protected], https://zottmann.org/

License

MIT, see LICENSE.md.