v0.12.0 dccd128

tree-slash-ref.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>x · 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="feature/x" data-sha="SHA40" data-sel="" data-nav="" data-paths="/files/paths/SHA40" data-blob="/files/blob/feature/x">
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/feature/x">tree</a>
43</li>
44<li>
45<a href="/files/tree/feature/x">feature/x</a>
46</li>
47<li>
48<a href="/files/tree/feature/x/x" aria-current="page">x</a>
49</li>
50</ol>
51</nav>
52<div class="hdr-acts">
53<a class="btn ref" href="/files/refs" data-fire="refs" aria-keyshortcuts="b" title="switch branch or tag (b)">
54<span class="ico i-branch" aria-hidden="true">
55</span>
56<span class="ref-name">feature/x</span>
57<span class="sha">SHA7</span>
58</a>
59<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">
60<span class="ico i-search" aria-hidden="true">
61</span>
62<span class="search-label">Go to…</span>
63<kbd aria-hidden="true">ctrl k</kbd>
64</button>
65<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>
66</div>
67</div>
68<nav class="tabs" aria-label="Sections">
69<ul>
70<li>
71<a href="/files" data-key="s" aria-keyshortcuts="s">Summary<kbd aria-hidden="true">s</kbd>
72</a>
73</li>
74<li>
75<a href="/files/tree/main" data-key="t" aria-keyshortcuts="t" aria-current="page">Files<kbd aria-hidden="true">t</kbd>
76</a>
77</li>
78<li>
79<a href="/files/commits/main" data-key="c" aria-keyshortcuts="c">Commits<kbd aria-hidden="true">c</kbd>
80</a>
81</li>
82<li>
83<a href="/files/refs" data-key="r" aria-keyshortcuts="r">Branches &amp; tags<kbd aria-hidden="true">r</kbd>
84</a>
85</li>
86<li>
87<a href="/files/merge-requests" data-key="m" aria-keyshortcuts="m">Merge requests<kbd aria-hidden="true">m</kbd>
88</a>
89</li>
90<li>
91<a href="/files/actions" data-key="a" aria-keyshortcuts="a">Actions<kbd aria-hidden="true">a</kbd>
92</a>
93</li>
94</ul>
95</nav>
96</header>
97<div class="work">
98<main id="main" tabindex="-1">
99<div class="filter">
100<label for="finder-q" class="sr">find a file</label>
101<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)">
102</div>
103<div id="finder" hidden>
104<p id="finder-status" class="dim" aria-live="polite">
105</p>
106<ul id="finder-list" class="cmd-list" role="listbox" aria-label="Files">
107</ul>
108</div>
109<div id="tree-view">
110<table class="list tree" aria-label="Entries">
111<thead>
112<tr>
113<th class="cur">
114</th>
115<th class="c-kind">
116</th>
117<th class="c-name">name</th>
118<th class="c-size">size</th>
119<th class="c-sub">last commit</th>
120<th class="c-who">author</th>
121<th class="c-when">date</th>
122</tr>
123</thead>
124<tbody id="tree-rows" data-rows hx-on:click="ermiteTree.click(event)">
125<tr data-cursor>
126<td class="cur" aria-hidden="true">
127</td>
128<td class="c-kind" aria-hidden="true">·</td>
129<td class="c-name">
130<a href="/files/blob/feature/x/x/y.txt">y.txt</a>
131</td>
132<td class="c-size num dim">22 B</td>
133<td class="c-sub dim">
134<a href="/files/commit/SHA40">add x/y.txt</a>
135</td>
136<td class="c-who dim">T</td>
137<td class="c-when nowrap dim">
138<time datetime="STAMP" title="STAMP">AGO</time>
139</td>
140</tr>
141</tbody>
142</table>
143</div>
144</main>
145</div>
146<footer class="foot">
147<span>ermite devel</span>
148<a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a>
149<span class="foot-keys">
150<kbd>?</kbd> keyboard shortcuts</span>
151</footer>
152<div class="hint" role="status" aria-live="polite">
153<span class="hint-nav" :text="document.body.dataset.nav || ''">
154</span>
155<span class="hint-sel" :text="document.body.dataset.sel ? document.body.dataset.sel + ' · y permalink' : ''">
156</span>
157<span class="hint-flash" :text="document.body.dataset.flash || ''">
158</span>
159</div>
160<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()">
161<div class="panel-head">
162<h2>Keyboard shortcuts</h2>
163<button type="button" class="panel-x" aria-label="Close" hx-on:click="closest('dialog').close()">
164<kbd>esc</kbd> close</button>
165</div>
166<dl class="keys">
167<div>
168<dt>
169<kbd>ctrl k</kbd>
170<kbd>:</kbd>
171</dt>
172<dd>go to a section, branch, tag, file or repository</dd>
173</div>
174<div>
175<dt>
176<kbd>?</kbd>
177</dt>
178<dd>this list</dd>
179</div>
180<div>
181<dt>
182<kbd>j</kbd>
183<kbd>k</kbd>
184</dt>
185<dd>move the row cursor down / up</dd>
186</div>
187<div>
188<dt>
189<kbd>enter</kbd>
190</dt>
191<dd>open the row under the cursor</dd>
192</div>
193<div>
194<dt>
195<kbd>g g</kbd>
196<kbd>G</kbd>
197</dt>
198<dd>first / last row</dd>
199</div>
200<div>
201<dt>
202<kbd>/</kbd>
203</dt>
204<dd>filter the list; on Files, find a file in the repository</dd>
205</div>
206<div>
207<dt>
208<kbd>b</kbd>
209</dt>
210<dd>switch branch or tag</dd>
211</div>
212<div>
213<dt>
214<kbd>s</kbd>
215<kbd>t</kbd>
216<kbd>c</kbd>
217<kbd>r</kbd>
218<kbd>m</kbd>
219</dt>
220<dd>tabs: summary, files, commits, branches &amp; tags, merge requests</dd>
221</div>
222<div>
223<dt>
224<kbd>g h</kbd>
225</dt>
226<dd>home</dd>
227</div>
228<div>
229<dt>
230<kbd>y</kbd>
231</dt>
232<dd>copy a permalink pinned to the commit</dd>
233</div>
234<div>
235<dt>
236<kbd>d</kbd>
237<kbd>u</kbd>
238<kbd>x</kbd>
239</dt>
240<dd>diff: split / unified / collapse or expand all</dd>
241</div>
242<div>
243<dt>
244<kbd>n</kbd>
245</dt>
246<dd>merge request: next note in the diff</dd>
247</div>
248<div>
249<dt>
250<kbd>esc</kbd>
251</dt>
252<dd>close a dialog, leave a field</dd>
253</div>
254</dl>
255</dialog>
256<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()">
257<div class="panel-head">
258<label for="refs-filter" class="sr">filter branches and tags</label>
259<input id="refs-filter" type="search" placeholder="Switch branch or tag…" autocomplete="off" data-pick="#panel-refs li" hx-on:input="ermite.filter(this)">
260<button type="button" class="panel-x" aria-label="Close" hx-on:click="closest('dialog').close()">
261<kbd>esc</kbd>
262</button>
263</div>
264<div class="panel-cols" data-picklist>
265<section aria-label="Branches">
266<h2>Branches <span class="count">2</span>
267</h2>
268<ul>
269<li>
270<a href="/files/tree/feature/x" aria-current="true">
271<span class="mark" aria-hidden="true">●</span>feature/x</a>
272</li>
273<li>
274<a href="/files/tree/main">
275<span class="mark" aria-hidden="true">&nbsp;</span>main</a>
276</li>
277</ul>
278</section>
279<section aria-label="Tags">
280<h2>Tags <span class="count">1</span>
281</h2>
282<ul>
283<li>
284<a href="/files/tree/v1.0">
285<span class="mark" aria-hidden="true">&nbsp;</span>v1.0</a>
286</li>
287</ul>
288</section>
289</div>
290</dialog>
291<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()">
292<div class="panel-head">
293<label for="cmd-q" class="sr">go to</label>
294<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)">
295<button type="button" class="panel-x" aria-label="Close" hx-on:click="closest('dialog').close()">
296<kbd>esc</kbd>
297</button>
298</div>
299<ul id="cmd-list" class="cmd-list" aria-label="Targets">
300<li data-k="go home" data-cursor>
301<a href="/" tabindex="-1">
302<span class="lbl">home</span>
303<span class="k">go</span>
304</a>
305</li>
306<li data-k="section summary">
307<a href="/files" tabindex="-1">
308<span class="lbl">summary</span>
309<span class="k">section</span>
310</a>
311</li>
312<li data-k="section files">
313<a href="/files/tree/main" tabindex="-1">
314<span class="lbl">files</span>
315<span class="k">section</span>
316</a>
317</li>
318<li data-k="section commits">
319<a href="/files/commits/main" tabindex="-1">
320<span class="lbl">commits</span>
321<span class="k">section</span>
322</a>
323</li>
324<li data-k="section branches &amp; tags">
325<a href="/files/refs" tabindex="-1">
326<span class="lbl">branches &amp; tags</span>
327<span class="k">section</span>
328</a>
329</li>
330<li data-k="section merge requests">
331<a href="/files/merge-requests" tabindex="-1">
332<span class="lbl">merge requests</span>
333<span class="k">section</span>
334</a>
335</li>
336<li data-k="section actions">
337<a href="/files/actions" tabindex="-1">
338<span class="lbl">actions</span>
339<span class="k">section</span>
340</a>
341</li>
342<li data-k="branch feature/x">
343<a href="/files/tree/feature/x" tabindex="-1">
344<span class="lbl">feature/x</span>
345<span class="k">branch</span>
346</a>
347</li>
348<li data-k="branch main">
349<a href="/files/tree/main" tabindex="-1">
350<span class="lbl">main</span>
351<span class="k">branch</span>
352</a>
353</li>
354<li data-k="tag v1.0">
355<a href="/files/tree/v1.0" tabindex="-1">
356<span class="lbl">v1.0</span>
357<span class="k">tag</span>
358</a>
359</li>
360</ul>
361<p class="panel-foot">
362<span>
363<kbd>↑</kbd>
364<kbd>↓</kbd> move</span>
365<span>
366<kbd>enter</kbd> open</span>
367<span>
368<kbd>esc</kbd> close</span>
369</p>
370</dialog>
371<div id="keys" hidden hx-on="k-j from:body -> ermite.move(1);
372         k-k from:body -> ermite.move(-1);
373         k-top from:body -> ermite.edge(false);
374         k-bottom from:body -> ermite.edge(true);
375         k-open from:body -> ermite.open();
376         k-esc from:body -> ermite.closeDialogs();
377         k-help from:body -> ermite.dialog('panel-help');
378         k-refs from:body -> ermite.dialog('panel-refs', 'refs-filter');
379         k-cmd from:body -> ermite.dialog('panel-cmd', 'cmd-q'); ermiteFinder.load();
380         k-filter from:body -> ermite.focusFilter();
381         k-gh from:body -> ermite.go('.brand');
382         k-s from:body -> ermite.tab('s');
383         k-t from:body -> ermite.tab('t');
384         k-c from:body -> ermite.tab('c');
385         k-r from:body -> ermite.tab('r');
386         k-m from:body -> ermite.tab('m');
387         k-next from:body -> ermite.nextNote();
388         k-split from:body -> ermite.layout('split');
389         k-unified from:body -> ermite.layout('unified');
390         k-collapse from:body -> ermite.collapse();
391         k-permalink from:body -> ermite.permalink()">
392</div>
393</body>
394</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