Quickly search for occurrences of your currently open file's name across your workspace.
Finding references to a file by its name is a common need:
- Component-based frameworks (Vue, Svelte, React, Angular) where component names are derived from filenames
- Configuration files referenced by name in other configs
- Module imports using filename-based resolution
- Asset files (images, stylesheets, data files) referenced across your codebase
- Any file where "Go to References" doesn't help because the filename itself is what's being referenced
- File mentioned in comments
Some language-specific extensions offer this feature, but FMOF provides a universal, language-agnostic solution that works everywhere.
| Feature | Description |
|---|---|
| 📝 Search without extension | Find all references to just MyComponent |
| 🔍 Search with extension | Find all references to the currently opened file, including the extension (MyComponent.vue) |
| 🖱️ Context menu | Right-click in any editor to search (configurable) |
| ⌨️ Keyboard shortcut | Ctrl+Shift+F11 for quick search without extension |
| 🎯 Auto-focus results | Navigate immediately with arrow keys |
- Open any file
- Press
Ctrl+Shift+P/Cmd+Shift+P - Run either:
Find My Open File (without extension)Find My Open File (with extension)
Right-click in any open editor and select:
Find My Open File (without extension)Find My Open File (with extension)
| Command | Shortcut | Description |
|---|---|---|
| Find without extension | Ctrl+Shift+F11 |
Search for filename only |
| Find with extension | unbound by default | Bind your own in Keyboard Shortcuts |
| Setting | Default | Description |
|---|---|---|
FMOF.showContextMenuWithExtension |
true |
Show "with extension" in context menu |
FMOF.showContextMenuWithoutExtension |
true |
Show "without extension" in context menu |
Simple text search
The extension is intentionally simple and language-agnostic. This means it only performs a fulltext search. If your file is named b and you don't want to search with extension, then good luck with that.
I don't expect much need for contribution here. But you can Open an issue on GitHub.
