rust-lang / rust-lang/rust-mode
Please consider easier to type default keybindings for cargo actions
Nobody has claimed this yet.
- Dominant language
- Emacs Lisp
- Stars
- 1.3k
- Forks
- 198
- PR merge metrics
- No merged PRs in 30d
Description
The default keybindings for running cargo actions are
C-c C-c C-urust-compileC-c C-c C-krust-checkC-c C-c C-rrust-runC-c C-c C-trust-testC-c C-c C-lrust-run-clippy
When touch-typing, these are quite difficult to type, requiring first using one Ctrl-key and then the other.
While it is common among Emacs modes to use C-c C-c for "finishing" or "building" something, I am not aware of a tradition of continuing with C-<letter> after the prefix. Nor seems there to be such a necessity, since any key binding after the C-c C-c prefix is still free.
How about redefining the above such that a simple letter chooses the action, for example:
C-c C-c urust-compile(although one may ask why "u" for compile/build)C-c C-c krust-checkC-c C-c rrust-runC-c C-c trust-testC-c C-c lrust-run-clippy
I am aware that anyone may redefine keybindings, and this is what I did. I am signalling this here because I believe that a good default configuration is valuable.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Locate the default keybinding definitions for rust-compile, rust-check, rust-run, rust-test, and rust-run-clippy, then review how their C-c C-c bindings are declared. Update the defaults if appropriate and verify that each command is reachable through the proposed single-letter suffixes without conflicting bindings.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- emacs-lisp, rust
- Domain
- developer-experience, tooling
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100