lang/rust: Differentiate doc building bindings
`cargo doc --open` (the previous binding of `SPC m b d`) always opens a new browser tab. For "doc-driven development" this isn't so nice, since we'd like to stay in the same tab and just refresh its contents after editing. That's what `cargo doc` (without `--open`) does, which is called by `#'rustic-carg-build-doc`. This commit introduces a binding for the latter behaviour, but asigns it to the old `SPC m b d`, with the "open" variant as `SPC m b D`. This matches Spacemacs and follows the usual pattern of "the capital letter variant is the one you use less often".
This commit is contained in:
parent
68bee5043c
commit
4cb498e3a1
1 changed files with 11 additions and 10 deletions
|
@ -50,7 +50,8 @@
|
|||
:desc "cargo bench" "B" #'rustic-cargo-bench
|
||||
:desc "cargo check" "c" #'rustic-cargo-check
|
||||
:desc "cargo clippy" "C" #'rustic-cargo-clippy
|
||||
:desc "cargo doc" "d" #'rustic-cargo-doc
|
||||
:desc "cargo doc" "d" #'rustic-cargo-build-doc
|
||||
:desc "cargo doc --open" "D" #'rustic-cargo-doc
|
||||
:desc "cargo fmt" "f" #'rustic-cargo-fmt
|
||||
:desc "cargo new" "n" #'rustic-cargo-new
|
||||
:desc "cargo outdated" "o" #'rustic-cargo-outdated
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue