v0.11.0 0633e44

tree-root.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>tree · files · 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="/files/paths/SHA40" data-blob="/files/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="/files">files</a>
40</li>
41<li>
42<a href="/files/tree/main">tree</a>
43</li>
44<li>
45<a href="/files/tree/main" aria-current="page">main</a>
46</li>
47</ol>
48</nav>
49<div class="hdr-acts">
50<a class="btn ref" href="/files/refs" data-fire="refs" aria-keyshortcuts="b" title="switch branch or tag (b)">
51<span class="ico i-branch" aria-hidden="true">
52</span>
53<span class="ref-name">main</span>
54<span class="sha">SHA7</span>
55</a>
56<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">
57<span class="ico i-search" aria-hidden="true">
58</span>
59<span class="search-label">Go to…</span>
60<kbd aria-hidden="true">ctrl k</kbd>
61</button>
62<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>
63</div>
64</div>
65<nav class="tabs" aria-label="Sections">
66<ul>
67<li>
68<a href="/files" data-key="s" aria-keyshortcuts="s">Summary<kbd aria-hidden="true">s</kbd>
69</a>
70</li>
71<li>
72<a href="/files/tree/main" data-key="t" aria-keyshortcuts="t" aria-current="page">Files<kbd aria-hidden="true">t</kbd>
73</a>
74</li>
75<li>
76<a href="/files/commits/main" data-key="c" aria-keyshortcuts="c">Commits<kbd aria-hidden="true">c</kbd>
77</a>
78</li>
79<li>
80<a href="/files/refs" data-key="r" aria-keyshortcuts="r">Branches &amp; tags<kbd aria-hidden="true">r</kbd>
81</a>
82</li>
83<li>
84<a href="/files/merge-requests" data-key="m" aria-keyshortcuts="m">Merge requests<kbd aria-hidden="true">m</kbd>
85</a>
86</li>
87<li>
88<a href="/files/actions" data-key="a" aria-keyshortcuts="a">Actions<kbd aria-hidden="true">a</kbd>
89</a>
90</li>
91</ul>
92</nav>
93</header>
94<div class="work">
95<main id="main" tabindex="-1">
96<div class="filter">
97<label for="finder-q" class="sr">find a file</label>
98<input id="finder-q" type="search" data-filter role="combobox" aria-autocomplete="list" aria-controls="finder-list" aria-expanded="false" placeholder="Find a file…" autocomplete="off" spellcheck="false" hx-on:focus="ermiteFinder.load()" hx-on:input="ermiteFinder.input(this)" hx-on:keydown="ermiteFinder.key(this, event)">
99</div>
100<div id="finder" hidden>
101<p id="finder-status" class="dim" aria-live="polite">
102</p>
103<ul id="finder-list" class="cmd-list" role="listbox" aria-label="Files">
104</ul>
105</div>
106<div id="tree-view">
107<table class="list tree" aria-label="Entries">
108<thead>
109<tr>
110<th class="cur">
111</th>
112<th class="c-kind">
113</th>
114<th class="c-name">name</th>
115<th class="c-size">size</th>
116<th class="c-sub">last commit</th>
117<th class="c-who">author</th>
118<th class="c-when">date</th>
119</tr>
120</thead>
121<tbody id="tree-rows" data-rows hx-on:click="ermiteTree.click(event)">
122<tr data-cursor>
123<td class="cur" aria-hidden="true">
124</td>
125<td class="c-kind" aria-hidden="true">▸</td>
126<td class="c-name">
127<a href="/files/tree/main/docs" data-expand="/files/tree/main/docs?rows" aria-expanded="false">docs/</a>
128</td>
129<td class="c-size num dim">-</td>
130<td class="c-sub dim">
131<a href="/files/commit/SHA40">add docs/guide.md</a>
132</td>
133<td class="c-who dim">T</td>
134<td class="c-when nowrap dim">
135<time datetime="STAMP" title="STAMP">AGO</time>
136</td>
137</tr>
138<tr>
139<td class="cur" aria-hidden="true">
140</td>
141<td class="c-kind" aria-hidden="true">▸</td>
142<td class="c-name">
143<a href="/files/tree/main/src" data-expand="/files/tree/main/src?rows" aria-expanded="false">src/</a>
144</td>
145<td class="c-size num dim">-</td>
146<td class="c-sub dim">
147<a href="/files/commit/SHA40">add src/lib/util.go</a>
148</td>
149<td class="c-who dim">T</td>
150<td class="c-when nowrap dim">
151<time datetime="STAMP" title="STAMP">AGO</time>
152</td>
153</tr>
154<tr>
155<td class="cur" aria-hidden="true">
156</td>
157<td class="c-kind" aria-hidden="true">·</td>
158<td class="c-name">
159<a href="/files/blob/main/README.md">README.md</a>
160</td>
161<td class="c-size num dim">41 B</td>
162<td class="c-sub dim">
163<a href="/files/commit/SHA40">add README.md</a>
164</td>
165<td class="c-who dim">T</td>
166<td class="c-when nowrap dim">
167<time datetime="STAMP" title="STAMP">AGO</time>
168</td>
169</tr>
170<tr>
171<td class="cur" aria-hidden="true">
172</td>
173<td class="c-kind" aria-hidden="true">·</td>
174<td class="c-name">
175<a href="/files/blob/main/big.txt">big.txt</a>
176</td>
177<td class="c-size num dim">1.1 MiB</td>
178<td class="c-sub dim">
179<a href="/files/commit/SHA40">add big.txt</a>
180</td>
181<td class="c-who dim">T</td>
182<td class="c-when nowrap dim">
183<time datetime="STAMP" title="STAMP">AGO</time>
184</td>
185</tr>
186<tr>
187<td class="cur" aria-hidden="true">
188</td>
189<td class="c-kind" aria-hidden="true">·</td>
190<td class="c-name">
191<a href="/files/blob/main/data.bin">data.bin</a>
192</td>
193<td class="c-size num dim">10 B</td>
194<td class="c-sub dim">
195<a href="/files/commit/SHA40">add data.bin</a>
196</td>
197<td class="c-who dim">T</td>
198<td class="c-when nowrap dim">
199<time datetime="STAMP" title="STAMP">AGO</time>
200</td>
201</tr>
202<tr>
203<td class="cur" aria-hidden="true">
204</td>
205<td class="c-kind" aria-hidden="true">·</td>
206<td class="c-name">
207<a href="/files/blob/main/empty.txt">empty.txt</a>
208</td>
209<td class="c-size num dim">0 B</td>
210<td class="c-sub dim">
211<a href="/files/commit/SHA40">add empty.txt</a>
212</td>
213<td class="c-who dim">T</td>
214<td class="c-when nowrap dim">
215<time datetime="STAMP" title="STAMP">AGO</time>
216</td>
217</tr>
218<tr>
219<td class="cur" aria-hidden="true">
220</td>
221<td class="c-kind" aria-hidden="true">·</td>
222<td class="c-name">
223<a href="/files/blob/main/evil.go">evil.go</a>
224</td>
225<td class="c-size num dim">87 B</td>
226<td class="c-sub dim">
227<a href="/files/commit/SHA40">add evil.go</a>
228</td>
229<td class="c-who dim">T</td>
230<td class="c-when nowrap dim">
231<time datetime="STAMP" title="STAMP">AGO</time>
232</td>
233</tr>
234<tr>
235<td class="cur" aria-hidden="true">
236</td>
237<td class="c-kind" aria-hidden="true">·</td>
238<td class="c-name">
239<a href="/files/blob/main/fake.jpg">fake.jpg</a>
240</td>
241<td class="c-size num dim">15 B</td>
242<td class="c-sub dim">
243<a href="/files/commit/SHA40">add fake.jpg</a>
244</td>
245<td class="c-who dim">T</td>
246<td class="c-when nowrap dim">
247<time datetime="STAMP" title="STAMP">AGO</time>
248</td>
249</tr>
250<tr>
251<td class="cur" aria-hidden="true">
252</td>
253<td class="c-kind" aria-hidden="true">·</td>
254<td class="c-name">
255<a href="/files/blob/main/fake.png">fake.png</a>
256</td>
257<td class="c-size num dim">39 B</td>
258<td class="c-sub dim">
259<a href="/files/commit/SHA40">add fake.png</a>
260</td>
261<td class="c-who dim">T</td>
262<td class="c-when nowrap dim">
263<time datetime="STAMP" title="STAMP">AGO</time>
264</td>
265</tr>
266<tr>
267<td class="cur" aria-hidden="true">
268</td>
269<td class="c-kind" aria-hidden="true">·</td>
270<td class="c-name">
271<a href="/files/blob/main/lines.txt">lines.txt</a>
272</td>
273<td class="c-size num dim">39.1 KiB</td>
274<td class="c-sub dim">
275<a href="/files/commit/SHA40">add lines.txt</a>
276</td>
277<td class="c-who dim">T</td>
278<td class="c-when nowrap dim">
279<time datetime="STAMP" title="STAMP">AGO</time>
280</td>
281</tr>
282<tr>
283<td class="cur" aria-hidden="true">
284</td>
285<td class="c-kind" aria-hidden="true">·</td>
286<td class="c-name">
287<a href="/files/blob/main/logo.svg">logo.svg</a>
288</td>
289<td class="c-size num dim">89 B</td>
290<td class="c-sub dim">
291<a href="/files/commit/SHA40">add logo.svg</a>
292</td>
293<td class="c-who dim">T</td>
294<td class="c-when nowrap dim">
295<time datetime="STAMP" title="STAMP">AGO</time>
296</td>
297</tr>
298<tr>
299<td class="cur" aria-hidden="true">
300</td>
301<td class="c-kind" aria-hidden="true">·</td>
302<td class="c-name">
303<a href="/files/blob/main/main.go">main.go</a>
304</td>
305<td class="c-size num dim">87 B</td>
306<td class="c-sub dim">
307<a href="/files/commit/SHA40">add main.go</a>
308</td>
309<td class="c-who dim">T</td>
310<td class="c-when nowrap dim">
311<time datetime="STAMP" title="STAMP">AGO</time>
312</td>
313</tr>
314<tr>
315<td class="cur" aria-hidden="true">
316</td>
317<td class="c-kind" aria-hidden="true">·</td>
318<td class="c-name">
319<a href="/files/blob/main/notes.txt">notes.txt</a>
320</td>
321<td class="c-size num dim">24 B</td>
322<td class="c-sub dim">
323<a href="/files/commit/SHA40">add notes.txt</a>
324</td>
325<td class="c-who dim">T</td>
326<td class="c-when nowrap dim">
327<time datetime="STAMP" title="STAMP">AGO</time>
328</td>
329</tr>
330<tr>
331<td class="cur" aria-hidden="true">
332</td>
333<td class="c-kind" aria-hidden="true">·</td>
334<td class="c-name">
335<a href="/files/blob/main/page.html">page.html</a>
336</td>
337<td class="c-size num dim">26 B</td>
338<td class="c-sub dim">
339<a href="/files/commit/SHA40">add page.html</a>
340</td>
341<td class="c-who dim">T</td>
342<td class="c-when nowrap dim">
343<time datetime="STAMP" title="STAMP">AGO</time>
344</td>
345</tr>
346<tr>
347<td class="cur" aria-hidden="true">
348</td>
349<td class="c-kind" aria-hidden="true">·</td>
350<td class="c-name">
351<a href="/files/blob/main/pic.png">pic.png</a>
352</td>
353<td class="c-size num dim">88 B</td>
354<td class="c-sub dim">
355<a href="/files/commit/SHA40">add pic.png</a>
356</td>
357<td class="c-who dim">T</td>
358<td class="c-when nowrap dim">
359<time datetime="STAMP" title="STAMP">AGO</time>
360</td>
361</tr>
362</tbody>
363</table>
364<section class="card readme" aria-labelledby="readme-h">
365<h2 class="card-h" id="readme-h">
366<span class="ico i-file" aria-hidden="true">
367</span> README.md</h2>
368<article class="prose" aria-label="README.md" hx-ignore>
369<h1 id="md-files">Files</h1>
370<p>See <a href="/files/blob/main/docs/guide.md">the guide</a>.</p>
371</article>
372</section>
373</div>
374</main>
375</div>
376<footer class="foot">
377<span>ermite devel</span>
378<a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a>
379<span class="foot-keys">
380<kbd>?</kbd> keyboard shortcuts</span>
381</footer>
382<div class="hint" role="status" aria-live="polite">
383<span class="hint-nav" :text="document.body.dataset.nav || ''">
384</span>
385<span class="hint-sel" :text="document.body.dataset.sel ? document.body.dataset.sel + ' · y permalink' : ''">
386</span>
387<span class="hint-flash" :text="document.body.dataset.flash || ''">
388</span>
389</div>
390<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()">
391<div class="panel-head">
392<h2>Keyboard shortcuts</h2>
393<button type="button" class="panel-x" aria-label="Close" hx-on:click="closest('dialog').close()">
394<kbd>esc</kbd> close</button>
395</div>
396<dl class="keys">
397<div>
398<dt>
399<kbd>ctrl k</kbd>
400<kbd>:</kbd>
401</dt>
402<dd>go to a section, branch, tag, file or repository</dd>
403</div>
404<div>
405<dt>
406<kbd>?</kbd>
407</dt>
408<dd>this list</dd>
409</div>
410<div>
411<dt>
412<kbd>j</kbd>
413<kbd>k</kbd>
414</dt>
415<dd>move the row cursor down / up</dd>
416</div>
417<div>
418<dt>
419<kbd>enter</kbd>
420</dt>
421<dd>open the row under the cursor</dd>
422</div>
423<div>
424<dt>
425<kbd>g g</kbd>
426<kbd>G</kbd>
427</dt>
428<dd>first / last row</dd>
429</div>
430<div>
431<dt>
432<kbd>/</kbd>
433</dt>
434<dd>filter the list; on Files, find a file in the repository</dd>
435</div>
436<div>
437<dt>
438<kbd>b</kbd>
439</dt>
440<dd>switch branch or tag</dd>
441</div>
442<div>
443<dt>
444<kbd>s</kbd>
445<kbd>t</kbd>
446<kbd>c</kbd>
447<kbd>r</kbd>
448<kbd>m</kbd>
449</dt>
450<dd>tabs: summary, files, commits, branches &amp; tags, merge requests</dd>
451</div>
452<div>
453<dt>
454<kbd>g h</kbd>
455</dt>
456<dd>home</dd>
457</div>
458<div>
459<dt>
460<kbd>y</kbd>
461</dt>
462<dd>copy a permalink pinned to the commit</dd>
463</div>
464<div>
465<dt>
466<kbd>d</kbd>
467<kbd>u</kbd>
468<kbd>x</kbd>
469</dt>
470<dd>diff: split / unified / collapse or expand all</dd>
471</div>
472<div>
473<dt>
474<kbd>n</kbd>
475</dt>
476<dd>merge request: next note in the diff</dd>
477</div>
478<div>
479<dt>
480<kbd>esc</kbd>
481</dt>
482<dd>close a dialog, leave a field</dd>
483</div>
484</dl>
485</dialog>
486<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()">
487<div class="panel-head">
488<label for="refs-filter" class="sr">filter branches and tags</label>
489<input id="refs-filter" type="search" placeholder="Switch branch or tag…" autocomplete="off" data-pick="#panel-refs li" hx-on:input="ermite.filter(this)">
490<button type="button" class="panel-x" aria-label="Close" hx-on:click="closest('dialog').close()">
491<kbd>esc</kbd>
492</button>
493</div>
494<div class="panel-cols" data-picklist>
495<section aria-label="Branches">
496<h2>Branches <span class="count">2</span>
497</h2>
498<ul>
499<li>
500<a href="/files/tree/feature/x">
501<span class="mark" aria-hidden="true">&nbsp;</span>feature/x</a>
502</li>
503<li>
504<a href="/files/tree/main" aria-current="true">
505<span class="mark" aria-hidden="true">●</span>main</a>
506</li>
507</ul>
508</section>
509<section aria-label="Tags">
510<h2>Tags <span class="count">1</span>
511</h2>
512<ul>
513<li>
514<a href="/files/tree/v1.0">
515<span class="mark" aria-hidden="true">&nbsp;</span>v1.0</a>
516</li>
517</ul>
518</section>
519</div>
520</dialog>
521<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()">
522<div class="panel-head">
523<label for="cmd-q" class="sr">go to</label>
524<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)">
525<button type="button" class="panel-x" aria-label="Close" hx-on:click="closest('dialog').close()">
526<kbd>esc</kbd>
527</button>
528</div>
529<ul id="cmd-list" class="cmd-list" aria-label="Targets">
530<li data-k="go home" data-cursor>
531<a href="/" tabindex="-1">
532<span class="lbl">home</span>
533<span class="k">go</span>
534</a>
535</li>
536<li data-k="section summary">
537<a href="/files" tabindex="-1">
538<span class="lbl">summary</span>
539<span class="k">section</span>
540</a>
541</li>
542<li data-k="section files">
543<a href="/files/tree/main" tabindex="-1">
544<span class="lbl">files</span>
545<span class="k">section</span>
546</a>
547</li>
548<li data-k="section commits">
549<a href="/files/commits/main" tabindex="-1">
550<span class="lbl">commits</span>
551<span class="k">section</span>
552</a>
553</li>
554<li data-k="section branches &amp; tags">
555<a href="/files/refs" tabindex="-1">
556<span class="lbl">branches &amp; tags</span>
557<span class="k">section</span>
558</a>
559</li>
560<li data-k="section merge requests">
561<a href="/files/merge-requests" tabindex="-1">
562<span class="lbl">merge requests</span>
563<span class="k">section</span>
564</a>
565</li>
566<li data-k="section actions">
567<a href="/files/actions" tabindex="-1">
568<span class="lbl">actions</span>
569<span class="k">section</span>
570</a>
571</li>
572<li data-k="branch feature/x">
573<a href="/files/tree/feature/x" tabindex="-1">
574<span class="lbl">feature/x</span>
575<span class="k">branch</span>
576</a>
577</li>
578<li data-k="branch main">
579<a href="/files/tree/main" tabindex="-1">
580<span class="lbl">main</span>
581<span class="k">branch</span>
582</a>
583</li>
584<li data-k="tag v1.0">
585<a href="/files/tree/v1.0" tabindex="-1">
586<span class="lbl">v1.0</span>
587<span class="k">tag</span>
588</a>
589</li>
590</ul>
591<p class="panel-foot">
592<span>
593<kbd>↑</kbd>
594<kbd>↓</kbd> move</span>
595<span>
596<kbd>enter</kbd> open</span>
597<span>
598<kbd>esc</kbd> close</span>
599</p>
600</dialog>
601<div id="keys" hidden hx-on="k-j from:body -> ermite.move(1);
602         k-k from:body -> ermite.move(-1);
603         k-top from:body -> ermite.edge(false);
604         k-bottom from:body -> ermite.edge(true);
605         k-open from:body -> ermite.open();
606         k-esc from:body -> ermite.closeDialogs();
607         k-help from:body -> ermite.dialog('panel-help');
608         k-refs from:body -> ermite.dialog('panel-refs', 'refs-filter');
609         k-cmd from:body -> ermite.dialog('panel-cmd', 'cmd-q'); ermiteFinder.load();
610         k-filter from:body -> ermite.focusFilter();
611         k-gh from:body -> ermite.go('.brand');
612         k-s from:body -> ermite.tab('s');
613         k-t from:body -> ermite.tab('t');
614         k-c from:body -> ermite.tab('c');
615         k-r from:body -> ermite.tab('r');
616         k-m from:body -> ermite.tab('m');
617         k-next from:body -> ermite.nextNote();
618         k-split from:body -> ermite.layout('split');
619         k-unified from:body -> ermite.layout('unified');
620         k-collapse from:body -> ermite.collapse();
621         k-permalink from:body -> ermite.permalink()">
622</div>
623</body>
624</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