MCPcopy Index your code
hub / github.com/czottmann/obsidian-copy-search-url

github.com/czottmann/obsidian-copy-search-url @1.2.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release 1.2.1 ↗ · + Follow
11 symbols 23 edges 3 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

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

Copy Search URL

This plugin adds a button to 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 "code" is done, then a mouse click on the new "Copy Obsidian search URL" is done, the result is manually pasted in the editor, then another search is done for "note", the button is clicked, and the result is pasted into the editor as well, show a different URL

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, carlo@zottmann.org, https://zottmann.org/

License

MIT, see LICENSE.md.

Extension points exported contracts — how you extend this code

Workspace (Interface)
(no doc)
main.ts
GetQueryFunction (Interface)
(no doc)
types.d.ts
SearchLeafView (Interface)
(no doc)
types.d.ts

Core symbols most depended-on inside this repo

getSearchLeaf
called by 2
main.ts
getSearchQuery
called by 2
main.ts
on
called by 1
main.ts
isSearchDisabled
called by 1
main.ts
getObsidianUrl
called by 1
main.ts
onload
called by 0
main.ts

Shape

Method 6
Interface 3
Class 2

Languages

TypeScript100%

Modules by API surface

main.ts9 symbols
types.d.ts2 symbols

For agents

$ claude mcp add obsidian-copy-search-url \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page