v0.23.0 333c710

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