Assign Shortcut to Open a Frequently Visited File - Navigate to Exact Note.
To create a keyboard shortcut to open a specific frequently visited file without searching:
- Open keybindings.json
- Add the following command with the path to your file:
[
{
"key": "ctrl+alt+1",
"command": "vscode.open",
"args": "/absolute/path/to/your/frequently-visited-note.md"
}
]
Note: Use absolute paths
Important: Relative paths have not been reliable so far. Using absolute paths has worked well. For example:
- Windows:
"C:/Users/YourName/projects/myfile.js" - Mac/Linux:
"/home/username/projects/myfile.js"
Related Use Cases
- Using hot-keyed files with search commands: Combine this with Quick Search In Subtree or Quick Search, In Subtree, Visited Since by assigning a shortcut to an ancestor note in the note hierarchy. This lets you quickly search within a particular note hierarchy from anywhere in your workspace.
For Searchability
For Searchability
hot files shortcut hot key
Backlinks