forked from dandavison/delta
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tips and tricks manual section (dandavison#1339)
* Add Tips & tricks section to manual * Clean up manual * Reorganize Tips & tricks
- Loading branch information
1 parent
cf683c8
commit ffec84e
Showing
11 changed files
with
26 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Save output with colors to HTML/PDF etc | ||
|
||
Install [ansifilter](https://formulae.brew.sh/formula/ansifilter). | ||
|
||
```sh | ||
git show \ | ||
| delta --no-gitconfig --file-decoration-style blue --hunk-header-decoration-style blue \ | ||
| ansifilter --html \ | ||
> /tmp/diff.html | ||
``` | ||
|
||
Now open `/tmp/diff.html` in a web browser, print to PDF, etc. | ||
|
||
Remove the `--no-gitconfig` above to use your own delta style, but not that `ansifilter` does not handle hyperlinks or decoration boxes etc. |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Tips & tricks |
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 2 additions & 0 deletions
2
manual/src/using-delta-with-tmux.md → .../tips-and-tricks/using-delta-with-tmux.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters