Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change keyboard shortcuts to emacs mode #131

Open
TemuG opened this issue Apr 12, 2024 · 4 comments
Open

Change keyboard shortcuts to emacs mode #131

TemuG opened this issue Apr 12, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@TemuG
Copy link

TemuG commented Apr 12, 2024

I am used to having emacs keybindings in matlab running in windows (e.g, ctrl-a goes to start of line, ctrl-e to end of line, ...). Using the matlab-vscode extension, I have the default keymappings (ctrl-a selects all). In the normal Matlab window, I can change this in the "keyboard shortcuts preferences" (e-macs default set with a couple of tweaks).

It would be nice to be able to change the keymap, e.g., by manually reading an xml file. I have tried changing it from the matlab terminal, using an undocumented feature:
com.mathworks.services.Prefs.setStringPref('CurrentKeyBindingSet', 'Emacs')
But that didn't work.

What would be cool is to start the matlab terminal in a cmder terminal (https://cmder.app/), which has these keybindings.

@TemuG TemuG added the enhancement New feature or request label Apr 12, 2024
@philipb314
Copy link
Member

Thanks for the feedback! This is something we can consider including in a future release.

@dklilley
Copy link
Member

Hi @TemuG,
To clarify - is this feedback focused on the opened files in VS Code, or the MATLAB terminal in VS Code?

If this is about the opened files, do you want emacs keybindings to apply to only MATLAB files, or to all files? For example, do you want Ctrl + A to go to the start of a line in a .m file, but to select all in a .py file?

@TemuG
Copy link
Author

TemuG commented Apr 12, 2024

Hi @dklilley ,

I would like this behaviour in the MATLAB terminal. I used the term emacs keybindings, because that is what it is called in the matlab preferences. bash behaviour is probably a less confusing name.

Temu

@dklilley
Copy link
Member

Thanks for the clarification!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants