Skip to content

Commit 7b12b79

Browse files
authored
docs: sponsors (#127)
1 parent 214ed73 commit 7b12b79

4 files changed

Lines changed: 132 additions & 36 deletions

File tree

.github/workflows/sponsors.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: generate
2+
on:
3+
workflow_dispatch: {}
4+
schedule:
5+
- cron: "0 8 * * *"
6+
permissions: read-all
7+
jobs:
8+
docs:
9+
permissions:
10+
contents: read
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v5
15+
- name: Install Go
16+
uses: actions/setup-go@v6
17+
with:
18+
go-version-file: ./go.mod
19+
- name: Install Task
20+
uses: go-task/setup-task@v2
21+
with:
22+
repo-token: ${{ secrets.GH_DIFFNAV_PAT }}
23+
- name: Download Go modules
24+
run: go mod download
25+
- run: task docs-sponsors
26+
env:
27+
GITHUB_TOKEN: ${{ secrets.SPONSORS_TOKEN }}
28+
- uses: stefanzweifel/git-auto-commit-action@04702edda442b2e678b25b537cec683a1493fcb9 # v7.1.0
29+
with:
30+
commit_message: "chore: auto-update generated files"
31+
branch: main
32+
commit_user_name: actions-user
33+
commit_user_email: actions@github.com
34+
commit_author: actions-user <actions@github.com>

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ diffnav
33

44
dist/
55
.task/
6+
/sponsors.json

README.md

Lines changed: 83 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,59 @@
1717
<img width="900" src="https://github.com/user-attachments/assets/104e156e-7e9d-4ea5-bea1-399ca71e12a5" />
1818
</p>
1919

20-
## Donating ❤️
20+
## ❤️ Sponsoring
2121

2222
If you enjoy `diffnav` and want to help, consider supporting the project with a
2323
donation at the [sponsors page](https://github.com/sponsors/dlvhdr).
2424

25+
<!-- sponsors:begin -->
26+
<!-- this list is auto-generated by https://github.com/goreleaser/sponsors -->
27+
28+
## Sponsors
29+
30+
<h3 align="center">TUI Visionary</h3>
31+
32+
<p align="center">
33+
<a href="https://engineering.tryarchitect.com?utm_source=dlvhdr&utm_medium=sponsor&utm_campaign=homepage&utm_content=github" target="_blank" rel="noopener sponsored" ><img src="https://avatars.githubusercontent.com/u/179040529?s=128&v=4" alt="Architect" width="128"/></a>&nbsp;&nbsp;
34+
<a href="https://mariozechner.at?utm_source=dlvhdr&utm_medium=sponsor&utm_campaign=homepage&utm_content=github" target="_blank" rel="noopener sponsored" ><img src="https://avatars.githubusercontent.com/u/514052?s=128&u=86324f7b9775af9867e7135e19213716baaeba59&v=4" alt="Mario Zechner" width="128"/></a>&nbsp;&nbsp;
35+
<a href="http://steipete.me?utm_source=dlvhdr&utm_medium=sponsor&utm_campaign=homepage&utm_content=github" target="_blank" rel="noopener sponsored" ><img src="https://avatars.githubusercontent.com/u/58493?s=128&u=95a4fccef3d341039661c427695691a664e333ba&v=4" alt="Peter Steinberger" width="128"/></a>&nbsp;&nbsp;
36+
</p>
37+
38+
<h3 align="center">TUI Power User</h3>
39+
40+
<p align="center">
41+
<a href="https://alexandergarber.com?utm_source=dlvhdr&utm_medium=sponsor&utm_campaign=homepage&utm_content=github" target="_blank" rel="noopener sponsored" ><img src="https://avatars.githubusercontent.com/u/9858440?s=50&u=3f0f3072d5c4e7ee4c0cd72e5f8ad2edd01033be&v=4" alt="Alexander Garber" width="50"/></a>&nbsp;&nbsp;
42+
<a href="https://github.com/Brend-Smits?utm_source=dlvhdr&utm_medium=sponsor&utm_campaign=homepage&utm_content=github" target="_blank" rel="noopener sponsored" ><img src="https://avatars.githubusercontent.com/u/15904543?s=50&u=47f907dfd09a9fa143c8d813a2299ea82df88b42&v=4" alt="Brend Smits" width="50"/></a>&nbsp;&nbsp;
43+
<a href="https://bjg.io?utm_source=dlvhdr&utm_medium=sponsor&utm_campaign=homepage&utm_content=github" target="_blank" rel="noopener sponsored" ><img src="https://avatars.githubusercontent.com/u/1212?s=50&u=9af0530b0e65983da61672445f974432cc1ca8ea&v=4" alt="Brian Gianforcaro" width="50"/></a>&nbsp;&nbsp;
44+
<a href="https://github.com/cdxn?utm_source=dlvhdr&utm_medium=sponsor&utm_campaign=homepage&utm_content=github" target="_blank" rel="noopener sponsored" ><img src="https://avatars.githubusercontent.com/u/2151520?s=50&u=eb74f479693b7f172506e678a169a34ead03796b&v=4" alt="cdxn" width="50"/></a>&nbsp;&nbsp;
45+
<a href="https://github.com/Hidetoxin?utm_source=dlvhdr&utm_medium=sponsor&utm_campaign=homepage&utm_content=github" target="_blank" rel="noopener sponsored" ><img src="https://avatars.githubusercontent.com/u/4011421?s=50&u=89f4268038fd8e67d535d23422272b20515a5134&v=4" alt="Fernando Becerra Méndez" width="50"/></a>&nbsp;&nbsp;
46+
<a href="https://github.com/kenosando?utm_source=dlvhdr&utm_medium=sponsor&utm_campaign=homepage&utm_content=github" target="_blank" rel="noopener sponsored" ><img src="https://avatars.githubusercontent.com/u/13559092?s=50&u=efb2ab2cd3c739182f76876e2e88a369ac71d65b&v=4" alt="Ken Sanders" width="50"/></a>&nbsp;&nbsp;
47+
<a href="https://rollans.sh?utm_source=dlvhdr&utm_medium=sponsor&utm_campaign=homepage&utm_content=github" target="_blank" rel="noopener sponsored" ><img src="https://avatars.githubusercontent.com/u/4101096?s=50&u=8330a195570652f1bcd39e89bc5571ee41b15386&v=4" alt="Luke Rollans" width="50"/></a>&nbsp;&nbsp;
48+
<a href="https://github.com/mchisolm0?utm_source=dlvhdr&utm_medium=sponsor&utm_campaign=homepage&utm_content=github" target="_blank" rel="noopener sponsored" ><img src="https://avatars.githubusercontent.com/u/39521893?s=50&u=2ab5b762d1573b0aecc776a30a93cc8ab04fdbad&v=4" alt="Matthew Chisolm" width="50"/></a>&nbsp;&nbsp;
49+
<a href="https://nikolay.com?utm_source=dlvhdr&utm_medium=sponsor&utm_campaign=homepage&utm_content=github" target="_blank" rel="noopener sponsored" ><img src="https://avatars.githubusercontent.com/u/2882?s=50&u=b5278753f2aeee2a074f17c163df9179d3640b03&v=4" alt="Nikolay Kolev" width="50"/></a>&nbsp;&nbsp;
50+
<a href="https://philippeserhal.com/?utm_source=dlvhdr&utm_medium=sponsor&utm_campaign=homepage&utm_content=github" target="_blank" rel="noopener sponsored" ><img src="https://avatars.githubusercontent.com/u/1377702?s=50&u=97edad0b41ef9cb95fd1825a62e244e6648c4681&v=4" alt="Philippe Serhal" width="50"/></a>&nbsp;&nbsp;
51+
<a href="https://github.com/ryneflood?utm_source=dlvhdr&utm_medium=sponsor&utm_campaign=homepage&utm_content=github" target="_blank" rel="noopener sponsored" ><img src="https://avatars.githubusercontent.com/u/1847226?s=50&u=ff62cad70c6b582ff729cf6a4cb92999aae1121b&v=4" alt="Ryne Flood" width="50"/></a>&nbsp;&nbsp;
52+
<a href="https://github.com/SacredTexts?utm_source=dlvhdr&utm_medium=sponsor&utm_campaign=homepage&utm_content=github" target="_blank" rel="noopener sponsored" ><img src="https://avatars.githubusercontent.com/u/65536039?s=50&v=4" alt="SacredTexts" width="50"/></a>&nbsp;&nbsp;
53+
<a href="https://ames.sh?utm_source=dlvhdr&utm_medium=sponsor&utm_campaign=homepage&utm_content=github" target="_blank" rel="noopener sponsored" ><img src="https://avatars.githubusercontent.com/u/8071752?s=50&u=d66ecf5d4a8d8cdd3cc6bab4c5524a0bdd0d9b21&v=4" alt="Scott Ames" width="50"/></a>&nbsp;&nbsp;
54+
<a href="https://sideshowbarker.net/?utm_source=dlvhdr&utm_medium=sponsor&utm_campaign=homepage&utm_content=github" target="_blank" rel="noopener sponsored" ><img src="https://avatars.githubusercontent.com/u/194984?s=50&v=4" alt="sideshowbarker" width="50"/></a>&nbsp;&nbsp;
55+
<a href="https://github.com/scjudd?utm_source=dlvhdr&utm_medium=sponsor&utm_campaign=homepage&utm_content=github" target="_blank" rel="noopener sponsored" ><img src="https://avatars.githubusercontent.com/u/167754?s=50&u=b094905c1930afc3b307f39776d5fc4250d02298&v=4" alt="Spencer Judd" width="50"/></a>&nbsp;&nbsp;
56+
<a href="https://github.com/candril?utm_source=dlvhdr&utm_medium=sponsor&utm_campaign=homepage&utm_content=github" target="_blank" rel="noopener sponsored" ><img src="https://avatars.githubusercontent.com/u/404352?s=50&v=4" alt="Stefan Lüdin" width="50"/></a>&nbsp;&nbsp;
57+
<a href="https://stevie.sh?utm_source=dlvhdr&utm_medium=sponsor&utm_campaign=homepage&utm_content=github" target="_blank" rel="noopener sponsored" ><img src="https://avatars.githubusercontent.com/u/6165538?s=50&u=2d9fc263793ca4050bc0a76c3e6c297fd72ce71c&v=4" alt="Stevie Huh" width="50"/></a>&nbsp;&nbsp;
58+
<a href="http://dangel.im?utm_source=dlvhdr&utm_medium=sponsor&utm_campaign=homepage&utm_content=github" target="_blank" rel="noopener sponsored" ><img src="https://avatars.githubusercontent.com/u/350922?s=50&v=4" alt="Ulrich Dangel" width="50"/></a>&nbsp;&nbsp;
59+
<a href="https://github.com/vosahloj?utm_source=dlvhdr&utm_medium=sponsor&utm_campaign=homepage&utm_content=github" target="_blank" rel="noopener sponsored" ><img src="https://avatars.githubusercontent.com/u/566194?s=50&u=0bca2b2bfa091749aa09df75d2d588de1fdb42b8&v=4" alt="vosahloj" width="50"/></a>&nbsp;&nbsp;
60+
<a href="https://github.com/roninjin10?utm_source=dlvhdr&utm_medium=sponsor&utm_campaign=homepage&utm_content=github" target="_blank" rel="noopener sponsored" ><img src="https://avatars.githubusercontent.com/u/35039927?s=50&u=94370136033f1a4d900b4857c2ae13964bf51f96&v=4" alt="Will Cory" width="50"/></a>&nbsp;&nbsp;
61+
</p>
62+
63+
<h3 align="center">TUI Backer</h3>
64+
65+
<p align="center">
66+
<a href="https://jeffry.in?utm_source=dlvhdr&utm_medium=sponsor&utm_campaign=homepage&utm_content=github" target="_blank" rel="noopener sponsored" ><img src="https://avatars.githubusercontent.com/u/1074042?s=40&u=81cb6e662a6d3254850200c4498ed07e7d59061e&v=4" alt="Jeff Wainwright" width="40"/></a>&nbsp;&nbsp;
67+
<a href="https://www.deel.com?utm_source=dlvhdr&utm_medium=sponsor&utm_campaign=homepage&utm_content=github" target="_blank" rel="noopener sponsored" ><img src="https://avatars.githubusercontent.com/u/321520?s=40&v=4" alt="Pavel Savchenko" width="40"/></a>&nbsp;&nbsp;
68+
<a href="https://purajit.com?utm_source=dlvhdr&utm_medium=sponsor&utm_campaign=homepage&utm_content=github" target="_blank" rel="noopener sponsored" ><img src="https://avatars.githubusercontent.com/u/7026198?s=40&u=5b76b661dba1677a00ae40a83f19c42250b81f5a&v=4" alt="purajit" width="40"/></a>&nbsp;&nbsp;
69+
</p>
70+
71+
<!-- sponsors:end -->
72+
2573
## Installation
2674

2775
Homebrew:
@@ -58,13 +106,13 @@ git config --global pager.diff diffnav
58106

59107
## Flags
60108

61-
| Flag | Description |
62-
| -------------------- | ------------------------------------------------ |
63-
| `--side-by-side, -s` | Force side-by-side diff view |
64-
| `--unified, -u` | Force unified diff view |
65-
| `--watch, -w` | Watch mode: periodically re-run a command and refresh |
109+
| Flag | Description |
110+
| -------------------- | --------------------------------------------------------------------- |
111+
| `--side-by-side, -s` | Force side-by-side diff view |
112+
| `--unified, -u` | Force unified diff view |
113+
| `--watch, -w` | Watch mode: periodically re-run a command and refresh |
66114
| `--watch-cmd` | Command to run in watch mode (implies `--watch`, default: `git diff`) |
67-
| `--watch-interval` | Interval between watch refreshes (default: `2s`) |
115+
| `--watch-interval` | Interval between watch refreshes (default: `2s`) |
68116

69117
Example:
70118

@@ -132,18 +180,18 @@ ui:
132180
startFoldersOpenDepth: 1
133181
```
134182
135-
| Option | Type | Default | Description |
136-
| :------------------- | :----- | :------------------ | :-------------------------------------------------------- |
137-
| `ui.hideHeader` | bool | `false` | Hide the "DIFFNAV" header |
138-
| `ui.hideFooter` | bool | `false` | Hide the footer with keybindings help |
139-
| `ui.showFileTree` | bool | `true` | Show file tree on startup |
140-
| `ui.fileTreeWidth` | int | `26` | Width of the file tree sidebar |
141-
| `ui.searchTreeWidth` | int | `50` | Width of the search panel |
142-
| `ui.icons` | string | `nerd-fonts-status` | Icon style (see below for details) |
143-
| `ui.colorFileNames` | bool | `true` | Color filenames by git status |
144-
| `ui.showDiffStats` | bool | `true` | Show the amount of lines added / removed next to the file |
145-
| `ui.sideBySide` | bool | `true` | Use side-by-side diff view (false for unified) |
146-
| `ui.startFoldersOpenDepth` | int | `-1` | Folder open depth on start (-1 = all, 0 = none) |
183+
| Option | Type | Default | Description |
184+
| :------------------------- | :----- | :------------------ | :-------------------------------------------------------- |
185+
| `ui.hideHeader` | bool | `false` | Hide the "DIFFNAV" header |
186+
| `ui.hideFooter` | bool | `false` | Hide the footer with keybindings help |
187+
| `ui.showFileTree` | bool | `true` | Show file tree on startup |
188+
| `ui.fileTreeWidth` | int | `26` | Width of the file tree sidebar |
189+
| `ui.searchTreeWidth` | int | `50` | Width of the search panel |
190+
| `ui.icons` | string | `nerd-fonts-status` | Icon style (see below for details) |
191+
| `ui.colorFileNames` | bool | `true` | Color filenames by git status |
192+
| `ui.showDiffStats` | bool | `true` | Show the amount of lines added / removed next to the file |
193+
| `ui.sideBySide` | bool | `true` | Use side-by-side diff view (false for unified) |
194+
| `ui.startFoldersOpenDepth` | int | `-1` | Folder open depth on start (-1 = all, 0 = none) |
147195

148196
### Icon Styles
149197

@@ -164,22 +212,22 @@ If you want the exact delta configuration I'm using - [it can be found here](htt
164212

165213
## Keys
166214

167-
| Key | Description |
168-
| :---------------- | :------------------------------- |
169-
| <kbd>j</kbd> | Next node |
170-
| <kbd>k</kbd> | Previous node |
171-
| <kbd>n</kbd> | Next file |
172-
| <kbd>p</kbd> / <kbd>N</kbd> | Previous file |
173-
| <kbd>Ctrl-d</kbd> | Scroll the diff down |
174-
| <kbd>Ctrl-u</kbd> | Scroll the diff up |
175-
| <kbd>e</kbd> | Toggle the file tree |
176-
| <kbd>t</kbd> | Search/go-to file |
177-
| <kbd>y</kbd> | Copy file path |
178-
| <kbd>i</kbd> | Cycle icon style |
179-
| <kbd>o</kbd> | Open file in $EDITOR |
180-
| <kbd>s</kbd> | Toggle side-by-side/unified view |
181-
| <kbd>Tab</kbd> | Switch focus between the panes |
182-
| <kbd>q</kbd> | Quit |
215+
| Key | Description |
216+
| :-------------------------- | :------------------------------- |
217+
| <kbd>j</kbd> | Next node |
218+
| <kbd>k</kbd> | Previous node |
219+
| <kbd>n</kbd> | Next file |
220+
| <kbd>p</kbd> / <kbd>N</kbd> | Previous file |
221+
| <kbd>Ctrl-d</kbd> | Scroll the diff down |
222+
| <kbd>Ctrl-u</kbd> | Scroll the diff up |
223+
| <kbd>e</kbd> | Toggle the file tree |
224+
| <kbd>t</kbd> | Search/go-to file |
225+
| <kbd>y</kbd> | Copy file path |
226+
| <kbd>i</kbd> | Cycle icon style |
227+
| <kbd>o</kbd> | Open file in $EDITOR |
228+
| <kbd>s</kbd> | Toggle side-by-side/unified view |
229+
| <kbd>Tab</kbd> | Switch focus between the panes |
230+
| <kbd>q</kbd> | Quit |
183231

184232
## Discord
185233

Taskfile.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ tasks:
2727
- ./**/*.go
2828
- go.mod
2929

30-
3130
diff:
3231
cmds:
3332
- task: install
@@ -101,3 +100,17 @@ tasks:
101100
- git checkout main
102101
- git tag $(svu next)
103102
- git push --tags
103+
104+
docs-sponsors:
105+
desc: Update OpenCollective and GitHub sponsors list
106+
cmds:
107+
- which sponsors || go install github.com/goreleaser/sponsors@main
108+
- sponsors generate --config gh://dlvhdr/sponsors/sponsors.yml sponsors.json
109+
- sponsors apply sponsors.json gh://dlvhdr/sponsors/readme.tpl.md ./README.md
110+
sources:
111+
- ./README.md
112+
- ./.github/sponsors/sponsors.json
113+
- ./.github/sponsors/sponsors.yml
114+
generates:
115+
- ./README.md
116+
- ./.github/sponsors/sponsors.json

0 commit comments

Comments
 (0)