Skip to content

Commit c31ef58

Browse files
authored
Merge pull request #22 from dlvhdr/update-readme
docs: update keys for search
2 parents c3c0ef1 + 0e8a44a commit c31ef58

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

README.md

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
A git diff pager based on [delta](https://github.com/dandavison/delta) but with a file tree, à la GitHub.
44

55
<p align="center">
6-
<img width="750" src="https://github.com/user-attachments/assets/359cd2a3-a22f-4572-8a09-aa57befadd5d" />
6+
<img width="750" src="https://github.com/user-attachments/assets/0a5bc0c9-9b74-4bca-8b8d-423bcf859e68" />
77
</p>
88

99
> [!CAUTION]
@@ -55,24 +55,25 @@ git config --global pager.diff diffnav
5555

5656
## Keys
5757

58-
| Key | Description |
59-
|:-------------------|:--------------------------------|
60-
| <kbd>j</kbd> | Next file |
61-
| <kbd>k</kbd> | Previous file |
62-
| <kbd>Ctrl-d</kbd> | Scroll the diff down |
63-
| <kbd>Ctrl-u</kbd> | Scroll the diff up |
64-
| <kbd>e</kbd> | Toggle the file tree |
65-
| <kbd>q</kbd> | Quit |
58+
| Key | Description |
59+
| :---------------- | :------------------- |
60+
| <kbd>j</kbd> | Next file |
61+
| <kbd>k</kbd> | Previous file |
62+
| <kbd>Ctrl-d</kbd> | Scroll the diff down |
63+
| <kbd>Ctrl-u</kbd> | Scroll the diff up |
64+
| <kbd>e</kbd> | Toggle the file tree |
65+
| <kbd>t</kbd> | Search/go-to file |
66+
| <kbd>q</kbd> | Quit |
6667

6768
## Under the hood
6869

6970
`diffnav` uses:
7071

71-
* [Bubble Tea](https://github.com/charmbracelet/bubbletea) for the TUI
72-
* [`delta`](https://github.com/dandavison/delta) for viewing the diffed file
72+
- [Bubble Tea](https://github.com/charmbracelet/bubbletea) for the TUI
73+
- [`delta`](https://github.com/dandavison/delta) for viewing the diffed file
7374

7475
Screenshots use:
7576

76-
* [kitty](https://sw.kovidgoyal.net/kitty/) for the terminal
77-
* [tokyonight](https://github.com/folke/tokyonight.nvim) for the color scheme
78-
* [CommitMono](https://www.nerdfonts.com/font-downloads) for the font
77+
- [kitty](https://sw.kovidgoyal.net/kitty/) for the terminal
78+
- [tokyonight](https://github.com/folke/tokyonight.nvim) for the color scheme
79+
- [CommitMono](https://www.nerdfonts.com/font-downloads) for the font

0 commit comments

Comments
 (0)