Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

the-switcher

somebodilsomebodil49 downloads

Go to a file by its name or find text in your notes, and hide paths you never want to see with regular expressions.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates9

Two dialogs for Obsidian that take you where you want to be, without leaving the keyboard.

  • Go to file finds a file by its name, an alias, or its folder.
  • Find in files finds a text in your notes and shows the note around it.

In both, you pick a result and open it in the current tab or in a new one. Paths you never want to see are hidden with regular expressions, and each dialog remembers its own.

There are no settings. Everything the plugin does is on this page.

Requirements

  • Obsidian 1.8.7 or later
  • The desktop app or the mobile app. What differs in the mobile app is under On a phone or a tablet.

Installation

the-switcher is in the community plugin directory of Obsidian.

  1. In Obsidian, go to Settings → Community plugins. If community plugins are still turned off, turn them on.
  2. Select Browse and search for the-switcher.
  3. Select Install, and then Enable.

Obsidian tells you when there is a newer version, and installs it for you.

By hand

  1. Download main.js, manifest.json, and styles.css from the latest release.
  2. In your vault, create the folder .obsidian/plugins/the-switcher/ and put the three files in it. .obsidian is a hidden folder.
  3. Restart Obsidian.
  4. Go to Settings → Community plugins and switch on the-switcher in the list of installed plugins.

To update, replace the three files with the ones from a newer release and restart Obsidian.

Getting started

The plugin adds two commands:

  • the-switcher: Go to file
  • the-switcher: Find in files

Neither has a hotkey until you give it one under Settings → Hotkeys. Until then, run them from the command palette.

Go to file

The dialog lists the files of your vault, of every type. The file you are looking at is left out, because you are already there.

What to type

Words are separated by spaces, and a file has to match all of them. Upper and lower case are the same, and spaces inside names do not count: alphabeta finds Alpha Beta.

You type You get
alpha Files with alpha in the name, in an alias, or in the folder path
alpha beta Files that match both words, in any order
"alpha beta" Files that match the two words next to each other
-alpha Everything except what alpha matches
Notes/ Files in a folder whose path has Notes
Notes/alpha Of those, the files with alpha in the name or in an alias
  • Files other than Markdown notes show their extension and are found by it. png lists the PNG images.
  • A result shows the full path of the file, with the name of the file standing out. A path that is too long for the row is cut in its middle, and the name always stays: Projects/2026…/Notes/Alpha. What the query matches in the folders is marked too, in a softer colour than a match in the name.
  • When a word matches an alias, that alias is shown under the name.
  • A word is also looked up as a whole in the folder path. Notes/alpha therefore lists everything in a folder Notes/Alpha as well.

Order of the results

  1. Names and aliases that start with more of the words come first.
  2. Then alphabetically. A file is listed under an alias when the first word matches that alias and not the name.
  3. Then Markdown notes before other files.
  4. Then recently opened files.
  5. Then recently modified files.

Emoji are skipped in steps 1 and 2, so 📝 Memo starts with memo and is listed under M.

Find in files

Type a text, and the dialog lists every line of your Markdown notes that has it, with the name of the note and the number of the line.

  • The text is taken as you type it, spaces included. There are no wildcards and no operators.
  • Upper and lower case are the same.
  • A line is listed once, however often it has the text.

Under the results, the dialog shows the note around the selected line, with the text highlighted. This preview follows the selection as you move through the results.

Opening a result opens the note at that line, with the text selected.

The results are ordered by note, alphabetically by the name of the note, and within a note from the top line down.

The notes are read when the dialog opens: all of them the first time, and after that only the ones that changed. In a large vault the first time takes a moment, and the dialog says Reading the notes... until it is done.

A search does not hold up your typing. In a large vault it looks at the notes a few at a time, and lists the first lines while it is still looking at the rest. The number of matching lines comes last: it reads 50 / ... until every note was looked at. A keystroke that changes the text starts the search over.

Keys

Both dialogs have the same keys. Mod is Ctrl on Windows and Linux, and Cmd on macOS.

Key What it does
↑ ↓ Move through the results
Enter Open in the current tab
Mod+Enter Open in a new tab
Mod+E Go to the exclude input
Mod+S Go back to the query
Esc Close the dialog
  • A click opens a result in the current tab, and Mod+click in a new tab.
  • Home and End move the cursor in the input you are typing in. They do not jump through the results.
  • A file that already has a tab does not get a second one. Opening it in a new tab takes you to the tab that is there.
  • Up to 50 results are listed. The numbers at the right of the exclude input, such as 50 / 371, tell how many are listed and how many there are.

Hiding paths

The input under the query is the exclude input. It takes JavaScript regular expressions, separated by commas. A file is hidden when one of them matches its path, counted from the root of the vault. Upper and lower case are the same.

