git: Fix project diff shortcuts (#26045)

Release Notes:

- git: Fix keyboard shortcut display in project diff view
This commit is contained in:
Conrad Irwin
2025-03-04 10:32:20 -07:00
committed by GitHub
parent ad94642e83
commit 85211889e5
16 changed files with 108 additions and 233 deletions
+6
View File
@@ -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
View File
@@ -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