How to map <leader>t to CMD+P (mac)
See original GitHub issueI want to open the file picker when I hit <leader>t
.
Leader is mapped:
“vim.leader”: “,”
VS Code default mapping for the command in question: { “key”: “cmd+p”, “command”: “workbench.action.quickOpenNavigateNextInFilePicker”, “when”: “inFilesPicker && inQuickOpen” }
What should be my config?
I have tried the following and few other combination and I can’t get it to work.
"vim.otherModesKeyBindings": [
// file picker
{
"before": ["<leader>", "t"],
"after": ["cmd+p"]
}
]
Please let me know if this is even possible.
Issue Analytics
- State:
- Created 5 years ago
- Comments:5
Top Results From Across the Web
How to Use the Vim <leader> Key - Tucker Chapman
To change the leader key to the comma , add let mapleader = “,” to your vimrc (to use the space key add...
Read more >Vim's Leader Key (wtf is it?) - Vim Works
macOS has the command key (⌘). Vim has the <Leader> key. You type it, and then usually two or three more characters to...
Read more >In vim, leader key won't work - Apple Support Communities
I'm using vim in terminal. And the leader key won't work. I've tried to remap it to ",", only to find it not...
Read more >How to map mac command key in vim? - Stack Overflow
iTerm2 can do this - here I mapped command enter to :wq. enter image description here.
Read more >CONTRACT AMENDMENT 15 AHCCCS: YH15-0001 DCS
Comprehensive Medical and Dental Program (CMDP) ... AHCCCS has remained a leader in Medicaid Managed Care through the diligent pursuit of ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This works for me:
As far as I understand, the
workbench.action.quickOpenNavigateNextInFilePicker
is used to navigate to the next entry once the quick open pane is opened. Theworkbench.action.quickOpen
can be used to open it.This works for me as well. Thank you for the suggestions. I just wish these shortcuts also worked without having to open a file (global in vscode).