detached fda3c2b

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

Tags 45

↑↓ moveenter openesc close