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

Add extension contexts for Calva states such as project root, session type, ns, etcetera #2652

Closed
PEZ opened this issue Oct 21, 2024 · 0 comments

Comments

@PEZ
Copy link
Collaborator

PEZ commented Oct 21, 2024

Sometimes the most effective way to automate something is to create a keybinding. But keybindings are global, while they may not make sense outside a given project context.

Keybindings can have when clauses, and these can refer to when clause contexts including extension contexts. We already have a few of these (like calva:connected). If we added a few more, and the right ones, we would enable better targeted keybindings. Then something like ctrl+alt+r r could do different things in different projects/contexts.

PEZ added a commit that referenced this issue Oct 27, 2024
Add when contexts for ns, replType and projectRoot

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

No branches or pull requests

1 participant