v0.28.1 cc7ba64

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