Exclude input What is hidden
^Archive/ Everything in the top-level folder Archive
(^|/)_templates/ Every folder called _templates, however deep
^Archive/, \.png$ The folder Archive, and every PNG image
daily, weekly Every path with daily or weekly in it
  • It stays. What you type is saved and is there the next time, also after Obsidian restarts. Empty the input to see everything again.
  • Each dialog has its own. Hiding a path in one dialog does not hide it in the other.
  • A pattern in the making does no harm. While a pattern is not a valid regular expression, the input turns red and that pattern is left out. The other patterns still apply. *.png is such a pattern: a regular expression cannot start with *, so write \.png$.
  • A comma can be part of a pattern. It is not a separator when it is escaped (\,), inside square brackets ([a,b]), or inside a quantifier ({1,3}).

The two exclude inputs are kept as fileExclude and textExclude in the data.json of the plugin. When that file is changed from outside Obsidian, by a sync or by hand, the dialogs use the new values the next time they open.

Size

You change the size of a dialog with the mouse.

  • Width. Drag the left or the right side. A dialog stays in the middle of the window, so both sides move.
  • Height. Drag the lower side. A lower corner changes the width and the height at once.
  • Results and preview. In Find in files, drag the line between the results and the preview up or down to give one of them more room.
  • Back to the start. Double-click what you dragged, and it is as it was before you changed it.

Each dialog remembers its own size. The sizes are kept on the device and not in data.json, so a sync does not carry them to a screen they do not fit.

On a phone or a tablet

In the mobile app the two commands are in the command palette and in the ribbon menu, each with its icon, and you can put them on the mobile toolbar. A tap on a result opens it in the current tab.

  • A dialog is as large as the app makes it. On a phone it is as wide as the screen and goes down to the keyboard. Its sides are not dragged.
  • On a phone, Find in files has no preview. There is no room for it, and no key that moves the selection, so there are the results only: the line, the note, and the number of the line.
  • On a phone, the exclude input is above the query, next to the keyboard, in versions of Obsidian that have the query under the results.
  • On a tablet, Find in files has its preview. You drag the line between the results and the preview with a finger. With a keyboard the keys work as on a computer.
  • On a tablet, a dialog ends above the keyboard of the screen. When the keyboard leaves it too little room where it is, it goes up to the upper side of the screen.

Development

You need Node.js 24 or later.

npm install
npm run dev     # rebuilds main.js on every change
npm run check   # type check, lint, and tests
npm run build   # type check, then the main.js of a release
  • src/search holds the searches. They know nothing about Obsidian, so their tests run with plain Node.js.
  • src/ui holds the dialogs.
  • src/main.ts adds the two commands and saves the exclude inputs.

To try a build, copy main.js, manifest.json, and styles.css to .obsidian/plugins/the-switcher/ in a vault.

A release is built by GitHub Actions when a tag with the version of manifest.json is pushed. The message of the tag becomes the notes of the release. The files of a release come with an artifact attestation, a signed statement that they were built from this repository:

gh attestation verify main.js --repo somebodil/the-switcher

Acknowledgements

  • Inspired by Go to File and Find in Files in IntelliJ IDEA.
  • Some ideas for the query of Go to file come from Another Quick Switcher by Tadashi Aikawa. the-switcher shares no code with it.

License

MIT

HealthExcellent
ReviewPassed
About
Find files by name, alias, or folder and search note text with two keyboard-driven dialogs that show matching context. Open results in the current or a new tab, hide unwanted paths with regex, and keep each dialog's hidden-path list.
NavigationSearchFiles
Details
Current version
1.0.8
Last updated
3 days ago
Created
6 days ago
Updates
9 releases
Downloads
49
Compatible with
Obsidian 1.8.7+
Platforms
Desktop, Mobile
License
MIT
Report bugRequest featureReport plugin
Author
somebodilsomebodilsomebodil
GitHubsomebodil
  1. Community
  2. Plugins
  3. Navigation
  4. the-switcher

Related plugins

Notebook Navigator

A better file browser and calendar inspired by Apple Notes, Bear, Evernote and Day One.

Quick Switcher++

Enhanced Quick Switcher, search open panels, and symbols.

Quick Explorer

Perform file explorer operations (and see your current file path) from the title bar, using the mouse or keyboard.

Omnisearch

Intelligent search for your notes, PDFs, and OCR for images.

Open Tab Settings

Adds options to customize how tabs are opened, including open in new tab by default, preventing duplicate tabs, and more.

Recent Files

Display a list of recently opened files.

Quiet Outline

Make outline quiet and more powerful, including no-auto-expand, rendering heading as Markdown, and search support.

Reveal Active File Button

Add a button to the top of the File Explorer, to reveal the active file.

Remember cursor position

Remember cursor and scroll position for each note.

Homepage

Open a note, base, or workspace on startup, or set it for quick access later.