git: Fix project diff shortcuts (#26045)
Release Notes: - git: Fix keyboard shortcut display in project diff view
This commit is contained in:
@@ -10,6 +10,12 @@ To preview the docs locally you will need to install [mdBook](https://rust-lang.
|
||||
mdbook serve docs
|
||||
```
|
||||
|
||||
Before committing, verify that the docs are formatted in the way prettier expects with:
|
||||
|
||||
```
|
||||
cd docs && pnpm dlx prettier@3.5.0 . --write && cd ..
|
||||
```
|
||||
|
||||
## Preprocessor
|
||||
|
||||
We have a custom mdbook preprocessor for interfacing with our crates (`crates/docs_preprocessor`).
|
||||
|
||||
+9
-4
@@ -72,10 +72,15 @@ The following commands use the language server to help you navigate and refactor
|
||||
|
||||
### Git
|
||||
|
||||
| Command | Default Shortcut |
|
||||
| ------------------------- | ---------------- |
|
||||
| Go to next git change | `] c` |
|
||||
| Go to previous git change | `[ c` |
|
||||
| Command | Default Shortcut |
|
||||
| ------------------------------- | ---------------- |
|
||||
| Go to next git change | `] c` |
|
||||
| Go to previous git change | `[ c` |
|
||||
| Expand diff hunk | `d o` |
|
||||
| Toggle staged | `d O` |
|
||||
| Stage and next (in diff view) | `d u` |
|
||||
| Unstage and next (in diff view) | `d U` |
|
||||
| Restore change | `d p` |
|
||||
|
||||
### Treesitter
|
||||
|
||||
|
||||
Reference in New Issue
Block a user