<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="color-scheme" content="light dark">
<title>Twig — minimal code editor</title>
<style>
:root {
color-scheme: light dark;
--page-bg: #fff;
--text: #111;
--body-text: #444;
--muted: #888;
--subtle: #bbb;
--code-bg: #f2f2f2;
}
@media (prefers-color-scheme: dark) {
:root {
--page-bg: #111;
--text: #f2f2f2;
--body-text: #d0d0d0;
--muted: #a0a0a0;
--subtle: #777;
--code-bg: #242424;
}
}
body {
font-family: monospace;
font-size: 15px;
line-height: 1.7;
max-width: 600px;
margin: 60px auto;
padding: 0 20px 80px;
color: var(--text);
background: var(--page-bg);
}
h1 { font-size: 1.1rem; margin: 0 0 8px; }
h2 { font-size: 0.85rem; margin: 40px 0 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
p { color: var(--body-text); margin: 0 0 8px; }
ul { padding-left: 1.2em; color: var(--body-text); margin: 0; }
li { margin: 2px 0; }
table { border-collapse: collapse; width: 100%; font-size: 0.9rem; }
td { padding: 4px 0; vertical-align: top; }
td:first-child { width: 55%; color: var(--text); }
td:last-child { color: var(--muted); }
code { background: var(--code-bg); color: var(--text); padding: 1px 5px; }
a { color: var(--text); }
footer { margin-top: 48px; color: var(--subtle); font-size: 0.8rem; }
pre { background: var(--code-bg); padding: 12px; margin: 0; overflow-x: auto; }
.site-title { display: flex; justify-content: center; align-items: center; gap: 10px; margin-bottom: 25px; }
.site-title img { height: 150px; width: auto; }
</style>
</head>
<body>
<div class="site-title">
<img src="https://gitman.io/patx/twig/raw/docs/logo.png" alt="Twig logo">
</div>
<div class="site-title">
<h1>Twig Text Editor</h1>
</div>
<p><strong>Twig is an ultra-minimal and lightweight GTK code editor</strong> for Linux. No toolbar or menu bar, just code. <a href="https://gitman.io/patx/twig/raw/docs/screenshot.png" target="_blank">View screenshot</a>.</p>
<br>
<p><a href="https://gitman.io/patx/twig/raw/dist/twig_0.1.1_all.deb" target="_blank">Download/Install 64 bit .deb</a></p>
<p><small>You can also install from <a href="https://gitman.io/patx/twig" target="_blank">source</a> or use <a href="https://snapcraft.io/twig" target="_blank">Snap</a>.</small></p>
<h2>Features</h2>
<ul>
<li>Syntax highlighting</li>
<li>Line numbers</li>
<li>Find & replace</li>
<li>Undo / redo</li>
<li>Auto-indent</li>
<li>Dirty indicators</li>
<li>Jump to line</li>
<li>Print support</li>
</ul>
<h2>Keyboard shortcuts</h2>
<table>
<tr><td><code>Ctrl+N</code> / <code>Ctrl+T</code></td><td>New window</td></tr>
<tr><td><code>Ctrl+O</code></td><td>Open file(s)</td></tr>
<tr><td><code>Ctrl+S</code> / <code>Ctrl+Shift+S</code></td><td>Save / Save as</td></tr>
<tr><td><code>Ctrl+W</code></td><td>Close window</td></tr>
<tr><td><code>Ctrl+P</code></td><td>Print</td></tr>
<tr><td><code>Ctrl+Q</code></td><td>Quit</td></tr>
<tr><td><code>Ctrl+Z</code> / <code>Ctrl+Shift+Z</code></td><td>Undo / Redo</td></tr>
<tr><td><code>Ctrl+X</code> / <code>Ctrl+C</code> / <code>Ctrl+V</code></td><td>Cut / Copy / Paste</td></tr>
<tr><td><code>Ctrl+A</code></td><td>Select all</td></tr>
<tr><td><code>Ctrl+D</code></td><td>Delete line(s)</td></tr>
<tr><td><code>Ctrl+F</code> / <code>Ctrl+R</code></td><td>Find / Replace</td></tr>
<tr><td><code>Ctrl+G</code> / <code>Ctrl+Shift+G</code></td><td>Find next / previous</td></tr>
<tr><td><code>Ctrl+J</code></td><td>Jump to line</td></tr>
<tr><td><code>Ctrl++</code> / <code>Ctrl+-</code></td><td>Increase / decrease editor font size</td></tr>
<tr><td><code>Tab</code> / <code>Shift+Tab</code></td><td>Indent / Unindent</td></tr>
</table>
<footer>View source and report issues at <a href="https://gitman.io/patx/twig">gitman.io/patx/twig</a> · MIT license</footer>
</body>
</html>