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

Is there a way to "navigate parentheses"? #2132

Open
arcimboldo opened this issue Dec 19, 2024 · 1 comment
Open

Is there a way to "navigate parentheses"? #2132

arcimboldo opened this issue Dec 19, 2024 · 1 comment

Comments

@arcimboldo
Copy link

I often use C-M-n and C-M-p to go to the end or the beginning of enclosing parentheses, see https://www.emacswiki.org/emacs/NavigatingParentheses.

In vscode-emacs-mcx however C-M-n and C-M-p are mapped to "Add selection to (next|previous) find match".

What is the best way to remap the keys so that they behave like in emacs? Would it be possible to have a setting in the extension?

Thnx a lot for your work!

@whitphx
Copy link
Owner

whitphx commented Jan 14, 2025

Hi,
You can assign forward-sexp (C-M-f) and backward-sexp (C-M-b) to C-M-n and C-M-p respectively.

This extension has such sexp commands but they are not exactly same as Emacs but they are just parentheses-based navigations, so forward-sexp is same as forward-list in this extension.

This extension copied a bunch of keybindings from Emacs Friendly Keymap and the current C-M-n assignment was one of them. However, we should fix them for better Emacs emulation.

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

No branches or pull requests

2 participants