v0.14.0 815fb98

refs.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>refs · 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">demo</a>
40</li>
41<li>
42<span aria-current="page">refs</span>
43</li>
44</ol>
45</nav>
46<div class="hdr-acts">
47<a class="btn ref" href="/demo/refs" data-fire="refs" aria-keyshortcuts="b" title="switch branch or tag (b)">
48<span class="ico i-branch" aria-hidden="true">
49</span>
50<span class="ref-name">main</span>
51<span class="sha">SHA7</span>
52</a>
53<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">
54<span class="ico i-search" aria-hidden="true">
55</span>
56<span class="search-label">Go to…</span>
57<kbd aria-hidden="true">ctrl k</kbd>
58</button>
59<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>
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">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" aria-current="page">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<main id="main" tabindex="-1">
93<div class="filter">
94<label for="ref-filter" class="sr">filter</label>
95<input id="ref-filter" type="search" data-filter="#ref-rows > tr" placeholder="Filter branches and tags…" autocomplete="off" hx-on:input="ermite.filter(this)">
96</div>
97<table class="list refs" aria-label="Branches and tags">
98<thead>
99<tr>
100<th class="cur">
101</th>
102<th class="c-kind">kind</th>
103<th class="c-name">name</th>
104<th class="c-sha">commit</th>
105<th class="c-sub">subject</th>
106<th class="c-when">date</th>
107</tr>
108</thead>
109<tbody id="ref-rows" data-rows>
110<tr data-cursor>
111<td class="cur" aria-hidden="true">
112</td>
113<td class="c-kind mute">branch</td>
114<td class="c-name">
115<a href="/demo/tree/main">main</a>
116<span class="pill">default</span>
117</td>
118<td class="c-sha">
119<a href="/demo/commit/SHA40">SHA7</a>
120</td>
121<td class="c-sub">add main.go</td>
122<td class="c-when dim">
123<time datetime="STAMP" title="STAMP">AGO</time>
124</td>
125</tr>
126<tr>
127<td class="cur" aria-hidden="true">
128</td>
129<td class="c-kind mute">branch</td>
130<td class="c-name">
131<a href="/demo/tree/feature/x">feature/x</a>
132</td>
133<td class="c-sha">
134<a href="/demo/commit/SHA40">SHA7</a>
135</td>
136<td class="c-sub">work on x</td>
137<td class="c-when dim">
138<time datetime="STAMP" title="STAMP">AGO</time>
139</td>
140</tr>
141<tr>
142<td class="cur" aria-hidden="true">
143</td>
144<td class="c-kind mute">tag</td>
145<td class="c-name">
146<a href="/demo/tree/v0.2.0">v0.2.0</a>
147</td>
148<td class="c-sha">
149<a href="/demo/commit/SHA40">SHA7</a>
150</td>
151<td class="c-sub">add main.go</td>
152<td class="c-when dim">
153<time datetime="STAMP" title="STAMP">AGO</time>
154</td>
155</tr>
156<tr>
157<td class="cur" aria-hidden="true">
158</td>
159<td class="c-kind mute">tag</td>
160<td class="c-name">
161<a href="/demo/tree/v0.1.0">v0.1.0</a>
162</td>
163<td class="c-sha">
164<a href="/demo/commit/SHA40">SHA7</a>
165</td>
166<td class="c-sub">first commit</td>
167<td class="c-when dim">
168<time datetime="STAMP" title="STAMP">AGO</time>
169</td>
170</tr>
171</tbody>
172</table>
173</main>
174<aside class="rail" aria-label="Context">
175<section aria-labelledby="r-refs">
176<h2 id="r-refs">Overview</h2>
177<dl class="kv" id="refs-kv">
178<dt>default</dt>
179<dd>main</dd>
180<dt>branches</dt>
181<dd>2</dd>
182<dt>tags</dt>
183<dd>2</dd>
184<dt>latest tag</dt>
185<dd>v0.2.0</dd>
186</dl>
187</section>
188</aside>
189</div>
190<footer class="foot">
191<span>ermite devel</span>
192<a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a>
193<span class="foot-keys">
194<kbd>?</kbd> keyboard shortcuts</span>
195</footer>
196<div class="hint" role="status" aria-live="polite">
197<span class="hint-nav" :text="document.body.dataset.nav || ''">
198</span>
199<span class="hint-sel" :text="document.body.dataset.sel ? document.body.dataset.sel + ' · y permalink' : ''">
200</span>
201<span class="hint-flash" :text="document.body.dataset.flash || ''">
202</span>
203<span class="hint-live" data-state="connecting" hx-sse:connect="/-/events?topic=repo%3Ademo&amp;view=refs" hx-swap="none" :text="data.state === 'offline' ? 'live updates paused' : ''" hx-on="htmx:sse:after:connection -> data.state = 'live';
204           htmx:sse:close, htmx:sse:error -> data.state = 'offline';
205           htmx:sse:error -> ermiteLive.error(event.detail.status);
206           htmx:sse:before:connection -> ermiteLive.gate(event);
207           home-list, repo-last-push, refs-list, commits-head, mr-notice, ci-run, ci-job -> ermiteLive.swap(event.detail.data);
208           gap -> ermiteLive.reload()">
209</span>
210</div>
211<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()">
212<div class="panel-head">
213<h2>Keyboard shortcuts</h2>
214<button type="button" class="panel-x" aria-label="Close" hx-on:click="closest('dialog').close()">
215<kbd>esc</kbd> close</button>
216</div>
217<dl class="keys">
218<div>
219<dt>
220<kbd>ctrl k</kbd>
221<kbd>:</kbd>
222</dt>
223<dd>go to a section, branch, tag, file or repository</dd>
224</div>
225<div>
226<dt>
227<kbd>?</kbd>
228</dt>
229<dd>this list</dd>
230</div>
231<div>
232<dt>
233<kbd>j</kbd>
234<kbd>k</kbd>
235</dt>
236<dd>move the row cursor down / up</dd>
237</div>
238<div>
239<dt>
240<kbd>enter</kbd>
241</dt>
242<dd>open the row under the cursor</dd>
243</div>
244<div>
245<dt>
246<kbd>g g</kbd>
247<kbd>G</kbd>
248</dt>
249<dd>first / last row</dd>
250</div>
251<div>
252<dt>
253<kbd>/</kbd>
254</dt>
255<dd>filter the list; on Files, find a file in the repository</dd>
256</div>
257<div>
258<dt>
259<kbd>b</kbd>
260</dt>
261<dd>switch branch or tag</dd>
262</div>
263<div>
264<dt>
265<kbd>s</kbd>
266<kbd>t</kbd>
267<kbd>c</kbd>
268<kbd>r</kbd>
269<kbd>m</kbd>
270</dt>
271<dd>tabs: summary, files, commits, branches &amp; tags, merge requests</dd>
272</div>
273<div>
274<dt>
275<kbd>g h</kbd>
276</dt>
277<dd>home</dd>
278</div>
279<div>
280<dt>
281<kbd>y</kbd>
282</dt>
283<dd>copy a permalink pinned to the commit</dd>
284</div>
285<div>
286<dt>
287<kbd>d</kbd>
288<kbd>u</kbd>
289<kbd>x</kbd>
290</dt>
291<dd>diff: split / unified / collapse or expand all</dd>
292</div>
293<div>
294<dt>
295<kbd>n</kbd>
296</dt>
297<dd>merge request: next note in the diff</dd>
298</div>
299<div>
300<dt>
301<kbd>esc</kbd>
302</dt>
303<dd>close a dialog, leave a field</dd>
304</div>
305</dl>
306</dialog>
307<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()">
308<div class="panel-head">
309<label for="refs-filter" class="sr">filter branches and tags</label>
310<input id="refs-filter" type="search" placeholder="Switch branch or tag…" autocomplete="off" data-pick="#panel-refs li" hx-on:input="ermite.filter(this)">
311<button type="button" class="panel-x" aria-label="Close" hx-on:click="closest('dialog').close()">
312<kbd>esc</kbd>
313</button>
314</div>
315<div class="panel-cols" data-picklist>
316<section aria-label="Branches">
317<h2>Branches <span class="count">2</span>
318</h2>
319<ul>
320<li>
321<a href="/demo/tree/feature/x">
322<span class="mark" aria-hidden="true">&nbsp;</span>feature/x</a>
323</li>
324<li>
325<a href="/demo/tree/main" aria-current="true">
326<span class="mark" aria-hidden="true">●</span>main</a>
327</li>
328</ul>
329</section>
330<section aria-label="Tags">
331<h2>Tags <span class="count">2</span>
332</h2>
333<ul>
334<li>
335<a href="/demo/tree/v0.1.0">
336<span class="mark" aria-hidden="true">&nbsp;</span>v0.1.0</a>
337</li>
338<li>
339<a href="/demo/tree/v0.2.0">
340<span class="mark" aria-hidden="true">&nbsp;</span>v0.2.0</a>
341</li>
342</ul>
343</section>
344</div>
345</dialog>
346<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()">
347<div class="panel-head">
348<label for="cmd-q" class="sr">go to</label>
349<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)">
350<button type="button" class="panel-x" aria-label="Close" hx-on:click="closest('dialog').close()">
351<kbd>esc</kbd>
352</button>
353</div>
354<ul id="cmd-list" class="cmd-list" aria-label="Targets">
355<li data-k="go home" data-cursor>
356<a href="/" tabindex="-1">
357<span class="lbl">home</span>
358<span class="k">go</span>
359</a>
360</li>
361<li data-k="section summary">
362<a href="/demo" tabindex="-1">
363<span class="lbl">summary</span>
364<span class="k">section</span>
365</a>
366</li>
367<li data-k="section files">
368<a href="/demo/tree/main" tabindex="-1">
369<span class="lbl">files</span>
370<span class="k">section</span>
371</a>
372</li>
373<li data-k="section commits">
374<a href="/demo/commits/main" tabindex="-1">
375<span class="lbl">commits</span>
376<span class="k">section</span>
377</a>
378</li>
379<li data-k="section branches &amp; tags">
380<a href="/demo/refs" tabindex="-1">
381<span class="lbl">branches &amp; tags</span>
382<span class="k">section</span>
383</a>
384</li>
385<li data-k="section merge requests">
386<a href="/demo/merge-requests" tabindex="-1">
387<span class="lbl">merge requests</span>
388<span class="k">section</span>
389</a>
390</li>
391<li data-k="section actions">
392<a href="/demo/actions" tabindex="-1">
393<span class="lbl">actions</span>
394<span class="k">section</span>
395</a>
396</li>
397<li data-k="branch feature/x">
398<a href="/demo/tree/feature/x" tabindex="-1">
399<span class="lbl">feature/x</span>
400<span class="k">branch</span>
401</a>
402</li>
403<li data-k="branch main">
404<a href="/demo/tree/main" tabindex="-1">
405<span class="lbl">main</span>
406<span class="k">branch</span>
407</a>
408</li>
409<li data-k="tag v0.1.0">
410<a href="/demo/tree/v0.1.0" tabindex="-1">
411<span class="lbl">v0.1.0</span>
412<span class="k">tag</span>
413</a>
414</li>
415<li data-k="tag v0.2.0">
416<a href="/demo/tree/v0.2.0" tabindex="-1">
417<span class="lbl">v0.2.0</span>
418<span class="k">tag</span>
419</a>
420</li>
421<li data-k="repo quiet">
422<a href="/quiet" tabindex="-1">
423<span class="lbl">quiet</span>
424<span class="k">repo</span>
425</a>
426</li>
427</ul>
428<p class="panel-foot">
429<span>
430<kbd>↑</kbd>
431<kbd>↓</kbd> move</span>
432<span>
433<kbd>enter</kbd> open</span>
434<span>
435<kbd>esc</kbd> close</span>
436</p>
437</dialog>
438<div id="keys" hidden hx-on="k-j from:body -> ermite.move(1);
439         k-k from:body -> ermite.move(-1);
440         k-top from:body -> ermite.edge(false);
441         k-bottom from:body -> ermite.edge(true);
442         k-open from:body -> ermite.open();
443         k-esc from:body -> ermite.closeDialogs();
444         k-help from:body -> ermite.dialog('panel-help');
445         k-refs from:body -> ermite.dialog('panel-refs', 'refs-filter');
446         k-cmd from:body -> ermite.dialog('panel-cmd', 'cmd-q'); ermiteFinder.load();
447         k-filter from:body -> ermite.focusFilter();
448         k-gh from:body -> ermite.go('.brand');
449         k-s from:body -> ermite.tab('s');
450         k-t from:body -> ermite.tab('t');
451         k-c from:body -> ermite.tab('c');
452         k-r from:body -> ermite.tab('r');
453         k-m from:body -> ermite.tab('m');
454         k-next from:body -> ermite.nextNote();
455         k-split from:body -> ermite.layout('split');
456         k-unified from:body -> ermite.layout('unified');
457         k-collapse from:body -> ermite.collapse();
458         k-permalink from:body -> ermite.permalink()">
459</div>
460</body>
461</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