v0.14.0 815fb98

summary.html RawHistoryFolder

1<!doctype html>
2<html lang="en">
3<head>
4<meta charset="utf-8">
5<meta name="viewport" content="width=device-width, initial-scale=1">
6<meta name="color-scheme" content="light dark">
7<title>demo · example.test</title>
8<link rel="icon" type="image/svg+xml" href="/-/static/img/icon.HASH.svg">
9<link rel="preload" href="/-/static/fonts/atkinson-next.HASH.woff2" as="font" type="font/woff2" crossorigin>
10<link rel="stylesheet" href="/-/static/css/ermite.HASH.css">
11<meta name="htmx-config" content='{"history":false,"includeIndicatorCSS":false,"extensions":"sse, hx-live"}'>
12<script src="/-/static/js/htmx.min.HASH.js" defer>
13</script>
14<script src="/-/static/js/hx-live.min.HASH.js" defer>
15</script>
16<script src="/-/static/js/hx-sse.min.HASH.js" defer>
17</script>
18<script src="/-/static/js/ermite.HASH.js" defer>
19</script>
20<script src="/-/static/js/files.HASH.js" defer>
21</script>
22<script src="/-/static/js/passkey.HASH.js" defer>
23</script>
24<script src="/-/static/js/log.HASH.js" defer>
25</script>
26</head>
27<body data-ref="main" data-sha="SHA40" data-sel="" data-nav="" data-paths="/demo/paths/SHA40" data-blob="/demo/blob/main">
28<a class="skip" href="#main">skip to content</a>
29<header class="hdr">
30<div class="hdr-top">
31<a class="brand" href="/" data-g="h" title="home (g h)">
32<span class="brand-mark" aria-hidden="true">
33</span>
34<span class="brand-name">example.test</span>
35</a>
36<nav class="crumbs" aria-label="Path">
37<ol>
38<li>
39<a href="/demo" aria-current="page">demo</a>
40</li>
41</ol>
42</nav>
43<div class="hdr-acts">
44<a class="btn ref" href="/demo/refs" data-fire="refs" aria-keyshortcuts="b" title="switch branch or tag (b)">
45<span class="ico i-branch" aria-hidden="true">
46</span>
47<span class="ref-name">main</span>
48<span class="sha">SHA7</span>
49</a>
50<button type="button" class="btn search" data-js aria-haspopup="dialog" aria-controls="panel-cmd" aria-keyshortcuts="Control+K :" title="go to a section, ref, file or repo (ctrl k or :)" data-fire="cmd">
51<span class="ico i-search" aria-hidden="true">
52</span>
53<span class="search-label">Go to…</span>
54<kbd aria-hidden="true">ctrl k</kbd>
55</button>
56<button type="button" class="btn icon" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?" aria-label="Keyboard shortcuts" title="keyboard shortcuts (?)">?</button>
57</div>
58</div>
59<nav class="tabs" aria-label="Sections">
60<ul>
61<li>
62<a href="/demo" data-key="s" aria-keyshortcuts="s" aria-current="page">Summary<kbd aria-hidden="true">s</kbd>
63</a>
64</li>
65<li>
66<a href="/demo/tree/main" data-key="t" aria-keyshortcuts="t">Files<kbd aria-hidden="true">t</kbd>
67</a>
68</li>
69<li>
70<a href="/demo/commits/main" data-key="c" aria-keyshortcuts="c">Commits<kbd aria-hidden="true">c</kbd>
71</a>
72</li>
73<li>
74<a href="/demo/refs" data-key="r" aria-keyshortcuts="r">Branches &amp; tags<kbd aria-hidden="true">r</kbd>
75</a>
76</li>
77<li>
78<a href="/demo/merge-requests" data-key="m" aria-keyshortcuts="m">Merge requests<kbd aria-hidden="true">m</kbd>
79</a>
80</li>
81<li>
82<a href="/demo/actions" data-key="a" aria-keyshortcuts="a">Actions<kbd aria-hidden="true">a</kbd>
83</a>
84</li>
85</ul>
86</nav>
87</header>
88<div class="work has-rail">
89<section class="work-lede" aria-label="Description">
90<p class="lede">A demo repository</p>
91</section>
92<main id="main" tabindex="-1">
93<section class="card readme" aria-labelledby="readme-h">
94<h2 class="card-h" id="readme-h">
95<span class="ico i-file" aria-hidden="true">
96</span> README.md</h2>
97<article class="prose" aria-label="README.md" hx-ignore>
98<h1 id="md-demo">Demo</h1>
99<p>A small <em>demo</em> with a <a href="/demo/blob/main/docs/guide.md">guide</a> and <a href="https://example.org/x" rel="nofollow noopener noreferrer">the site</a>.</p>
100<h2 id="md-install">Install</h2>
101<pre>
102<code class="language-sh">go install example.org/demo@latest
103</code>
104</pre>
105<h2 id="md-usage">Usage</h2>
106<table>
107<thead>
108<tr>
109<th>a</th>
110<th align="right">b</th>
111</tr>
112</thead>
113<tbody>
114<tr>
115<td>1</td>
116<td align="right">2</td>
117</tr>
118</tbody>
119</table>
120</article>
121</section>
122</main>
123<aside class="rail" aria-label="Context">
124<section aria-labelledby="r-clone">
125<h2 id="r-clone">Clone</h2>
126<div class="clone" id="clone-demo">
127<div class="clone-line">
128<span class="mute" aria-hidden="true">$ </span>
129<code>git clone http://example.test/demo.git</code>
130<button type="button" class="btn copy" data-js data-label="Copy" aria-label="copy: git clone http://example.test/demo.git" hx-on:click="ermite.copy(this)">Copy</button>
131</div>
132</div>
133</section>
134<section aria-labelledby="r-facts">
135<h2 id="r-facts">About</h2>
136<dl class="kv">
137<dt>last push</dt>
138<dd id="last-push-demo">
139<time datetime="STAMP">AGO · STAMP</time>
140</dd>
141<dt>branch</dt>
142<dd>main · 2 branches</dd>
143<dt>created</dt>
144<dd>
145<time datetime="STAMP">STAMP</time>
146</dd>
147</dl>
148</section>
149<section aria-labelledby="r-tag">
150<h2 id="r-tag">Tags <span class="count">2</span>
151<a href="/demo/refs">View all</a>
152</h2>
153<div class="latest-tag">
154<a class="tag-name" href="/demo/tree/v0.2.0">
155<span class="ico i-tag" aria-hidden="true">
156</span>v0.2.0</a>
157<span class="pill">latest</span>
158<time class="dim" datetime="STAMP" title="STAMP">AGO</time>
159<p class="tag-sub dim">add main.go</p>
160</div>
161</section>
162<section aria-labelledby="r-recent">
163<h2 id="r-recent">Recent commits <a href="/demo/commits/main">View all</a>
164</h2>
165<table class="list commits" aria-label="Commits">
166<tbody data-rows>
167<tr data-cursor>
168<td class="cur" aria-hidden="true">
169</td>
170<td class="c-sha mute">SHA7</td>
171<td class="c-subject">
172<a href="/demo/commit/SHA40">add main.go</a>
173<span class="pill">main</span>
174<span class="pill tag">
175<span class="sr">tag </span>v0.2.0</span>
176</td>
177<td class="c-ck">
178</td>
179<td class="c-who dim">T</td>
180<td class="c-when nowrap dim">
181<time datetime="STAMP" title="STAMP">AGO</time>
182</td>
183</tr>
184<tr>
185<td class="cur" aria-hidden="true">
186</td>
187<td class="c-sha mute">SHA7</td>
188<td class="c-subject">
189<a href="/demo/commit/SHA40">first commit</a>
190<span class="pill tag">
191<span class="sr">tag </span>v0.1.0</span>
192</td>
193<td class="c-ck">
194</td>
195<td class="c-who dim">T</td>
196<td class="c-when nowrap dim">
197<time datetime="STAMP" title="STAMP">AGO</time>
198</td>
199</tr>
200</tbody>
201</table>
202</section>
203<section id="recent-actions" aria-labelledby="r-actions" hidden>
204<h2 id="r-actions">Recent actions <a href="/demo/actions">View all</a>
205</h2>
206<ul class="rruns">
207</ul>
208</section>
209<section aria-labelledby="r-outline">
210<h2 id="r-outline">On this page</h2>
211<nav class="outline" aria-label="Outline">
212<a class="l1" href="#md-demo">Demo</a>
213<a class="l2" href="#md-install">Install</a>
214<a class="l2" href="#md-usage">Usage</a>
215</nav>
216</section>
217</aside>
218</div>
219<footer class="foot">
220<span>ermite devel</span>
221<a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a>
222<span class="foot-keys">
223<kbd>?</kbd> keyboard shortcuts</span>
224</footer>
225<div class="hint" role="status" aria-live="polite">
226<span class="hint-nav" :text="document.body.dataset.nav || ''">
227</span>
228<span class="hint-sel" :text="document.body.dataset.sel ? document.body.dataset.sel + ' · y permalink' : ''">
229</span>
230<span class="hint-flash" :text="document.body.dataset.flash || ''">
231</span>
232<span class="hint-live" data-state="connecting" hx-sse:connect="/-/events?topic=repo%3Ademo&amp;view=summary" hx-swap="none" :text="data.state === 'offline' ? 'live updates paused' : ''" hx-on="htmx:sse:after:connection -> data.state = 'live';
233           htmx:sse:close, htmx:sse:error -> data.state = 'offline';
234           htmx:sse:error -> ermiteLive.error(event.detail.status);
235           htmx:sse:before:connection -> ermiteLive.gate(event);
236           home-list, repo-last-push, refs-list, commits-head, mr-notice, ci-run, ci-job -> ermiteLive.swap(event.detail.data);
237           gap -> ermiteLive.reload()">
238</span>
239</div>
240<dialog id="panel-help" class="panel modal" aria-label="Keyboard shortcuts" hx-on:keydown="event.key === 'Escape' && (event.preventDefault(), this.close())" hx-on:click="event.target === this && this.close()">
241<div class="panel-head">
242<h2>Keyboard shortcuts</h2>
243<button type="button" class="panel-x" aria-label="Close" hx-on:click="closest('dialog').close()">
244<kbd>esc</kbd> close</button>
245</div>
246<dl class="keys">
247<div>
248<dt>
249<kbd>ctrl k</kbd>
250<kbd>:</kbd>
251</dt>
252<dd>go to a section, branch, tag, file or repository</dd>
253</div>
254<div>
255<dt>
256<kbd>?</kbd>
257</dt>
258<dd>this list</dd>
259</div>
260<div>
261<dt>
262<kbd>j</kbd>
263<kbd>k</kbd>
264</dt>
265<dd>move the row cursor down / up</dd>
266</div>
267<div>
268<dt>
269<kbd>enter</kbd>
270</dt>
271<dd>open the row under the cursor</dd>
272</div>
273<div>
274<dt>
275<kbd>g g</kbd>
276<kbd>G</kbd>
277</dt>
278<dd>first / last row</dd>
279</div>
280<div>
281<dt>
282<kbd>/</kbd>
283</dt>
284<dd>filter the list; on Files, find a file in the repository</dd>
285</div>
286<div>
287<dt>
288<kbd>b</kbd>
289</dt>
290<dd>switch branch or tag</dd>
291</div>
292<div>
293<dt>
294<kbd>s</kbd>
295<kbd>t</kbd>
296<kbd>c</kbd>
297<kbd>r</kbd>
298<kbd>m</kbd>
299</dt>
300<dd>tabs: summary, files, commits, branches &amp; tags, merge requests</dd>
301</div>
302<div>
303<dt>
304<kbd>g h</kbd>
305</dt>
306<dd>home</dd>
307</div>
308<div>
309<dt>
310<kbd>y</kbd>
311</dt>
312<dd>copy a permalink pinned to the commit</dd>
313</div>
314<div>
315<dt>
316<kbd>d</kbd>
317<kbd>u</kbd>
318<kbd>x</kbd>
319</dt>
320<dd>diff: split / unified / collapse or expand all</dd>
321</div>
322<div>
323<dt>
324<kbd>n</kbd>
325</dt>
326<dd>merge request: next note in the diff</dd>
327</div>
328<div>
329<dt>
330<kbd>esc</kbd>
331</dt>
332<dd>close a dialog, leave a field</dd>
333</div>
334</dl>
335</dialog>
336<dialog id="panel-refs" class="panel modal" aria-label="Switch ref" hx-on:keydown="event.key === 'Escape' && (event.preventDefault(), this.close())" hx-on:click="event.target === this && this.close()">
337<div class="panel-head">
338<label for="refs-filter" class="sr">filter branches and tags</label>
339<input id="refs-filter" type="search" placeholder="Switch branch or tag…" autocomplete="off" data-pick="#panel-refs li" hx-on:input="ermite.filter(this)">
340<button type="button" class="panel-x" aria-label="Close" hx-on:click="closest('dialog').close()">
341<kbd>esc</kbd>
342</button>
343</div>
344<div class="panel-cols" data-picklist>
345<section aria-label="Branches">
346<h2>Branches <span class="count">2</span>
347</h2>
348<ul>
349<li>
350<a href="/demo/tree/feature/x">
351<span class="mark" aria-hidden="true">&nbsp;</span>feature/x</a>
352</li>
353<li>
354<a href="/demo/tree/main" aria-current="true">
355<span class="mark" aria-hidden="true">●</span>main</a>
356</li>
357</ul>
358</section>
359<section aria-label="Tags">
360<h2>Tags <span class="count">2</span>
361</h2>
362<ul>
363<li>
364<a href="/demo/tree/v0.1.0">
365<span class="mark" aria-hidden="true">&nbsp;</span>v0.1.0</a>
366</li>
367<li>
368<a href="/demo/tree/v0.2.0">
369<span class="mark" aria-hidden="true">&nbsp;</span>v0.2.0</a>
370</li>
371</ul>
372</section>
373</div>
374</dialog>
375<dialog id="panel-cmd" class="panel modal" aria-label="Go to" hx-on:close="ermiteFinder.paletteClose()" hx-on:keydown="event.key === 'Escape' && (event.preventDefault(), this.close())" hx-on:click="event.target === this && this.close()">
376<div class="panel-head">
377<label for="cmd-q" class="sr">go to</label>
378<input id="cmd-q" type="search" placeholder="Go to a section, branch, tag, file or repository…" autocomplete="off" spellcheck="false" aria-controls="cmd-list" hx-on:input="ermite.cmdFilter(this); ermiteFinder.palette(this)" hx-on:keydown="ermite.cmdKey(event)">
379<button type="button" class="panel-x" aria-label="Close" hx-on:click="closest('dialog').close()">
380<kbd>esc</kbd>
381</button>
382</div>
383<ul id="cmd-list" class="cmd-list" aria-label="Targets">
384<li data-k="go home" data-cursor>
385<a href="/" tabindex="-1">
386<span class="lbl">home</span>
387<span class="k">go</span>
388</a>
389</li>
390<li data-k="section summary">
391<a href="/demo" tabindex="-1">
392<span class="lbl">summary</span>
393<span class="k">section</span>
394</a>
395</li>
396<li data-k="section files">
397<a href="/demo/tree/main" tabindex="-1">
398<span class="lbl">files</span>
399<span class="k">section</span>
400</a>
401</li>
402<li data-k="section commits">
403<a href="/demo/commits/main" tabindex="-1">
404<span class="lbl">commits</span>
405<span class="k">section</span>
406</a>
407</li>
408<li data-k="section branches &amp; tags">
409<a href="/demo/refs" tabindex="-1">
410<span class="lbl">branches &amp; tags</span>
411<span class="k">section</span>
412</a>
413</li>
414<li data-k="section merge requests">
415<a href="/demo/merge-requests" tabindex="-1">
416<span class="lbl">merge requests</span>
417<span class="k">section</span>
418</a>
419</li>
420<li data-k="section actions">
421<a href="/demo/actions" tabindex="-1">
422<span class="lbl">actions</span>
423<span class="k">section</span>
424</a>
425</li>
426<li data-k="branch feature/x">
427<a href="/demo/tree/feature/x" tabindex="-1">
428<span class="lbl">feature/x</span>
429<span class="k">branch</span>
430</a>
431</li>
432<li data-k="branch main">
433<a href="/demo/tree/main" tabindex="-1">
434<span class="lbl">main</span>
435<span class="k">branch</span>
436</a>
437</li>
438<li data-k="tag v0.1.0">
439<a href="/demo/tree/v0.1.0" tabindex="-1">
440<span class="lbl">v0.1.0</span>
441<span class="k">tag</span>
442</a>
443</li>
444<li data-k="tag v0.2.0">
445<a href="/demo/tree/v0.2.0" tabindex="-1">
446<span class="lbl">v0.2.0</span>
447<span class="k">tag</span>
448</a>
449</li>
450<li data-k="repo quiet">
451<a href="/quiet" tabindex="-1">
452<span class="lbl">quiet</span>
453<span class="k">repo</span>
454</a>
455</li>
456</ul>
457<p class="panel-foot">
458<span>
459<kbd>↑</kbd>
460<kbd>↓</kbd> move</span>
461<span>
462<kbd>enter</kbd> open</span>
463<span>
464<kbd>esc</kbd> close</span>
465</p>
466</dialog>
467<div id="keys" hidden hx-on="k-j from:body -> ermite.move(1);
468         k-k from:body -> ermite.move(-1);
469         k-top from:body -> ermite.edge(false);
470         k-bottom from:body -> ermite.edge(true);
471         k-open from:body -> ermite.open();
472         k-esc from:body -> ermite.closeDialogs();
473         k-help from:body -> ermite.dialog('panel-help');
474         k-refs from:body -> ermite.dialog('panel-refs', 'refs-filter');
475         k-cmd from:body -> ermite.dialog('panel-cmd', 'cmd-q'); ermiteFinder.load();
476         k-filter from:body -> ermite.focusFilter();
477         k-gh from:body -> ermite.go('.brand');
478         k-s from:body -> ermite.tab('s');
479         k-t from:body -> ermite.tab('t');
480         k-c from:body -> ermite.tab('c');
481         k-r from:body -> ermite.tab('r');
482         k-m from:body -> ermite.tab('m');
483         k-next from:body -> ermite.nextNote();
484         k-split from:body -> ermite.layout('split');
485         k-unified from:body -> ermite.layout('unified');
486         k-collapse from:body -> ermite.collapse();
487         k-permalink from:body -> ermite.permalink()">
488</div>
489</body>
490</html>

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 2

Tags 45

↑↓ moveenter openesc close