Skip to content

Commit 70b91f3

Browse files
committed
readme: notes on less movement. fixes #96
1 parent c4c13a1 commit 70b91f3

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

readme.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,19 @@ If you want, you can choose to install manually:
6868
Note: The `diff-highlight` dependency is an [official git-contrib script](https://github.com/git/git/tree/master/contrib/diff-highlight), duplicated here for convenience. If you prefer less fancy in your diff, you also use diff-highlight [on it's own](https://news.ycombinator.com/item?id=11068436).
6969

7070

71-
## Opting-out
71+
## Pro-tips
72+
73+
#### Opting-out
7274

7375
Sometimes you will want to bypass diff-so-fancy. Use `--no-pager` for that:
7476

7577
```shell
7678
git --no-pager diff
7779
```
7880

81+
#### Moving around in the diff
82+
83+
You can pre-seed your `less` pager with a search pattern, so you can move between files with `n`/`p` keys. Add `--pattern='^(added|deleted|modified): '` to the end of the less flags for your git pager config.
7984

8085
## History
8186

0 commit comments

Comments
 (0)