v0.25.0 4492065

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