A VSCode extension that lets you hold Ctrl and click file names within square brackets in configured source documents. It is enabled for .txt files by default.
Features
Instant File Opening: In a .txt file, hold Ctrl and click a file name enclosed in square brackets (e.g., [myfile.txt]) to use VS Code's native document link.
Cross-Platform Support: Works on both Windows and macOS.
Native Integration:
On Windows, it leverages the powerful Everything search engine.
On macOS, it uses the built-in Spotlight search (mdfind).
System-Wide Search: Finds files across your entire system, not just within the current workspace.
No Manual Pathing: Eliminates the need to manually browse or type file paths.
Requirements
Windows: The Everything application must be installed and running.
macOS: No additional software is needed. The extension uses the built-in Spotlight functionality.
Usage
Mark Files: In a document whose extension is enabled, mark a file name using square brackets: [filename].
Open: Hold Ctrl and click the bracketed text.
Extension Settings
file-linker.enabledExtensions controls which source document extensions expose bracket links. It defaults to [".txt"]; values may include .txt or txt, for example [".txt", ".md"].
Known Issues
On Windows, the extension requires Everything to be running. If it's not, a helpful error message will guide you to install it.
On macOS, search results depend on your Spotlight index. If a file isn't found, ensure it's in a location indexed by Spotlight.
Release Notes
1.1.12
Enabled bracket links only for .txt source documents by default; additional extensions can be configured with file-linker.enabledExtensions.
Kept one native VS Code document link per bracketed name and reused the shared Windows opener for files and folders.
Fixed Explorer visibility and launcher error reporting, and added a project-local debugging skill with a short default validation flow.
1.1.10
Fixed hover command links so clicking bracketed file names works reliably again.
Added UTF-8 Everything export handling for Chinese and emoji filenames while keeping the legacy stdout fallback.
Restored Windows default-application opening, so files such as .pptx open in their associated app.
Restored unit and extension-host integration tests for click handling, search results, and default-app opening.
1.1.9
Emergency rollback release: restored the stable v1.1.5 runtime behavior.
1.1.4
Critical Bug Fix: Resolved "spawn cmd.exe ENOENT" error when opening files with paths containing Chinese characters.
Improved User Experience: Files are now opened in Explorer with automatic selection using the /select parameter.
Enhanced Reliability: Removed problematic working directory parameter that caused file opening failures.
1.1.3
Bug fixes and stability improvements.
1.1.1
Added demo GIF to READMEs.
Added link to Chinese README in English README.
1.1.0
Added support for macOS using the native Spotlight search (mdfind).
The extension is now cross-platform.
1.0.0
Initial release of File Linker.
Hover and click functionality for opening files on Windows.
Bundled Everything CLI for seamless integration.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request on GitHub.
License
This project is licensed under the MIT License - see the LICENSE.md file for details.