vscode-emacs-mcx
vscode-emacs-mcx copied to clipboard
Open File (find file) mapping
Hello,
Thanks you for this extension. This has become my daily driver and I appreciate the work.
I had a quick question regarding opening a file. Currently Ctrl+X Ctrl+F is mapped to Go to File and not to Open File. In Emacs, I am used to using it to open the file which also allows me to specify the path of a new file which is has already not been opened. On the contrary, Go to File doesn't let me do that. But Open File does!
Of course I have manually changed it for myself. But I was wondering whether there was some reason this is the case and whether it can be changed to align it more closely with Emacs for new users to this extension.
Thanks Z
Hi, thank you for a suggestion.
That's nice! But I couldn't find the command for "Open File".
Can you please tell me the command name you assign to your C-x C-f?
{
"key": "ctrl+x ctrl+b",
"command": "workbench.action.quickOpen",
"when": "!terminalFocus"
},
{
"key": "ctrl+x ctrl+f",
"command": "workbench.action.files.openFile"
},
This is what I have in my keybindings.json
Thank you.
It seems workbench.action.files.openFile is not available on mac as https://github.com/microsoft/vscode/issues/5437#issuecomment-211500871 says, and I cannot check the behavior of that command on Windows and Linux now.
I will do it when I set them up.
At least on mac, the workbench.action.files.openFileFolder command, which is suggested as an alternative in the comment linked above, cannot be used for this purpose because it opens a file dialog instead of using the find widget.
I tested workbench.action.files.openFile on Windows and it also opened a file selection dialog, which was not an appropriate behavior of C-x C-f.