v0.26.1 dfd6f0b

commit-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>SHA7 root: the first files · diffs · 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/store.HASH.js" defer>
24</script>
25<script src="/-/static/js/ermite.HASH.js" defer>
26</script>
27<script src="/-/static/js/files.HASH.js" defer>
28</script>
29<script src="/-/static/js/passkey.HASH.js" defer>
30</script>
31<script src="/-/static/js/log.HASH.js" defer>
32</script>
33</head>
34<body data-ref="" data-sha="SHA40" data-sel="" data-nav="" data-paths="/diffs/paths/SHA40" data-blob="/diffs/blob/SHA40">
35<a class="skip" href="#main">skip to content</a>
36<header class="hdr">
37<div class="hdr-top">
38<a class="brand" href="/" data-g="h" aria-label="home" title="home (g h)">
39<span class="brand-mark" aria-hidden="true">
40</span>
41</a>
42<nav class="crumbs" aria-label="Path">
43<ol>
44<li>
45<a href="/diffs">diffs</a>
46</li>
47<li>
48<a href="/diffs/commits/main">commit</a>
49</li>
50<li>
51<span aria-current="page">SHA7</span>
52</li>
53</ol>
54</nav>
55<div class="hdr-acts">
56<a class="btn ref" href="/diffs/refs" data-fire="refs" aria-keyshortcuts="b" title="switch branch or tag (b)">
57<span class="ico i-branch" aria-hidden="true">
58</span>
59<span class="ref-name">detached</span>
60<span class="sha">SHA7</span>
61</a>
62<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">
63<span class="ico i-search" aria-hidden="true">
64</span>
65<span class="search-label">Go to…</span>
66<kbd aria-hidden="true">ctrl k</kbd>
67</button>
68</div>
69</div>
70<nav class="tabs" aria-label="Sections">
71<ul>
72<li>
73<a href="/diffs" data-key="s" aria-keyshortcuts="s">Summary <kbd aria-hidden="true">s</kbd>
74</a>
75</li>
76<li>
77<a href="/diffs/tree/main" data-key="t" aria-keyshortcuts="t">Files <kbd aria-hidden="true">t</kbd>
78</a>
79</li>
80<li>
81<a href="/diffs/commits/main" data-key="c" aria-keyshortcuts="c" aria-current="page">Commits <kbd aria-hidden="true">c</kbd>
82</a>
83</li>
84<li>
85<a href="/diffs/refs" data-key="r" aria-keyshortcuts="r">Branches &amp; tags <kbd aria-hidden="true">r</kbd>
86</a>
87</li>
88<li>
89<a href="/diffs/merge-requests" data-key="m" aria-keyshortcuts="m">Merge requests <kbd aria-hidden="true">m</kbd>
90</a>
91</li>
92<li>
93<a href="/diffs/actions" data-key="a" aria-keyshortcuts="a">Actions <kbd aria-hidden="true">a</kbd>
94</a>
95</li>
96</ul>
97</nav>
98</header>
99<div class="work has-rail">
100<main id="main" tabindex="-1">
101<header class="show">
102<h1>root: the first files</h1>
103<dl class="kv show-kv">
104<dt>commit</dt>
105<dd>SHA40</dd>
106<dt>author</dt>
107<dd>T  · <time datetime="STAMP" title="STAMP">AGO</time> · STAMP</dd>
108<dt>parent</dt>
109<dd>none (root commit) </dd>
110<dt>signature</dt>
111<dd>
112<span class="pill sig sig-none" title="This commit is not signed">unsigned</span>
113</dd>
114</dl>
115</header>
116<div class="diff-tools" role="group" aria-label="Diff view">
117<span class="dim">5 files · <span class="plus">+11</span>
118<span class="minus">-0</span>
119</span>
120<span class="grow">
121</span>
122<a href="/diffs/commit/SHA40?view=unified" class="btn vbtn" data-view="unified" aria-keyshortcuts="u" aria-current="true" data-fire="unified" :aria-current="q('#diffs').attr['data-diff'] === this.dataset.view ? 'true' : false">Unified<kbd aria-hidden="true">u</kbd>
123</a>
124<a href="/diffs/commit/SHA40?view=split" class="btn vbtn" data-view="split" aria-keyshortcuts="d" data-fire="split" :aria-current="q('#diffs').attr['data-diff'] === this.dataset.view ? 'true' : false">Split<kbd aria-hidden="true">d</kbd>
125</a>
126<button type="button" aria-keyshortcuts="x" data-js data-fire="collapse" class="btn">
127<span hx-live="this.textContent = q('[data-file][open]').count || !q('[data-file]').count ? 'Collapse all' : 'Expand all'">Collapse all</span>
128<kbd aria-hidden="true">x</kbd>
129</button>
130</div>
131<div id="diffs" data-diff="unified" hx-live="this.dataset.diff = sessionStorage.getItem('diff') || this.dataset.diff">
132<details class="dfile lnw-2" id="f1" data-file open>
133<summary>
134<span class="st">A</span>
135<span class="p">a.txt</span>
136<span class="plus">+5</span>
137<span class="minus">-0</span>
138</summary>
139<div class="dscroll">
140<table class="dt uni" aria-label="a.txt, unified">
141<tbody>
142<tr class="hunk">
143<td colspan="4">@@ -0,0 +1,5 @@</td>
144</tr>
145<tr class="add">
146<td class="ln">
147</td>
148<td class="ln">1</td>
149<td class="m">+</td>
150<td class="tx chroma">one</td>
151</tr>
152<tr class="add">
153<td class="ln">
154</td>
155<td class="ln">2</td>
156<td class="m">+</td>
157<td class="tx chroma">two</td>
158</tr>
159<tr class="add">
160<td class="ln">
161</td>
162<td class="ln">3</td>
163<td class="m">+</td>
164<td class="tx chroma">three</td>
165</tr>
166<tr class="add">
167<td class="ln">
168</td>
169<td class="ln">4</td>
170<td class="m">+</td>
171<td class="tx chroma">four</td>
172</tr>
173<tr class="add">
174<td class="ln">
175</td>
176<td class="ln">5</td>
177<td class="m">+</td>
178<td class="tx chroma">five</td>
179</tr>
180</tbody>
181</table>
182<table class="dt spl" aria-label="a.txt, split">
183<colgroup>
184<col class="c-ln">
185<col class="c-m">
186<col>
187<col class="c-ln">
188<col class="c-m">
189<col>
190</colgroup>
191<tbody>
192<tr class="hunk">
193<td colspan="6">@@ -0,0 +1,5 @@</td>
194</tr>
195<tr>
196<td class="ln none">
197</td>
198<td class="m none">
199</td>
200<td class="tx none">
201</td>
202<td class="ln add">1</td>
203<td class="m add">+</td>
204<td class="tx chroma add">one</td>
205</tr>
206<tr>
207<td class="ln none">
208</td>
209<td class="m none">
210</td>
211<td class="tx none">
212</td>
213<td class="ln add">2</td>
214<td class="m add">+</td>
215<td class="tx chroma add">two</td>
216</tr>
217<tr>
218<td class="ln none">
219</td>
220<td class="m none">
221</td>
222<td class="tx none">
223</td>
224<td class="ln add">3</td>
225<td class="m add">+</td>
226<td class="tx chroma add">three</td>
227</tr>
228<tr>
229<td class="ln none">
230</td>
231<td class="m none">
232</td>
233<td class="tx none">
234</td>
235<td class="ln add">4</td>
236<td class="m add">+</td>
237<td class="tx chroma add">four</td>
238</tr>
239<tr>
240<td class="ln none">
241</td>
242<td class="m none">
243</td>
244<td class="tx none">
245</td>
246<td class="ln add">5</td>
247<td class="m add">+</td>
248<td class="tx chroma add">five</td>
249</tr>
250</tbody>
251</table>
252</div>
253</details>
254<details class="dfile lnw-2" id="f2" data-file open>
255<summary>
256<span class="st">A</span>
257<span class="p">gone.txt</span>
258<span class="plus">+1</span>
259<span class="minus">-0</span>
260</summary>
261<div class="dscroll">
262<table class="dt uni" aria-label="gone.txt, unified">
263<tbody>
264<tr class="hunk">
265<td colspan="4">@@ -0,0 +1,1 @@</td>
266</tr>
267<tr class="add">
268<td class="ln">
269</td>
270<td class="ln">1</td>
271<td class="m">+</td>
272<td class="tx chroma">bye</td>
273</tr>
274</tbody>
275</table>
276<table class="dt spl" aria-label="gone.txt, split">
277<colgroup>
278<col class="c-ln">
279<col class="c-m">
280<col>
281<col class="c-ln">
282<col class="c-m">
283<col>
284</colgroup>
285<tbody>
286<tr class="hunk">
287<td colspan="6">@@ -0,0 +1,1 @@</td>
288</tr>
289<tr>
290<td class="ln none">
291</td>
292<td class="m none">
293</td>
294<td class="tx none">
295</td>
296<td class="ln add">1</td>
297<td class="m add">+</td>
298<td class="tx chroma add">bye</td>
299</tr>
300</tbody>
301</table>
302</div>
303</details>
304<details class="dfile lnw-2" id="f3" data-file>
305<summary>
306<span class="st">A</span>
307<span class="p">logo.bin</span>
308<span class="plus">+0</span>
309<span class="minus">-0</span>
310<span class="note">binary file: no text diff</span>
311</summary>
312<p class="note pad">binary file: no text diff</p>
313</details>
314<details class="dfile lnw-2" id="f4" data-file open>
315<summary>
316<span class="st">A</span>
317<span class="p">old.txt</span>
318<span class="plus">+3</span>
319<span class="minus">-0</span>
320</summary>
321<div class="dscroll">
322<table class="dt uni" aria-label="old.txt, unified">
323<tbody>
324<tr class="hunk">
325<td colspan="4">@@ -0,0 +1,3 @@</td>
326</tr>
327<tr class="add">
328<td class="ln">
329</td>
330<td class="ln">1</td>
331<td class="m">+</td>
332<td class="tx chroma">keep me</td>
333</tr>
334<tr class="add">
335<td class="ln">
336</td>
337<td class="ln">2</td>
338<td class="m">+</td>
339<td class="tx chroma">keep me too</td>
340</tr>
341<tr class="add">
342<td class="ln">
343</td>
344<td class="ln">3</td>
345<td class="m">+</td>
346<td class="tx chroma">and me</td>
347</tr>
348</tbody>
349</table>
350<table class="dt spl" aria-label="old.txt, split">
351<colgroup>
352<col class="c-ln">
353<col class="c-m">
354<col>
355<col class="c-ln">
356<col class="c-m">
357<col>
358</colgroup>
359<tbody>
360<tr class="hunk">
361<td colspan="6">@@ -0,0 +1,3 @@</td>
362</tr>
363<tr>
364<td class="ln none">
365</td>
366<td class="m none">
367</td>
368<td class="tx none">
369</td>
370<td class="ln add">1</td>
371<td class="m add">+</td>
372<td class="tx chroma add">keep me</td>
373</tr>
374<tr>
375<td class="ln none">
376</td>
377<td class="m none">
378</td>
379<td class="tx none">
380</td>
381<td class="ln add">2</td>
382<td class="m add">+</td>
383<td class="tx chroma add">keep me too</td>
384</tr>
385<tr>
386<td class="ln none">
387</td>
388<td class="m none">
389</td>
390<td class="tx none">
391</td>
392<td class="ln add">3</td>
393<td class="m add">+</td>
394<td class="tx chroma add">and me</td>
395</tr>
396</tbody>
397</table>
398</div>
399</details>
400<details class="dfile lnw-2" id="f5" data-file open>
401<summary>
402<span class="st">A</span>
403<span class="p">run.sh</span>
404<span class="plus">+2</span>
405<span class="minus">-0</span>
406</summary>
407<div class="dscroll">
408<table class="dt uni" aria-label="run.sh, unified">
409<tbody>
410<tr class="hunk">
411<td colspan="4">@@ -0,0 +1,2 @@</td>
412</tr>
413<tr class="add">
414<td class="ln">
415</td>
416<td class="ln">1</td>
417<td class="m">+</td>
418<td class="tx chroma">#!/bin/sh</td>
419</tr>
420<tr class="add">
421<td class="ln">
422</td>
423<td class="ln">2</td>
424<td class="m">+</td>
425<td class="tx chroma">echo hi</td>
426</tr>
427</tbody>
428</table>
429<table class="dt spl" aria-label="run.sh, split">
430<colgroup>
431<col class="c-ln">
432<col class="c-m">
433<col>
434<col class="c-ln">
435<col class="c-m">
436<col>
437</colgroup>
438<tbody>
439<tr class="hunk">
440<td colspan="6">@@ -0,0 +1,2 @@</td>
441</tr>
442<tr>
443<td class="ln none">
444</td>
445<td class="m none">
446</td>
447<td class="tx none">
448</td>
449<td class="ln add">1</td>
450<td class="m add">+</td>
451<td class="tx chroma add">#!/bin/sh</td>
452</tr>
453<tr>
454<td class="ln none">
455</td>
456<td class="m none">
457</td>
458<td class="tx none">
459</td>
460<td class="ln add">2</td>
461<td class="m add">+</td>
462<td class="tx chroma add">echo hi</td>
463</tr>
464</tbody>
465</table>
466</div>
467</details>
468</div>
469</main>
470<aside class="rail" aria-label="Context">
471<section aria-labelledby="r-files">
472<h2 id="r-files">Files <span class="count">5</span>
473</h2>
474<ol class="files" aria-label="Changed files">
475<li>
476<a href="#f1" title="a.txt" hx-on:click="(window.ermiteMR?.openFile || ermite.openFile)(this.hash.slice(1))">
477<span class="st" data-st="A" title="added">A</span>
478<span class="nm">
479<span class="p">a.txt</span>
480<span class="d">
481<bdi>
482</bdi>
483</span>
484</span>
485<span class="n">
486<span class="plus">+5</span>
487<span class="minus">-0</span>
488</span>
489</a>
490</li>
491<li>
492<a href="#f2" title="gone.txt" hx-on:click="(window.ermiteMR?.openFile || ermite.openFile)(this.hash.slice(1))">
493<span class="st" data-st="A" title="added">A</span>
494<span class="nm">
495<span class="p">gone.txt</span>
496<span class="d">
497<bdi>
498</bdi>
499</span>
500</span>
501<span class="n">
502<span class="plus">+1</span>
503<span class="minus">-0</span>
504</span>
505</a>
506</li>
507<li>
508<a href="#f3" title="logo.bin" hx-on:click="(window.ermiteMR?.openFile || ermite.openFile)(this.hash.slice(1))">
509<span class="st" data-st="A" title="added">A</span>
510<span class="nm">
511<span class="p">logo.bin</span>
512<span class="d">
513<bdi>
514</bdi>
515</span>
516</span>
517<span class="n mute">bin</span>
518</a>
519</li>
520<li>
521<a href="#f4" title="old.txt" hx-on:click="(window.ermiteMR?.openFile || ermite.openFile)(this.hash.slice(1))">
522<span class="st" data-st="A" title="added">A</span>
523<span class="nm">
524<span class="p">old.txt</span>
525<span class="d">
526<bdi>
527</bdi>
528</span>
529</span>
530<span class="n">
531<span class="plus">+3</span>
532<span class="minus">-0</span>
533</span>
534</a>
535</li>
536<li>
537<a href="#f5" title="run.sh" hx-on:click="(window.ermiteMR?.openFile || ermite.openFile)(this.hash.slice(1))">
538<span class="st" data-st="A" title="added">A</span>
539<span class="nm">
540<span class="p">run.sh</span>
541<span class="d">
542<bdi>
543</bdi>
544</span>
545</span>
546<span class="n">
547<span class="plus">+2</span>
548<span class="minus">-0</span>
549</span>
550</a>
551</li>
552</ol>
553</section>
554</aside>
555</div>
556<footer class="foot">
557<span>ermite devel</span>
558<a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a>
559<button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?">
560<kbd aria-hidden="true">?</kbd> keyboard shortcuts</button>
561</footer>
562<div class="hint" role="status" aria-live="polite">
563<span class="hint-nav" :text="document.body.dataset.nav || ''">
564</span>
565<span class="hint-sel" :text="document.body.dataset.sel ? document.body.dataset.sel + ' · y permalink' : ''">
566</span>
567<span class="hint-flash" :text="document.body.dataset.flash || ''">
568</span>
569</div>
570<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()">
571<div class="panel-head">
572<h2>Keyboard shortcuts</h2>
573<button type="button" class="panel-x" aria-label="Close" hx-on:click="closest('dialog').close()">
574<kbd>esc</kbd> close</button>
575</div>
576<div class="keys-pref">
577<label>
578<input type="checkbox" id="keys-off" aria-describedby="keys-note" hx-on:change="ermite.setKeysOff(this.checked)"> Turn off single-key shortcuts</label>
579<p id="keys-note" class="dim">Single-key shortcuts are on. ctrl k and esc work whatever this says.</p>
580</div>
581<dl class="keys">
582<div>
583<dt>
584<kbd>ctrl k</kbd>
585<kbd>:</kbd>
586</dt>
587<dd>go to a section, branch, tag, file or repository</dd>
588</div>
589<div>
590<dt>
591<kbd>?</kbd>
592</dt>
593<dd>this list</dd>
594</div>
595<div>
596<dt>
597<kbd>j</kbd>
598<kbd>k</kbd>
599</dt>
600<dd>move the row cursor down / up</dd>
601</div>
602<div>
603<dt>
604<kbd>enter</kbd>
605</dt>
606<dd>open the row under the cursor; on Files, a directory opens or closes in place</dd>
607</div>
608<div>
609<dt>
610<kbd>↑</kbd>
611<kbd>↓</kbd>
612<kbd>←</kbd>
613<kbd>→</kbd>
614<kbd>home</kbd>
615<kbd>end</kbd>
616</dt>
617<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>
618</div>
619<div>
620<dt>
621<kbd>l</kbd>
622<kbd>h</kbd>
623</dt>
624<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>
625</div>
626<div>
627<dt>
628<kbd>g g</kbd>
629<kbd>G</kbd>
630</dt>
631<dd>first / last row</dd>
632</div>
633<div>
634<dt>
635<kbd>/</kbd>
636</dt>
637<dd>filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)</dd>
638</div>
639<div>
640<dt>
641<kbd>b</kbd>
642</dt>
643<dd>switch branch or tag</dd>
644</div>
645<div>
646<dt>
647<kbd>s</kbd>
648<kbd>t</kbd>
649<kbd>c</kbd>
650<kbd>r</kbd>
651<kbd>m</kbd>
652</dt>
653<dd>tabs: summary, files, commits, branches &amp; tags, merge requests</dd>
654</div>
655<div>
656<dt>
657<kbd>g h</kbd>
658</dt>
659<dd>home</dd>
660</div>
661<div>
662<dt>
663<kbd>y</kbd>
664</dt>
665<dd>copy a permalink pinned to the commit</dd>
666</div>
667<div>
668<dt>
669<kbd>d</kbd>
670<kbd>u</kbd>
671<kbd>x</kbd>
672</dt>
673<dd>diff: split / unified / collapse or expand all</dd>
674</div>
675<div>
676<dt>
677<kbd>e</kbd>
678<kbd>E</kbd>
679</dt>
680<dd>diff: the whole file in view / every file, with the lines the hunks hide</dd>
681</div>
682<div>
683<dt>
684<kbd>n</kbd>
685</dt>
686<dd>merge request: next note in the diff</dd>
687</div>
688<div>
689<dt>
690<kbd>esc</kbd>
691</dt>
692<dd>close a dialog, leave a field</dd>
693</div>
694</dl>
695</dialog>
696<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()">
697<div class="panel-head">
698<label for="refs-filter" class="sr">filter branches and tags</label>
699<input id="refs-filter" type="search" placeholder="Switch branch or tag…" autocomplete="off" data-pick="#panel-refs li" hx-on:input="ermite.filter(this)">
700<button type="button" class="panel-x" aria-label="Close" hx-on:click="closest('dialog').close()">
701<kbd>esc</kbd>
702</button>
703</div>
704<div class="panel-cols" data-picklist>
705<section aria-label="Branches">
706<h2>Branches <span class="count">2</span>
707</h2>
708<ul>
709<li>
710<a href="/diffs/tree/main">
711<span class="mark" aria-hidden="true">&nbsp;</span>main</a>
712</li>
713<li>
714<a href="/diffs/tree/side">
715<span class="mark" aria-hidden="true">&nbsp;</span>side</a>
716</li>
717</ul>
718</section>
719<section aria-label="Tags">
720<h2>Tags <span class="count">1</span>
721</h2>
722<ul>
723<li>
724<a href="/diffs/tree/v1.0.0">
725<span class="mark" aria-hidden="true">&nbsp;</span>v1.0.0</a>
726</li>
727</ul>
728</section>
729</div>
730</dialog>
731<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()">
732<div class="panel-head">
733<label for="cmd-q" class="sr">go to</label>
734<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)">
735<button type="button" class="panel-x" aria-label="Close" hx-on:click="closest('dialog').close()">
736<kbd>esc</kbd>
737</button>
738</div>
739<ul id="cmd-list" class="cmd-list" role="listbox" aria-label="Targets">
740<li id="cmd-o0" role="option" aria-selected="true" data-k="go home" data-cursor>
741<a href="/" tabindex="-1">
742<span class="lbl">home</span>
743<span class="k">go</span>
744</a>
745</li>
746<li id="cmd-o1" role="option" aria-selected="false" data-k="section summary">
747<a href="/diffs" tabindex="-1">
748<span class="lbl">summary</span>
749<span class="k">section</span>
750</a>
751</li>
752<li id="cmd-o2" role="option" aria-selected="false" data-k="section files">
753<a href="/diffs/tree/main" tabindex="-1">
754<span class="lbl">files</span>
755<span class="k">section</span>
756</a>
757</li>
758<li id="cmd-o3" role="option" aria-selected="false" data-k="section commits">
759<a href="/diffs/commits/main" tabindex="-1">
760<span class="lbl">commits</span>
761<span class="k">section</span>
762</a>
763</li>
764<li id="cmd-o4" role="option" aria-selected="false" data-k="section branches &amp; tags">
765<a href="/diffs/refs" tabindex="-1">
766<span class="lbl">branches &amp; tags</span>
767<span class="k">section</span>
768</a>
769</li>
770<li id="cmd-o5" role="option" aria-selected="false" data-k="section merge requests">
771<a href="/diffs/merge-requests" tabindex="-1">
772<span class="lbl">merge requests</span>
773<span class="k">section</span>
774</a>
775</li>
776<li id="cmd-o6" role="option" aria-selected="false" data-k="section actions">
777<a href="/diffs/actions" tabindex="-1">
778<span class="lbl">actions</span>
779<span class="k">section</span>
780</a>
781</li>
782<li id="cmd-o7" role="option" aria-selected="false" data-k="branch main">
783<a href="/diffs/tree/main" tabindex="-1">
784<span class="lbl">main</span>
785<span class="k">branch</span>
786</a>
787</li>
788<li id="cmd-o8" role="option" aria-selected="false" data-k="branch side">
789<a href="/diffs/tree/side" tabindex="-1">
790<span class="lbl">side</span>
791<span class="k">branch</span>
792</a>
793</li>
794<li id="cmd-o9" role="option" aria-selected="false" data-k="tag v1.0.0">
795<a href="/diffs/tree/v1.0.0" tabindex="-1">
796<span class="lbl">v1.0.0</span>
797<span class="k">tag</span>
798</a>
799</li>
800<li id="cmd-o10" role="option" aria-selected="false" data-k="action turn single-key shortcuts on off keyboard">
801<a href="#" data-fire="keys" tabindex="-1">
802<span class="lbl">turn single-key shortcuts off</span>
803<span class="k">action</span>
804</a>
805</li>
806</ul>
807<p class="panel-foot">
808<span>
809<kbd>↑</kbd>
810<kbd>↓</kbd> move</span>
811<span>
812<kbd>enter</kbd> open</span>
813<span>
814<kbd>esc</kbd> close</span>
815</p>
816</dialog>
817<div id="keys" hidden hx-on="k-j from:body -> ermite.move(1);
818         k-k from:body -> ermite.move(-1);
819         k-top from:body -> ermite.edge(false);
820         k-bottom from:body -> ermite.edge(true);
821         k-open from:body -> ermite.open();
822         k-right from:body -> ermite.rail(true);
823         k-left from:body -> ermite.rail(false);
824         k-esc from:body -> ermite.closeDialogs();
825         k-help from:body -> ermite.dialog('panel-help');
826         k-refs from:body -> ermite.dialog('panel-refs', 'refs-filter');
827         k-cmd from:body -> ermite.dialog('panel-cmd', 'cmd-q'); ermiteFinder.load();
828         k-filter from:body -> ermite.focusFilter();
829         k-gh from:body -> ermite.go('.brand');
830         k-s from:body -> ermite.tab('s');
831         k-t from:body -> ermite.tab('t');
832         k-c from:body -> ermite.tab('c');
833         k-r from:body -> ermite.tab('r');
834         k-m from:body -> ermite.tab('m');
835         k-next from:body -> ermite.nextNote();
836         k-split from:body -> ermite.layout('split');
837         k-unified from:body -> ermite.layout('unified');
838         k-collapse from:body -> ermite.collapse();
839         k-expand from:body -> ermite.expandFile();
840         k-expandAll from:body -> ermite.expandAll();
841         k-permalink from:body -> ermite.permalink();
842         k-merge from:body -> window.ermiteMR?.openMerge();
843         k-read from:body -> window.ermiteMR?.markRead();
844         k-gf from:body -> window.ermiteMR?.focusFiles();
845         k-keys from:body -> ermite.toggleKeys()">
846</div>
847</body>
848</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