Ctrl+Y Shortcut Setup - For In-Subtree Searches
Free CTRL+y
Out of the box, VSCode assigns CTRL+y to redo. You'll need to free and remap this so you can use CTRL+y as an entry point for many commands rather than just a single command.
Step 1: Free "ctrl+y" from Being Tied to a Single Command
- Open command palette
- Type
Preferences: Open keyboard shortcuts (JSON)
Add the following to the file:
{
"key": "ctrl+y",
"command": "-chatEditor.action.acceptHunk",
"when": "chatEdits.hasEditorModifications && editorFocus && !chatEdits.isRequestInProgress || chatEdits.hasEditorModifications && notebookCellListFocused && !chatEdits.isRequestInProgress"
},
{
"key": "ctrl+y",
"command": "-redo"
}
Step 2: Assign New Shortcut for redo
The recommended shortcut for redo is CTRL+y + Y (the second time you press Y is without CTRL).
To set this up, add the following to your keyboard shortcuts (JSON) file (keybindings.json):
{
"key": "ctrl+y y",
"command": "redo"
}
This setup will leave CTRL+y available as an entry point for multiple commands.
Add Thorg CTRL+y shortcuts
CTRL+y is used as the entry point for Thorg in-subtree search commands. To remember this, think of the Y character representing the branching of a tree.
Pre-Req
Shortcuts Overview
Add the following to your keybindings.json:
{
"key": "ctrl+y ctrl+t",
"command": "thorg.search.quick.in-subtree.all"
},
{
"key": "ctrl+y ctrl+h",
"command": "thorg.search.quick.in-subtree.visited-since.2-hours-ago"
},
{
"key": "ctrl+y ctrl+d",
"command": "thorg.search.quick.in-subtree.visited-since.today"
},
{
"key": "ctrl+y ctrl+y",
"command": "thorg.search.quick.in-subtree.visited-since.yesterday"
},
{
"key": "ctrl+y ctrl+w",
"command": "thorg.search.quick.in-subtree.visited-since.1-week-ago"
},
{
"key": "ctrl+y ctrl+m",
"command": "thorg.search.quick.in-subtree.visited-since.1-month-ago"
},
{
"key": "ctrl+y ctrl+e",
"command": "thorg.search.quick.in-subtree.visited-since.1-year-ago"
},
Description of Shortcuts
-
CTRL+y+CTRL+t:- Assigned to
thorg.search.quick.in-subtree.allfor quick search across all notes in the current hierarchy. - To remember: Subtree, Thorg (All).
- Assigned to
-
CTRL+y+CTRL+h:- Assigned to
thorg.search.quick.in-subtree.visited-since.2-hours-ago - Searches within subtree for notes visited in the last 2 hours.
- To remember: Subtree, Hour.
- Assigned to
-
CTRL+y+CTRL+d:- Assigned to
thorg.search.quick.in-subtree.visited-since.today - Searches within subtree for notes visited today.
- To remember: Subtree, Day.
- Assigned to
-
CTRL+y+CTRL+y:- Assigned to
thorg.search.quick.in-subtree.visited-since.yesterday - Searches within subtree for notes visited since yesterday.
- To remember: Subtree, Yesterday.
- Assigned to
-
CTRL+y+CTRL+w:- Assigned to
thorg.search.quick.in-subtree.visited-since.1-week-ago - Searches within subtree for notes visited in the last week.
- To remember: Subtree, Week.
- Assigned to
-
CTRL+y+CTRL+m:- Assigned to
thorg.search.quick.in-subtree.visited-since.1-month-ago - Searches within subtree for notes visited in the last month.
- To remember: Subtree, Month.
- Assigned to
-
CTRL+y+CTRL+e:- Assigned to
thorg.search.quick.in-subtree.visited-since.1-year-ago - Searches within subtree for notes visited in the last year.
- To remember: Subtree, (Second letter of y)Ear (we used
yfor yesterday).
- Assigned to
Notes
Children
Backlinks