v0.35.1 2aca1df

commit-modify-split.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 modify a file and make a script executable · diffs · example.test</title>
8<meta name="theme-color" data-scheme="light" media="(prefers-color-scheme: light)" content="#ffffff">
9<meta name="theme-color" data-scheme="dark" 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="g s">Summary <kbd aria-hidden="true">g s</kbd>
76</a>
77</li>
78<li>
79<a href="/diffs/tree/main" data-key="g f">Files <kbd aria-hidden="true">g f</kbd>
80</a>
81</li>
82<li>
83<a href="/diffs/commits/main" data-key="g c" aria-current="page">Commits <kbd aria-hidden="true">g c</kbd>
84</a>
85</li>
86<li>
87<a href="/diffs/refs" data-key="g b">Branches &amp; tags <kbd aria-hidden="true">g b</kbd>
88</a>
89</li>
90<li>
91<a href="/diffs/merge-requests" data-key="g m">Merge requests <kbd aria-hidden="true">g m</kbd>
92</a>
93</li>
94<li>
95<a href="/diffs/releases" data-key="g r">Releases <kbd aria-hidden="true">g r</kbd>
96</a>
97</li>
98<li>
99<a href="/diffs/actions" data-key="g a">Actions <kbd aria-hidden="true">g 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>modify a file and make a script executable</h1>
109<pre class="msg">The body has a second paragraph.
110And &lt;b&gt;html&lt;/b&gt; &amp; &#34;quotes&#34;.</pre>
111<dl class="kv show-kv">
112<dt>commit</dt>
113<dd>SHA40</dd>
114<dt>author</dt>
115<dd>T  · <time datetime="STAMP" title="STAMP">AGO</time> · STAMP</dd>
116<dt>parent</dt>
117<dd>
118<a href="/diffs/commit/SHA40">SHA7</a>
119</dd>
120<dt>signature</dt>
121<dd>
122<span class="pill sig sig-none" title="This commit is not signed">unsigned</span>
123</dd>
124<dt>refs</dt>
125<dd>
126<span class="pill">tag: v1.0.0</span>
127</dd>
128</dl>
129</header>
130<div class="diff-tools" role="group" aria-label="Diff view">
131<span class="dim">2 files · <span class="plus">+2</span>
132<span class="minus">-1</span>
133</span>
134<span class="grow">
135</span>
136<details class="menu vmenu">
137<summary class="btn" aria-label="Diff view">
138<span hx-live="this.textContent = q('#diffs').attr['data-mobile'] !== 'true' && q('#diffs').attr['data-diff'] === 'split' ? 'Split' : 'Unified'">Split</span>
139</summary>
140<div class="menu-pop" role="group" aria-label="Diff view">
141<a href="/diffs/commit/SHA40?view=unified" class="btn vbtn" data-view="unified" aria-keyshortcuts="u" 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>
142</a>
143<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'" aria-current="true" 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>
144</a>
145<button type="button" aria-keyshortcuts="x" data-js data-fire="collapse" class="btn">
146<span hx-live="this.textContent = q('[data-file][open]').count || !q('[data-file]').count ? 'Collapse all' : 'Expand all'">Collapse all</span>
147<kbd aria-hidden="true">x</kbd>
148</button>
149</div>
150</details>
151</div>
152<div id="diffs" data-diff="split">
153<details class="dfile lnw-2" id="f1" data-file="a.txt" open>
154<summary>
155<span class="st">M</span>
156<span class="p">a.txt</span>
157<span class="plus">+2</span>
158<span class="minus">-1</span>
159</summary>
160<div class="dscroll">
161<table class="dt uni" aria-label="a.txt, unified">
162<tbody>
163<tr class="hunk">
164<td colspan="4">@@ -1,5 +1,6 @@</td>
165</tr>
166<tr class="ctx">
167<td class="ln">1</td>
168<td class="ln">1</td>
169<td class="m">
170</td>
171<td class="tx chroma">one</td>
172</tr>
173<tr class="del">
174<td class="ln">2</td>
175<td class="ln">
176</td>
177<td class="m">-</td>
178<td class="tx chroma">two</td>
179</tr>
180<tr class="add">
181<td class="ln">
182</td>
183<td class="ln">2</td>
184<td class="m">+</td>
185<td class="tx chroma">2</td>
186</tr>
187<tr class="ctx">
188<td class="ln">3</td>
189<td class="ln">3</td>
190<td class="m">
191</td>
192<td class="tx chroma">three</td>
193</tr>
194<tr class="ctx">
195<td class="ln">4</td>
196<td class="ln">4</td>
197<td class="m">
198</td>
199<td class="tx chroma">four</td>
200</tr>
201<tr class="ctx">
202<td class="ln">5</td>
203<td class="ln">5</td>
204<td class="m">
205</td>
206<td class="tx chroma">five</td>
207</tr>
208<tr class="add">
209<td class="ln">
210</td>
211<td class="ln">6</td>
212<td class="m">+</td>
213<td class="tx chroma">six</td>
214</tr>
215</tbody>
216</table>
217<table class="dt spl" aria-label="a.txt, split">
218<colgroup>
219<col class="c-ln">
220<col class="c-m">
221<col>
222<col class="c-ln">
223<col class="c-m">
224<col>
225</colgroup>
226<tbody>
227<tr class="hunk">
228<td colspan="6">@@ -1,5 +1,6 @@</td>
229</tr>
230<tr>
231<td class="ln ctx">1</td>
232<td class="m ctx">
233</td>
234<td class="tx chroma ctx">one</td>
235<td class="ln ctx">1</td>
236<td class="m ctx">
237</td>
238<td class="tx chroma ctx">one</td>
239</tr>
240<tr>
241<td class="ln del">2</td>
242<td class="m del">-</td>
243<td class="tx chroma del">two</td>
244<td class="ln add">2</td>
245<td class="m add">+</td>
246<td class="tx chroma add">2</td>
247</tr>
248<tr>
249<td class="ln ctx">3</td>
250<td class="m ctx">
251</td>
252<td class="tx chroma ctx">three</td>
253<td class="ln ctx">3</td>
254<td class="m ctx">
255</td>
256<td class="tx chroma ctx">three</td>
257</tr>
258<tr>
259<td class="ln ctx">4</td>
260<td class="m ctx">
261</td>
262<td class="tx chroma ctx">four</td>
263<td class="ln ctx">4</td>
264<td class="m ctx">
265</td>
266<td class="tx chroma ctx">four</td>
267</tr>
268<tr>
269<td class="ln ctx">5</td>
270<td class="m ctx">
271</td>
272<td class="tx chroma ctx">five</td>
273<td class="ln ctx">5</td>
274<td class="m ctx">
275</td>
276<td class="tx chroma ctx">five</td>
277</tr>
278<tr>
279<td class="ln none">
280</td>
281<td class="m none">
282</td>
283<td class="tx none">
284</td>
285<td class="ln add">6</td>
286<td class="m add">+</td>
287<td class="tx chroma add">six</td>
288</tr>
289</tbody>
290</table>
291</div>
292</details>
293<details class="dfile lnw-2" id="f2" data-file="run.sh">
294<summary>
295<span class="st">M</span>
296<span class="p">run.sh</span>
297<span class="plus">+0</span>
298<span class="minus">-0</span>
299<span class="note">mode 100644 → 100755</span>
300</summary>
301<p class="note pad">mode 100644 → 100755</p>
302</details>
303</div>
304</main>
305<aside class="rail" aria-label="Context">
306<section aria-labelledby="r-files">
307<h2 id="r-files">Files <span class="count">2</span>
308</h2>
309<ol class="files" aria-label="Changed files">
310<li>
311<a href="#f1" title="a.txt" hx-on:click="(window.ermiteMR?.openFile || ermite.openFile)(this.hash.slice(1))">
312<span class="st" data-st="M" title="modified">M</span>
313<span class="nm">
314<span class="p">a.txt</span>
315<span class="d">
316<bdi>
317</bdi>
318</span>
319</span>
320<span class="n">
321<span class="plus">+2</span>
322<span class="minus">-1</span>
323</span>
324</a>
325</li>
326<li>
327<a href="#f2" title="run.sh" hx-on:click="(window.ermiteMR?.openFile || ermite.openFile)(this.hash.slice(1))">
328<span class="st" data-st="M" title="modified">M</span>
329<span class="nm">
330<span class="p">run.sh</span>
331<span class="d">
332<bdi>
333</bdi>
334</span>
335</span>
336<span class="n">
337<span class="plus">+0</span>
338<span class="minus">-0</span>
339</span>
340</a>
341</li>
342</ol>
343</section>
344</aside>
345</div>
346<footer class="foot">
347<span>ermite devel</span>
348<a href="http://example.test/ermite" rel="noopener" title="source of this version (AGPL-3.0-or-later)">source</a>
349<button type="button" class="foot-keys" data-js data-fire="help" aria-haspopup="dialog" aria-controls="panel-help" aria-keyshortcuts="?">
350<kbd aria-hidden="true">?</kbd> keyboard shortcuts</button>
351<button type="button" class="foot-theme" data-js data-theme-switch aria-label="theme: auto (switch to light)" title="theme: auto (switch to light)">
352<span class="ico i-sun-moon" aria-hidden="true">
353</span>
354</button>
355</footer>
356<div class="hint">
357<span aria-hidden="true" class="hint-nav" :text="document.body.dataset.nav || ''">
358</span>
359<span role="status" aria-live="polite">
360<span class="hint-sel" :text="document.body.dataset.sel ? document.body.dataset.sel + ' · y permalink' : ''">
361</span>
362<span class="hint-flash" :text="document.body.dataset.flash || ''">
363</span>
364</span>
365</div>
366<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()">
367<div class="panel-head">
368<h2>Keyboard shortcuts</h2>
369<button type="button" class="panel-x" aria-label="Close (esc)" hx-on:click="closest('dialog').close()">
370<kbd>esc</kbd> close</button>
371</div>
372<div class="keys-pref">
373<label>
374<input type="checkbox" id="keys-off" aria-describedby="keys-note" hx-on:change="ermite.setKeysOff(this.checked)"> Turn off single-key shortcuts</label>
375<p id="keys-note" class="dim">Single-key shortcuts are on. ctrl k and esc work whatever this says.</p>
376</div>
377<dl class="keys">
378<div>
379<dt>
380<kbd>ctrl k</kbd>
381<kbd>:</kbd>
382</dt>
383<dd>go to a section, branch, tag, file or repository</dd>
384</div>
385<div>
386<dt>
387<kbd>?</kbd>
388</dt>
389<dd>this list</dd>
390</div>
391<div>
392<dt>
393<kbd>j</kbd>
394<kbd>k</kbd>
395</dt>
396<dd>move the row cursor down / up</dd>
397</div>
398<div>
399<dt>
400<kbd>enter</kbd>
401</dt>
402<dd>open the row under the cursor; on Files, a directory opens or closes in place</dd>
403</div>
404<div>
405<dt>
406<kbd>↑</kbd>
407<kbd>↓</kbd>
408<kbd>←</kbd>
409<kbd>→</kbd>
410<kbd>home</kbd>
411<kbd>end</kbd>
412</dt>
413<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>
414</div>
415<div>
416<dt>
417<kbd>l</kbd>
418<kbd>h</kbd>
419</dt>
420<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>
421</div>
422<div>
423<dt>
424<kbd>g g</kbd>
425<kbd>G</kbd>
426</dt>
427<dd>first / last row</dd>
428</div>
429<div>
430<dt>
431<kbd>/</kbd>
432</dt>
433<dd>filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)</dd>
434</div>
435<div>
436<dt>
437<kbd>b</kbd>
438</dt>
439<dd>switch branch or tag</dd>
440</div>
441<div>
442<dt>
443<kbd>g s</kbd>
444<kbd>g f</kbd>
445<kbd>g c</kbd>
446<kbd>g b</kbd>
447<kbd>g m</kbd>
448<kbd>g i</kbd>
449<kbd>g r</kbd>
450<kbd>g a</kbd>
451</dt>
452<dd>tabs: summary, files, commits, branches &amp; tags, merge requests, issues, releases, actions (when available)</dd>
453</div>
454<div>
455<dt>
456<kbd>g h</kbd>
457</dt>
458<dd>home</dd>
459</div>
460<div>
461<dt>
462<kbd>w</kbd>
463</dt>
464<dd>wide mode: use the whole width of the screen, or not (remembered)</dd>
465</div>
466<div>
467<dt>
468<kbd>y</kbd>
469</dt>
470<dd>copy a permalink pinned to the commit</dd>
471</div>
472<div>
473<dt>
474<kbd>d</kbd>
475<kbd>u</kbd>
476<kbd>x</kbd>
477</dt>
478<dd>diff: split / unified / collapse or expand all</dd>
479</div>
480<div>
481<dt>
482<kbd>e</kbd>
483<kbd>E</kbd>
484</dt>
485<dd>diff: the whole file in view / every file, with the lines the hunks hide</dd>
486</div>
487<div>
488<dt>
489<kbd>n</kbd>
490</dt>
491<dd>merge request: next note in the diff</dd>
492</div>
493<div>
494<dt>
495<kbd>esc</kbd>
496</dt>
497<dd>close a dialog, leave a field</dd>
498</div>
499</dl>
500</dialog>
501<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()">
502<div class="panel-head">
503<label for="refs-filter" class="sr">filter branches and tags</label>
504<input id="refs-filter" type="search" placeholder="Switch branch or tag…" autocomplete="off" data-pick="#panel-refs li" hx-on:input="ermite.filter(this)">
505<button type="button" class="panel-x" aria-label="Close (esc)" hx-on:click="closest('dialog').close()">
506<kbd>esc</kbd>
507</button>
508</div>
509<div class="panel-cols" data-picklist>
510<section aria-label="Branches">
511<h2>Branches <span class="count">2</span>
512</h2>
513<ul>
514<li>
515<a href="/diffs/tree/main">
516<span class="mark" aria-hidden="true">&nbsp;</span>main</a>
517</li>
518<li>
519<a href="/diffs/tree/side">
520<span class="mark" aria-hidden="true">&nbsp;</span>side</a>
521</li>
522</ul>
523</section>
524<section aria-label="Tags">
525<h2>Tags <span class="count">1</span>
526</h2>
527<ul>
528<li>
529<a href="/diffs/tree/v1.0.0">
530<span class="mark" aria-hidden="true">&nbsp;</span>v1.0.0</a>
531</li>
532</ul>
533</section>
534</div>
535</dialog>
536<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()">
537<div class="panel-head">
538<label for="cmd-q" class="sr">go to</label>
539<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)">
540<button type="button" class="panel-x" aria-label="Close (esc)" hx-on:click="closest('dialog').close()">
541<kbd>esc</kbd>
542</button>
543</div>
544<ul id="cmd-list" class="cmd-list" role="listbox" aria-label="Targets">
545<li id="cmd-o0" role="option" aria-selected="true" data-k="go home" data-cursor>
546<a role="presentation" data-href="/">
547<span class="lbl">home</span>
548<span class="k">go</span>
549</a>
550</li>
551<li id="cmd-o1" role="option" aria-selected="false" data-k="section summary (g s)">
552<a role="presentation" data-href="/diffs">
553<span class="lbl">summary (g s)</span>
554<span class="k">section</span>
555</a>
556</li>
557<li id="cmd-o2" role="option" aria-selected="false" data-k="section files (g f)">
558<a role="presentation" data-href="/diffs/tree/main">
559<span class="lbl">files (g f)</span>
560<span class="k">section</span>
561</a>
562</li>
563<li id="cmd-o3" role="option" aria-selected="false" data-k="section commits (g c)">
564<a role="presentation" data-href="/diffs/commits/main">
565<span class="lbl">commits (g c)</span>
566<span class="k">section</span>
567</a>
568</li>
569<li id="cmd-o4" role="option" aria-selected="false" data-k="section branches &amp; tags (g b)">
570<a role="presentation" data-href="/diffs/refs">
571<span class="lbl">branches &amp; tags (g b)</span>
572<span class="k">section</span>
573</a>
574</li>
575<li id="cmd-o5" role="option" aria-selected="false" data-k="section merge requests (g m)">
576<a role="presentation" data-href="/diffs/merge-requests">
577<span class="lbl">merge requests (g m)</span>
578<span class="k">section</span>
579</a>
580</li>
581<li id="cmd-o6" role="option" aria-selected="false" data-k="section releases (g r)">
582<a role="presentation" data-href="/diffs/releases">
583<span class="lbl">releases (g r)</span>
584<span class="k">section</span>
585</a>
586</li>
587<li id="cmd-o7" role="option" aria-selected="false" data-k="section actions (g a)">
588<a role="presentation" data-href="/diffs/actions">
589<span class="lbl">actions (g a)</span>
590<span class="k">section</span>
591</a>
592</li>
593<li id="cmd-o8" role="option" aria-selected="false" data-k="branch main">
594<a role="presentation" data-href="/diffs/tree/main">
595<span class="lbl">main</span>
596<span class="k">branch</span>
597</a>
598</li>
599<li id="cmd-o9" role="option" aria-selected="false" data-k="branch side">
600<a role="presentation" data-href="/diffs/tree/side">
601<span class="lbl">side</span>
602<span class="k">branch</span>
603</a>
604</li>
605<li id="cmd-o10" role="option" aria-selected="false" data-k="tag v1.0.0">
606<a role="presentation" data-href="/diffs/tree/v1.0.0">
607<span class="lbl">v1.0.0</span>
608<span class="k">tag</span>
609</a>
610</li>
611<li id="cmd-o11" role="option" aria-selected="false" data-k="action turn single-key shortcuts on off keyboard">
612<a role="presentation" data-fire="keys">
613<span class="lbl">turn single-key shortcuts off</span>
614<span class="k">action</span>
615</a>
616</li>
617</ul>
618<p class="panel-foot">
619<span>
620<kbd>↑</kbd>
621<kbd>↓</kbd> move</span>
622<span>
623<kbd>enter</kbd> open</span>
624<span>
625<kbd>esc</kbd> close</span>
626</p>
627</dialog>
628<div id="keys" hidden hx-on="k-j from:body -> ermite.move(1);
629         k-k from:body -> ermite.move(-1);
630         k-top from:body -> ermite.edge(false);
631         k-bottom from:body -> ermite.edge(true);
632         k-open from:body -> ermite.open();
633         k-right from:body -> ermite.rail(true);
634         k-left from:body -> ermite.rail(false);
635         k-esc from:body -> ermite.closeDialogs();
636         k-help from:body -> ermite.dialog('panel-help');
637         k-refs from:body -> ermite.dialog('panel-refs', 'refs-filter');
638         k-cmd from:body -> ermite.dialog('panel-cmd', 'cmd-q'); ermiteFinder.load();
639         k-filter from:body -> ermite.focusFilter();
640         k-gh from:body -> ermite.go('.brand');
641         k-s from:body -> ermite.tab('s');
642         k-f from:body -> ermite.tab('f');
643         k-b from:body -> ermite.tab('b');
644         k-a from:body -> ermite.tab('a');
645         k-c from:body -> ermite.tab('c');
646         k-r from:body -> ermite.tab('r');
647         k-m from:body -> ermite.tab('m');
648         k-i from:body -> ermite.tab('i');
649         k-inbox from:body -> ermite.go('[data-inbox]');
650         k-next from:body -> ermite.nextNote();
651         k-split from:body -> ermite.layout('split');
652         k-unified from:body -> ermite.layout('unified');
653         k-collapse from:body -> ermite.collapse();
654         k-wide from:body -> window.ermiteWide.toggle();
655         k-expand from:body -> ermite.expandFile();
656         k-expandAll from:body -> ermite.expandAll();
657         k-permalink from:body -> ermite.permalink();
658         k-merge from:body -> window.ermiteMR?.openMerge();
659         k-read from:body -> window.ermiteMR?.markRead();
660         k-keys from:body -> ermite.toggleKeys()">
661</div>
662</body>
663</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