v0.25.1 7fabed9

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