CmdSearch

approved

by SpaceshipCaptain

Use the command pallete to search web. Add your own URLs.

14 stars770 downloadsUpdated 11mo agoCC-BY-4.0
View on GitHub

CmdSearch

Quickly search the web from within ObsidianMD using custom commands from your command palette! For the best experience, enable the core plugin Web Viewer; otherwise the links open outside of Obsidian in your browser.

  • Add your own custom search commands for any website that supports URL-based searching.
  • Remove or modify the default commands to your liking.
  • Assign hotkeys to your CmdSearch commands for even faster access

CLICK HERE TO SEE DEMO

Usage

Here is a list of common/useful search URLs to reference

  1. Open the command palette: Press Ctrl+P to open Obsidian's command palette.
  2. Find your CmdSearch commands: Type "CmdSearch" to see a list of all your configured commands, or start typing the specific name (e.g., "Google," "YouTube") to quickly find its command.
  3. Enter a query: Once you select a CmdSearch command from the list, you will be prompted to enter your search query (if the command uses the %s placeholder).
  4. Opens URL CmdSearch will then open your URL, with your search query automatically inserted

Adding New Commands (Custom Searches)

When adding a new command, you'll configure two things:

  1. Name: This is the name that appears in the command palette.
  2. URL: This is the URL that CmdSearch will open when you execute the command.
  • Add %s as a placeholder for your search query.
    • So https://www.google.com/search?q=%s will prompt you for a query and replace %s with that query.
  • If you add a URL that doesn't have a %s, the link will open instantly from the command palette.
    • This is useful for sites that don’t use search URLs but that you still want quick access to.
  • You can always refer to the dropdown list for usage examples.
  • Orginal ${Q} replacement string will continue to work but to better align with web standards, the default option has been changed to %s.

Links & Support

For plugin developers

Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.