v0.30.0 c899179

tree-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>tree · files · 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="main" data-sha="SHA40" data-sel="" data-nav="" data-paths="/files/paths/SHA40" data-blob="/files/blob/main">
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="/files">files</a>
46</li>
47<li>
48<a href="/files/tree/main">tree</a>
49</li>
50<li>
51<a href="/files/tree/main" aria-current="page">main</a>
52</li>
53</ol>
54</nav>
55<div class="hdr-acts">
56<a class="btn ref" href="/files/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">main</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="/files" data-key="s" aria-keyshortcuts="s">Summary <kbd aria-hidden="true">s</kbd>
74</a>
75</li>
76<li>
77<a href="/files/tree/main" data-key="t" aria-keyshortcuts="t" aria-current="page">Files <kbd aria-hidden="true">t</kbd>
78</a>
79</li>
80<li>
81<a href="/files/commits/main" data-key="c" aria-keyshortcuts="c">Commits <kbd aria-hidden="true">c</kbd>
82</a>
83</li>
84<li>
85<a href="/files/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="/files/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="/files/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">
100<main id="main" tabindex="-1">
101<div class="tree-find">
102<div class="filter wide">
103<label for="finder-q" class="sr">find a file</label>
104<input id="finder-q" type="search" data-filter role="combobox" aria-autocomplete="list" aria-controls="finder-list" aria-expanded="false" placeholder="Find a file in this repository…" autocomplete="off" spellcheck="false" hx-on:focus="ermiteFinder.load()" hx-on:input="ermiteFinder.input(this)" hx-on:keydown="ermiteFinder.key(this, event)">
105</div>
106<p class="tree-keys" data-js aria-hidden="true">
107<kbd>j</kbd>
108<kbd>k</kbd> move · <kbd>l</kbd> open · <kbd>h</kbd> back</p>
109</div>
110<div id="finder" class="tree-card" hidden>
111<p id="finder-status" class="dim" aria-live="polite">
112</p>
113<ul id="finder-list" class="cmd-list" role="listbox" aria-label="Files">
114</ul>
115</div>
116<div id="tree-view" class="tree-card">
117<div class="tree-head">
118<span class="tree-path">/</span>
119<span class="tree-count">15 entries</span>
120</div>
121<ul id="tree-rows" class="tree" role="tree" aria-label="Entries" data-rows data-tree hx-on:click="ermiteTree.click(event)">
122<li role="treeitem" aria-level="1" aria-posinset="1" aria-setsize="15" data-kind="dir" data-depth="0" data-cursor data-expand="/files/tree/main/docs?rows" aria-expanded="false">
123<span class="t-main">
124<span class="t-twig" aria-hidden="true">
125</span>
126<span class="t-node" aria-hidden="true">
127</span>
128<a class="t-name" href="/files/tree/main/docs" title="directory">docs/</a>
129<span class="sr"> (directory)</span>
130</span>
131<span class="t-size">
132</span>
133<span class="t-sub">
134<a class="t-commit" href="/files/commit/SHA40" title="T">add docs/guide.md</a>
135</span>
136<span class="t-when">
137<time datetime="STAMP" title="STAMP">AGO</time>
138</span>
139</li>
140<li role="treeitem" aria-level="1" aria-posinset="2" aria-setsize="15" data-kind="dir" data-depth="0" data-expand="/files/tree/main/src?rows" aria-expanded="false">
141<span class="t-main">
142<span class="t-twig" aria-hidden="true">
143</span>
144<span class="t-node" aria-hidden="true">
145</span>
146<a class="t-name" href="/files/tree/main/src" title="directory">src/</a>
147<span class="sr"> (directory)</span>
148</span>
149<span class="t-size">
150</span>
151<span class="t-sub">
152<a class="t-commit" href="/files/commit/SHA40" title="T">add src/lib/util.go</a>
153</span>
154<span class="t-when">
155<time datetime="STAMP" title="STAMP">AGO</time>
156</span>
157</li>
158<li role="treeitem" aria-level="1" aria-posinset="3" aria-setsize="15" data-kind="file" data-depth="0">
159<span class="t-main">
160<span class="t-twig" aria-hidden="true">
161</span>
162<span class="t-node" aria-hidden="true">
163</span>
164<a class="t-name" href="/files/blob/main/README.md">README.md</a>
165</span>
166<span class="t-size">41 B</span>
167<span class="t-sub">
168<a class="t-commit" href="/files/commit/SHA40" title="T">add README.md</a>
169</span>
170<span class="t-when">
171<time datetime="STAMP" title="STAMP">AGO</time>
172</span>
173</li>
174<li role="treeitem" aria-level="1" aria-posinset="4" aria-setsize="15" data-kind="file" data-depth="0">
175<span class="t-main">
176<span class="t-twig" aria-hidden="true">
177</span>
178<span class="t-node" aria-hidden="true">
179</span>
180<a class="t-name" href="/files/blob/main/big.txt">big.txt</a>
181</span>
182<span class="t-size">1.1 MiB</span>
183<span class="t-sub">
184<a class="t-commit" href="/files/commit/SHA40" title="T">add big.txt</a>
185</span>
186<span class="t-when">
187<time datetime="STAMP" title="STAMP">AGO</time>
188</span>
189</li>
190<li role="treeitem" aria-level="1" aria-posinset="5" aria-setsize="15" data-kind="file" data-depth="0">
191<span class="t-main">
192<span class="t-twig" aria-hidden="true">
193</span>
194<span class="t-node" aria-hidden="true">
195</span>
196<a class="t-name" href="/files/blob/main/data.bin">data.bin</a>
197</span>
198<span class="t-size">10 B</span>
199<span class="t-sub">
200<a class="t-commit" href="/files/commit/SHA40" title="T">add data.bin</a>
201</span>
202<span class="t-when">
203<time datetime="STAMP" title="STAMP">AGO</time>
204</span>
205</li>
206<li role="treeitem" aria-level="1" aria-posinset="6" aria-setsize="15" data-kind="file" data-depth="0">
207<span class="t-main">
208<span class="t-twig" aria-hidden="true">
209</span>
210<span class="t-node" aria-hidden="true">
211</span>
212<a class="t-name" href="/files/blob/main/empty.txt">empty.txt</a>
213</span>
214<span class="t-size">0 B</span>
215<span class="t-sub">
216<a class="t-commit" href="/files/commit/SHA40" title="T">add empty.txt</a>
217</span>
218<span class="t-when">
219<time datetime="STAMP" title="STAMP">AGO</time>
220</span>
221</li>
222<li role="treeitem" aria-level="1" aria-posinset="7" aria-setsize="15" data-kind="file" data-depth="0">
223<span class="t-main">
224<span class="t-twig" aria-hidden="true">
225</span>
226<span class="t-node" aria-hidden="true">
227</span>
228<a class="t-name" href="/files/blob/main/evil.go">evil.go</a>
229</span>
230<span class="t-size">87 B</span>
231<span class="t-sub">
232<a class="t-commit" href="/files/commit/SHA40" title="T">add evil.go</a>
233</span>
234<span class="t-when">
235<time datetime="STAMP" title="STAMP">AGO</time>
236</span>
237</li>
238<li role="treeitem" aria-level="1" aria-posinset="8" aria-setsize="15" data-kind="file" data-depth="0">
239<span class="t-main">
240<span class="t-twig" aria-hidden="true">
241</span>
242<span class="t-node" aria-hidden="true">
243</span>
244<a class="t-name" href="/files/blob/main/fake.jpg">fake.jpg</a>
245</span>
246<span class="t-size">15 B</span>
247<span class="t-sub">
248<a class="t-commit" href="/files/commit/SHA40" title="T">add fake.jpg</a>
249</span>
250<span class="t-when">
251<time datetime="STAMP" title="STAMP">AGO</time>
252</span>
253</li>
254<li role="treeitem" aria-level="1" aria-posinset="9" aria-setsize="15" data-kind="file" data-depth="0">
255<span class="t-main">
256<span class="t-twig" aria-hidden="true">
257</span>
258<span class="t-node" aria-hidden="true">
259</span>
260<a class="t-name" href="/files/blob/main/fake.png">fake.png</a>
261</span>
262<span class="t-size">39 B</span>
263<span class="t-sub">
264<a class="t-commit" href="/files/commit/SHA40" title="T">add fake.png</a>
265</span>
266<span class="t-when">
267<time datetime="STAMP" title="STAMP">AGO</time>
268</span>
269</li>
270<li role="treeitem" aria-level="1" aria-posinset="10" aria-setsize="15" data-kind="file" data-depth="0">
271<span class="t-main">
272<span class="t-twig" aria-hidden="true">
273</span>
274<span class="t-node" aria-hidden="true">
275</span>
276<a class="t-name" href="/files/blob/main/lines.txt">lines.txt</a>
277</span>
278<span class="t-size">39.1 KiB</span>
279<span class="t-sub">
280<a class="t-commit" href="/files/commit/SHA40" title="T">add lines.txt</a>
281</span>
282<span class="t-when">
283<time datetime="STAMP" title="STAMP">AGO</time>
284</span>
285</li>
286<li role="treeitem" aria-level="1" aria-posinset="11" aria-setsize="15" data-kind="file" data-depth="0">
287<span class="t-main">
288<span class="t-twig" aria-hidden="true">
289</span>
290<span class="t-node" aria-hidden="true">
291</span>
292<a class="t-name" href="/files/blob/main/logo.svg">logo.svg</a>
293</span>
294<span class="t-size">89 B</span>
295<span class="t-sub">
296<a class="t-commit" href="/files/commit/SHA40" title="T">add logo.svg</a>
297</span>
298<span class="t-when">
299<time datetime="STAMP" title="STAMP">AGO</time>
300</span>
301</li>
302<li role="treeitem" aria-level="1" aria-posinset="12" aria-setsize="15" data-kind="file" data-depth="0">
303<span class="t-main">
304<span class="t-twig" aria-hidden="true">
305</span>
306<span class="t-node" aria-hidden="true">
307</span>
308<a class="t-name" href="/files/blob/main/main.go">main.go</a>
309</span>
310<span class="t-size">87 B</span>
311<span class="t-sub">
312<a class="t-commit" href="/files/commit/SHA40" title="T">add main.go</a>
313</span>
314<span class="t-when">
315<time datetime="STAMP" title="STAMP">AGO</time>
316</span>
317</li>
318<li role="treeitem" aria-level="1" aria-posinset="13" aria-setsize="15" data-kind="file" data-depth="0">
319<span class="t-main">
320<span class="t-twig" aria-hidden="true">
321</span>
322<span class="t-node" aria-hidden="true">
323</span>
324<a class="t-name" href="/files/blob/main/notes.txt">notes.txt</a>
325</span>
326<span class="t-size">24 B</span>
327<span class="t-sub">
328<a class="t-commit" href="/files/commit/SHA40" title="T">add notes.txt</a>
329</span>
330<span class="t-when">
331<time datetime="STAMP" title="STAMP">AGO</time>
332</span>
333</li>
334<li role="treeitem" aria-level="1" aria-posinset="14" aria-setsize="15" data-kind="file" data-depth="0">
335<span class="t-main">
336<span class="t-twig" aria-hidden="true">
337</span>
338<span class="t-node" aria-hidden="true">
339</span>
340<a class="t-name" href="/files/blob/main/page.html">page.html</a>
341</span>
342<span class="t-size">26 B</span>
343<span class="t-sub">
344<a class="t-commit" href="/files/commit/SHA40" title="T">add page.html</a>
345</span>
346<span class="t-when">
347<time datetime="STAMP" title="STAMP">AGO</time>
348</span>
349</li>
350<li role="treeitem" aria-level="1" aria-posinset="15" aria-setsize="15" data-kind="file" data-depth="0">
351<span class="t-main">
352<span class="t-twig" aria-hidden="true">
353</span>
354<span class="t-node" aria-hidden="true">
355</span>
356<a class="t-name" href="/files/blob/main/pic.png">pic.png</a>
357</span>
358<span class="t-size">88 B</span>
359<span class="t-sub">
360<a class="t-commit" href="/files/commit/SHA40" title="T">add pic.png</a>
361</span>
362<span class="t-when">
363<time datetime="STAMP" title="STAMP">AGO</time>
364</span>
365</li>
366</ul>
367</div>
368</main>
369</div>
370<footer class="foot">
371<span>ermite devel</span>
372<a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a>
373<button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?">
374<kbd aria-hidden="true">?</kbd> keyboard shortcuts</button>
375</footer>
376<div class="hint" role="status" aria-live="polite">
377<span class="hint-nav" :text="document.body.dataset.nav || ''">
378</span>
379<span class="hint-sel" :text="document.body.dataset.sel ? document.body.dataset.sel + ' · y permalink' : ''">
380</span>
381<span class="hint-flash" :text="document.body.dataset.flash || ''">
382</span>
383</div>
384<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()">
385<div class="panel-head">
386<h2>Keyboard shortcuts</h2>
387<button type="button" class="panel-x" aria-label="Close" hx-on:click="closest('dialog').close()">
388<kbd>esc</kbd> close</button>
389</div>
390<div class="keys-pref">
391<label>
392<input type="checkbox" id="keys-off" aria-describedby="keys-note" hx-on:change="ermite.setKeysOff(this.checked)"> Turn off single-key shortcuts</label>
393<p id="keys-note" class="dim">Single-key shortcuts are on. ctrl k and esc work whatever this says.</p>
394</div>
395<dl class="keys">
396<div>
397<dt>
398<kbd>ctrl k</kbd>
399<kbd>:</kbd>
400</dt>
401<dd>go to a section, branch, tag, file or repository</dd>
402</div>
403<div>
404<dt>
405<kbd>?</kbd>
406</dt>
407<dd>this list</dd>
408</div>
409<div>
410<dt>
411<kbd>j</kbd>
412<kbd>k</kbd>
413</dt>
414<dd>move the row cursor down / up</dd>
415</div>
416<div>
417<dt>
418<kbd>enter</kbd>
419</dt>
420<dd>open the row under the cursor; on Files, a directory opens or closes in place</dd>
421</div>
422<div>
423<dt>
424<kbd>↑</kbd>
425<kbd>↓</kbd>
426<kbd>←</kbd>
427<kbd>→</kbd>
428<kbd>home</kbd>
429<kbd>end</kbd>
430</dt>
431<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>
432</div>
433<div>
434<dt>
435<kbd>l</kbd>
436<kbd>h</kbd>
437</dt>
438<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>
439</div>
440<div>
441<dt>
442<kbd>g g</kbd>
443<kbd>G</kbd>
444</dt>
445<dd>first / last row</dd>
446</div>
447<div>
448<dt>
449<kbd>/</kbd>
450</dt>
451<dd>filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)</dd>
452</div>
453<div>
454<dt>
455<kbd>b</kbd>
456</dt>
457<dd>switch branch or tag</dd>
458</div>
459<div>
460<dt>
461<kbd>s</kbd>
462<kbd>t</kbd>
463<kbd>c</kbd>
464<kbd>r</kbd>
465<kbd>m</kbd>
466<kbd>i</kbd>
467</dt>
468<dd>tabs: summary, files, commits, branches &amp; tags, merge requests, issues</dd>
469</div>
470<div>
471<dt>
472<kbd>g h</kbd>
473</dt>
474<dd>home</dd>
475</div>
476<div>
477<dt>
478<kbd>w</kbd>
479</dt>
480<dd>wide mode: use the whole width of the screen, or not (remembered)</dd>
481</div>
482<div>
483<dt>
484<kbd>y</kbd>
485</dt>
486<dd>copy a permalink pinned to the commit</dd>
487</div>
488<div>
489<dt>
490<kbd>d</kbd>
491<kbd>u</kbd>
492<kbd>x</kbd>
493</dt>
494<dd>diff: split / unified / collapse or expand all</dd>
495</div>
496<div>
497<dt>
498<kbd>e</kbd>
499<kbd>E</kbd>
500</dt>
501<dd>diff: the whole file in view / every file, with the lines the hunks hide</dd>
502</div>
503<div>
504<dt>
505<kbd>n</kbd>
506</dt>
507<dd>merge request: next note in the diff</dd>
508</div>
509<div>
510<dt>
511<kbd>esc</kbd>
512</dt>
513<dd>close a dialog, leave a field</dd>
514</div>
515</dl>
516</dialog>
517<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()">
518<div class="panel-head">
519<label for="refs-filter" class="sr">filter branches and tags</label>
520<input id="refs-filter" type="search" placeholder="Switch branch or tag…" autocomplete="off" data-pick="#panel-refs li" hx-on:input="ermite.filter(this)">
521<button type="button" class="panel-x" aria-label="Close" hx-on:click="closest('dialog').close()">
522<kbd>esc</kbd>
523</button>
524</div>
525<div class="panel-cols" data-picklist>
526<section aria-label="Branches">
527<h2>Branches <span class="count">2</span>
528</h2>
529<ul>
530<li>
531<a href="/files/tree/feature/x">
532<span class="mark" aria-hidden="true">&nbsp;</span>feature/x</a>
533</li>
534<li>
535<a href="/files/tree/main" aria-current="true">
536<span class="mark" aria-hidden="true">●</span>main</a>
537</li>
538</ul>
539</section>
540<section aria-label="Tags">
541<h2>Tags <span class="count">1</span>
542</h2>
543<ul>
544<li>
545<a href="/files/tree/v1.0">
546<span class="mark" aria-hidden="true">&nbsp;</span>v1.0</a>
547</li>
548</ul>
549</section>
550</div>
551</dialog>
552<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()">
553<div class="panel-head">
554<label for="cmd-q" class="sr">go to</label>
555<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)">
556<button type="button" class="panel-x" aria-label="Close" hx-on:click="closest('dialog').close()">
557<kbd>esc</kbd>
558</button>
559</div>
560<ul id="cmd-list" class="cmd-list" role="listbox" aria-label="Targets">
561<li id="cmd-o0" role="option" aria-selected="true" data-k="go home" data-cursor>
562<a href="/" tabindex="-1">
563<span class="lbl">home</span>
564<span class="k">go</span>
565</a>
566</li>
567<li id="cmd-o1" role="option" aria-selected="false" data-k="section summary">
568<a href="/files" tabindex="-1">
569<span class="lbl">summary</span>
570<span class="k">section</span>
571</a>
572</li>
573<li id="cmd-o2" role="option" aria-selected="false" data-k="section files">
574<a href="/files/tree/main" tabindex="-1">
575<span class="lbl">files</span>
576<span class="k">section</span>
577</a>
578</li>
579<li id="cmd-o3" role="option" aria-selected="false" data-k="section commits">
580<a href="/files/commits/main" tabindex="-1">
581<span class="lbl">commits</span>
582<span class="k">section</span>
583</a>
584</li>
585<li id="cmd-o4" role="option" aria-selected="false" data-k="section branches &amp; tags">
586<a href="/files/refs" tabindex="-1">
587<span class="lbl">branches &amp; tags</span>
588<span class="k">section</span>
589</a>
590</li>
591<li id="cmd-o5" role="option" aria-selected="false" data-k="section merge requests">
592<a href="/files/merge-requests" tabindex="-1">
593<span class="lbl">merge requests</span>
594<span class="k">section</span>
595</a>
596</li>
597<li id="cmd-o6" role="option" aria-selected="false" data-k="section actions">
598<a href="/files/actions" tabindex="-1">
599<span class="lbl">actions</span>
600<span class="k">section</span>
601</a>
602</li>
603<li id="cmd-o7" role="option" aria-selected="false" data-k="branch feature/x">
604<a href="/files/tree/feature/x" tabindex="-1">
605<span class="lbl">feature/x</span>
606<span class="k">branch</span>
607</a>
608</li>
609<li id="cmd-o8" role="option" aria-selected="false" data-k="branch main">
610<a href="/files/tree/main" tabindex="-1">
611<span class="lbl">main</span>
612<span class="k">branch</span>
613</a>
614</li>
615<li id="cmd-o9" role="option" aria-selected="false" data-k="tag v1.0">
616<a href="/files/tree/v1.0" tabindex="-1">
617<span class="lbl">v1.0</span>
618<span class="k">tag</span>
619</a>
620</li>
621<li id="cmd-o10" role="option" aria-selected="false" data-k="action turn single-key shortcuts on off keyboard">
622<a href="#" data-fire="keys" tabindex="-1">
623<span class="lbl">turn single-key shortcuts off</span>
624<span class="k">action</span>
625</a>
626</li>
627</ul>
628<p class="panel-foot">
629<span>
630<kbd>↑</kbd>
631<kbd>↓</kbd> move</span>
632<span>
633<kbd>enter</kbd> open</span>
634<span>
635<kbd>esc</kbd> close</span>
636</p>
637</dialog>
638<div id="keys" hidden hx-on="k-j from:body -> ermite.move(1);
639         k-k from:body -> ermite.move(-1);
640         k-top from:body -> ermite.edge(false);
641         k-bottom from:body -> ermite.edge(true);
642         k-open from:body -> ermite.open();
643         k-right from:body -> ermite.rail(true);
644         k-left from:body -> ermite.rail(false);
645         k-esc from:body -> ermite.closeDialogs();
646         k-help from:body -> ermite.dialog('panel-help');
647         k-refs from:body -> ermite.dialog('panel-refs', 'refs-filter');
648         k-cmd from:body -> ermite.dialog('panel-cmd', 'cmd-q'); ermiteFinder.load();
649         k-filter from:body -> ermite.focusFilter();
650         k-gh from:body -> ermite.go('.brand');
651         k-s from:body -> ermite.tab('s');
652         k-t from:body -> ermite.tab('t');
653         k-c from:body -> ermite.tab('c');
654         k-r from:body -> ermite.tab('r');
655         k-m from:body -> ermite.tab('m');
656         k-i from:body -> ermite.tab('i');
657         k-next from:body -> ermite.nextNote();
658         k-split from:body -> ermite.layout('split');
659         k-unified from:body -> ermite.layout('unified');
660         k-collapse from:body -> ermite.collapse();
661         k-wide from:body -> window.ermiteWide.toggle();
662         k-expand from:body -> ermite.expandFile();
663         k-expandAll from:body -> ermite.expandAll();
664         k-permalink from:body -> ermite.permalink();
665         k-merge from:body -> window.ermiteMR?.openMerge();
666         k-read from:body -> window.ermiteMR?.markRead();
667         k-gf from:body -> window.ermiteMR?.focusFiles();
668         k-keys from:body -> ermite.toggleKeys()">
669</div>
670</body>
671</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