diff --git a/.vitepress/config.mjs b/.vitepress/config.mjs index f754969..ee49952 100644 --- a/.vitepress/config.mjs +++ b/.vitepress/config.mjs @@ -33,9 +33,13 @@ export default defineConfig({ })], }, themeConfig: { - logo: { src: '/media/logo-small.svg', alt: 'Among Terminal' }, + logo: { + light: '/media/logo-small.svg', + dark: '/media/logo-small-cream.svg', + alt: 'Among Terminal', + }, nav: [ - { text: 'Features', link: '/features/' }, + { text: 'Panes', link: '/panes/' }, { text: 'Plugins', link: '/plugins/' }, { text: 'Install', link: '/install/' }, ], @@ -43,28 +47,26 @@ export default defineConfig({ { text: 'Using Among Terminal', items: [ - { text: 'Start here', link: '/' }, - { text: 'Features', link: '/features/' }, { text: 'Panes and workspaces', link: '/panes/' }, + { text: 'Terminal notifications', link: '/notifications/' }, { text: 'Sessions', link: '/sessions/' }, + { text: 'Using plugins', link: '/plugins/' }, { text: 'Keyboard shortcuts', link: '/shortcuts/' }, { text: 'Preferences', link: '/preferences/' }, - { text: 'Using plugins', link: '/plugins/' }, ], }, { text: 'Resources', items: [ - { text: 'Video overview', link: '/overview/' }, { text: 'Installation', link: '/install/' }, { text: 'Licensing', link: '/licensing/' }, ], }, { - text: 'Development resources', + text: 'For contributors', items: [ - { text: 'Plugin author guide and API', link: 'https://github.com/Among-Terminal/among-plugin-template' }, - { text: 'Contributing to Among', link: 'https://github.com/Among-Terminal/among/blob/main/CONTRIBUTING.md' }, + { text: 'Plugin development', link: '/plugin-development/' }, + { text: 'Building and contributing', link: '/build/' }, ], }, ], @@ -72,7 +74,7 @@ export default defineConfig({ outline: [2, 3], socialLinks: [{ icon: 'github', link: 'https://github.com/Among-Terminal/among' }], footer: { - message: 'Apache-2.0 · llms.txt · Full documentation for LLMs', + message: 'Apache-2.0 · Licensing · Source code', }, }, }) diff --git a/.vitepress/theme/InstallCard.vue b/.vitepress/theme/InstallCard.vue new file mode 100644 index 0000000..fcb050f --- /dev/null +++ b/.vitepress/theme/InstallCard.vue @@ -0,0 +1,126 @@ + + + diff --git a/.vitepress/theme/LandingVideo.vue b/.vitepress/theme/LandingVideo.vue new file mode 100644 index 0000000..12a81b1 --- /dev/null +++ b/.vitepress/theme/LandingVideo.vue @@ -0,0 +1,52 @@ + + + diff --git a/.vitepress/theme/Layout.vue b/.vitepress/theme/Layout.vue new file mode 100644 index 0000000..a47256f --- /dev/null +++ b/.vitepress/theme/Layout.vue @@ -0,0 +1,11 @@ + + + diff --git a/.vitepress/theme/MediaPreview.vue b/.vitepress/theme/MediaPreview.vue new file mode 100644 index 0000000..7948e7b --- /dev/null +++ b/.vitepress/theme/MediaPreview.vue @@ -0,0 +1,71 @@ + + + diff --git a/.vitepress/theme/PluginComparison.vue b/.vitepress/theme/PluginComparison.vue new file mode 100644 index 0000000..a727943 --- /dev/null +++ b/.vitepress/theme/PluginComparison.vue @@ -0,0 +1,71 @@ + + + diff --git a/.vitepress/theme/custom.css b/.vitepress/theme/custom.css index d88a657..fc69d4a 100644 --- a/.vitepress/theme/custom.css +++ b/.vitepress/theme/custom.css @@ -21,3 +21,705 @@ height: auto; border-radius: 8px; } + +.vp-doc figure { + margin: 24px 0; +} + +.vp-doc figcaption, +.showcase figcaption { + margin-top: 12px; + color: var(--vp-c-text-2); + font-size: 14px; + line-height: 1.6; +} + +.bell-clip { + max-width: 614px; + margin: 16px 0; +} + +.notification-clip { + margin: 16px 0; +} + +.bell-clip video, +.notification-clip video { + display: block; + width: 100%; + height: auto; + border-radius: 8px; +} + +.showcase-film { + margin: 48px 0 24px; +} + +.showcase-film video { + display: block; + width: 100%; + height: auto; + border-radius: 12px; + background: #000; +} + +.notification-banner { + max-width: 640px; +} + +.showcase { + max-width: 1120px; + margin: 0 auto; + padding: 64px 32px; + color: var(--vp-c-text-1); + font-size: 17px; + line-height: 1.7; +} + +.showcase-intro { + max-width: 780px; + margin-bottom: 36px; +} + +.showcase .eyebrow { + margin: 0 0 16px; + color: var(--vp-c-brand-1); + font-size: 15px; + font-weight: 600; +} + +.showcase h1 { + margin: 0 0 24px; + font-size: clamp(36px, 5vw, 60px); + line-height: 1.1; + font-weight: 700; + letter-spacing: -0.035em; +} + +.showcase .intro-copy { + max-width: 660px; + font-size: 21px; + line-height: 1.6; +} + +.showcase-actions { + display: flex; + flex-wrap: wrap; + align-items: center; + gap: 16px 24px; + margin-top: 28px; +} + +.showcase a { + color: var(--vp-c-brand-1); + text-decoration: underline; + text-underline-offset: 4px; +} + +.showcase a:hover { + color: var(--vp-c-brand-2); +} + +.showcase a.showcase-button { + display: inline-block; + padding: 12px 22px; + border-radius: 8px; + background: var(--vp-c-brand-1); + color: var(--vp-c-bg); + font-size: 16px; + font-weight: 600; + text-decoration: none; +} + +.showcase a.showcase-button:hover { + background: var(--vp-c-brand-2); +} + +.showcase a:focus-visible { + outline: 3px solid var(--vp-c-brand-1); + outline-offset: 5px; +} + +.showcase img { + display: block; + max-width: 100%; + height: auto; + border: 1px solid var(--vp-c-divider); + border-radius: 8px; +} + +.showcase-hero { + margin: 0 0 64px; +} + +.showcase-benefits { + display: grid; + grid-template-columns: repeat(2, minmax(0, 1fr)); + gap: 56px 40px; +} + +.showcase-benefit { + min-width: 0; +} + +.showcase-notifications { + grid-column: 1 / -1; +} + +.showcase h2 { + margin: 0 0 16px; + border: 0; + padding: 0; + font-size: 26px; + line-height: 1.3; + font-weight: 600; + letter-spacing: -0.02em; +} + +.showcase p { + margin: 16px 0; +} + +.showcase-benefit img, +.showcase-benefit video { + margin-top: 24px; +} + +.showcase .workspace-detail { + margin: 24px 0; +} + +.showcase-start { + margin-top: 64px; + border-top: 1px solid var(--vp-c-divider); + padding-top: 40px; +} + +@media (max-width: 639px) { + .showcase { + padding: 40px 24px; + } + + .showcase .intro-copy { + font-size: 18px; + } + + .showcase-benefits { + grid-template-columns: 1fr; + gap: 40px; + } + + .showcase-hero { + margin-bottom: 40px; + } +} + +/* Image preview ------------------------------------------------------- */ + +.vp-doc img, +.showcase img { + cursor: zoom-in; +} + +body.media-preview-open { + overflow: hidden; +} + +.media-preview { + max-width: none; + max-height: none; + margin: auto; + padding: 0; + border: 0; + background: transparent; + overflow: visible; + color: #fff; +} + +.media-preview[open] { + display: flex; + flex-direction: column; + align-items: center; + gap: 12px; +} + +.media-preview::backdrop { + background: rgba(8, 11, 16, 0.88); + backdrop-filter: blur(3px); +} + +.media-preview img { + max-width: 92vw; + max-height: 84vh; + width: auto; + height: auto; + border: 1px solid rgba(255, 255, 255, 0.16); + border-radius: 8px; + box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5); + cursor: default; +} + +.media-preview-caption { + max-width: min(92vw, 900px); + margin: 0; + color: rgba(255, 255, 255, 0.82); + font-size: 14px; + line-height: 1.5; + text-align: center; +} + +.media-preview-close { + position: fixed; + top: 16px; + right: 16px; + display: grid; + place-items: center; + width: 40px; + height: 40px; + border: 1px solid rgba(255, 255, 255, 0.24); + border-radius: 999px; + background: rgba(20, 24, 30, 0.8); + color: #fff; + font-size: 24px; + line-height: 1; + cursor: pointer; +} + +.media-preview-close:hover { + background: rgba(40, 46, 56, 0.95); +} + +.media-preview-close:focus-visible { + outline: 3px solid #ffc247; + outline-offset: 3px; +} + +@media (max-width: 639px) { + .media-preview img { + max-width: 94vw; + max-height: 78vh; + } + + .media-preview-close { + top: 10px; + right: 10px; + } +} + +/* Plugin before/after comparison ------------------------------------- */ + +.plugin-comparison { + margin: 24px 0; +} + +.comparison-frame { + position: relative; + overflow: hidden; + aspect-ratio: 1600 / 1000; + border: 1px solid var(--vp-c-divider); + border-radius: 8px; + background: #20262f; +} + +.comparison-frame:has(.comparison-toggle:focus-visible) { + outline: 3px solid var(--vp-c-brand-1); + outline-offset: 3px; +} + +.comparison-layer { + position: absolute; + inset: 0; + transition: opacity 0.6s ease; +} + +.comparison-layer.hidden { + opacity: 0; +} + +.comparison-layer.comparison-after { + opacity: 0; +} + +.comparison-layer.comparison-after.visible { + opacity: 1; +} + +.comparison-image { + display: block; + width: 100%; + height: 100%; + object-fit: cover; +} + +.comparison-tag { + position: absolute; + bottom: 12px; + left: 12px; + z-index: 2; + padding: 4px 8px; + border-radius: 4px; + background: rgba(20, 24, 30, 0.72); + color: #fff; + font-size: 12px; + line-height: 1.4; + pointer-events: none; +} + + +.comparison-toggle { + position: absolute; + right: 12px; + bottom: 12px; + z-index: 2; + padding: 4px 8px; + border: 1px solid rgba(255, 255, 255, 0.3); + border-radius: 4px; + background: rgba(20, 24, 30, 0.72); + color: #fff; + font-size: 12px; + line-height: 1.4; + cursor: pointer; +} + +.plugin-comparison figcaption { + margin-top: 12px; + color: var(--vp-c-text-2); + font-size: 14px; + line-height: 1.6; +} + +/* Landing ------------------------------------------------------------ */ + +.visually-hidden { + position: absolute !important; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0, 0, 0, 0); + white-space: nowrap; + border: 0; +} + +.landing { + max-width: 1180px; + padding-top: 40px; +} + +.landing-hero { + max-width: 1080px; + margin: 0 auto 40px; +} + +.landing-hero video { + display: block; + width: 100%; + height: auto; + border-radius: 12px; + background: #000; +} + +.landing-links { + display: grid; + grid-template-columns: repeat(3, minmax(0, 1fr)); + gap: 12px; + max-width: 1080px; + margin: 0 auto 48px; +} + +.landing-links a { + display: flex; + flex-direction: column; + gap: 6px; + padding: 16px 18px; + border: 1px solid var(--vp-c-divider); + border-radius: 10px; + color: var(--vp-c-text-1); + background: var(--vp-c-bg-soft); + text-decoration: none; +} + +.landing-links a:hover { + border-color: var(--vp-c-brand-1); +} + +.landing-links strong { + font-size: 16px; +} + +.landing-links span { + color: var(--vp-c-text-2); + font-size: 14px; + line-height: 1.5; +} + +.landing-install { + max-width: 1080px; + margin: 0 auto 24px; +} + +.install-card { + padding: 24px; + border: 1px solid var(--vp-c-divider); + border-radius: 12px; + background: var(--vp-c-bg-soft); +} + +.install-head { + display: flex; + align-items: flex-start; + justify-content: space-between; + gap: 16px; +} + +.install-eyebrow { + margin: 0; + color: var(--vp-c-brand-1); + font-size: 13px; + font-weight: 600; + letter-spacing: 0.04em; + text-transform: uppercase; +} + +.install-card h2 { + margin: 4px 0 0; + font-size: 24px; + letter-spacing: -0.02em; +} + +.install-arch, +.install-tabs { + display: flex; + flex-wrap: wrap; + gap: 6px; +} + +.install-tabs { + margin: 20px 0 14px; + padding-bottom: 14px; + border-bottom: 1px solid var(--vp-c-divider); +} + +.install-chip, +.install-tab, +.install-copy, +.install-download { + border: 1px solid var(--vp-c-divider); + border-radius: 6px; + background: var(--vp-c-bg); + color: var(--vp-c-text-1); + font: inherit; + font-size: 13px; + line-height: 1.4; + padding: 6px 10px; + cursor: pointer; + text-decoration: none; +} + +.install-chip.active, +.install-tab.active { + border-color: var(--vp-c-brand-1); + background: var(--vp-c-brand-1); + color: var(--vp-c-bg); +} + +.install-tab:hover, +.install-chip:hover, +.install-copy:hover, +.install-download:hover { + border-color: var(--vp-c-brand-1); +} + +.install-rows { + display: flex; + flex-direction: column; +} + +.install-row { + display: grid; + grid-template-columns: 96px minmax(0, 1fr) auto; + align-items: center; + gap: 12px; + padding: 12px 0; + border-bottom: 1px solid var(--vp-c-divider); +} + +.install-row:last-child { + border-bottom: 0; +} + +.install-label { + color: var(--vp-c-text-2); + font-size: 13px; + font-weight: 600; +} + +.install-value { + min-width: 0; + overflow-wrap: anywhere; + font-family: var(--vp-font-family-mono); + font-size: 13px; + line-height: 1.5; +} + +.install-copy, +.install-download { + white-space: nowrap; +} + +.install-note { + margin: 12px 0 0; + color: var(--vp-c-text-2); + font-size: 13px; + line-height: 1.5; +} + +.install-more { + margin: 8px 0 0; + font-size: 13px; +} + +@media (max-width: 900px) { + .landing-links { + grid-template-columns: repeat(2, minmax(0, 1fr)); + } +} + +@media (max-width: 640px) { + .landing-links { + grid-template-columns: 1fr; + } + + .install-head { + flex-direction: column; + } + + .install-row { + grid-template-columns: 1fr; + gap: 6px; + } + + .install-copy, + .install-download { + justify-self: start; + } +} + +.landing-about { + max-width: 1080px; + margin: 32px auto 0; + padding-top: 24px; + border-top: 1px solid var(--vp-c-divider); +} + +.landing-about h2 { + margin: 0 0 8px; + font-size: 20px; +} + +.landing-about p { + margin: 0; + color: var(--vp-c-text-2); + font-size: 15px; + line-height: 1.6; +} + +/* Landing player ------------------------------------------------------ */ + +.landing-player { + position: relative; + max-width: 1080px; + margin: 0 auto 40px; + overflow: hidden; + border-radius: 12px; + background: #000; +} + +.landing-player-video { + display: block; + width: 100%; + height: auto; + aspect-ratio: 16 / 9; + background: #000; +} + +.landing-play { + position: absolute; + inset: 0; + display: flex; + flex-direction: column; + align-items: center; + justify-content: flex-end; + gap: 14px; + padding-bottom: 28px; + border: 0; + background: linear-gradient(rgba(9, 11, 15, 0.12), rgba(9, 11, 15, 0.42)); + color: #fff; + cursor: pointer; +} + +.landing-play-icon { + display: block; + width: 78px; + height: 78px; + border: 2px solid #fff; + border-radius: 999px; + background: rgba(9, 11, 15, 0.45); + box-shadow: 0 0 0 8px rgba(9, 11, 15, 0.18); + transition: border-color 0.2s ease, transform 0.2s ease; +} + +.landing-play-icon::before { + content: ''; + display: block; + width: 0; + height: 0; + margin: 25px 0 0 31px; + border-top: 12px solid transparent; + border-bottom: 12px solid transparent; + border-left: 19px solid #fff; +} + +.landing-play-label { + padding: 6px 12px; + border-radius: 6px; + background: rgba(9, 11, 15, 0.62); + font-size: 15px; + font-weight: 600; +} + +.landing-play:hover .landing-play-icon, +.landing-play:focus-visible .landing-play-icon { + border-color: var(--vp-c-brand-1); + transform: scale(1.04); +} + +.landing-play:focus-visible { + outline: 3px solid var(--vp-c-brand-1); + outline-offset: -3px; +} + +.landing-player.started .landing-play { + display: none; +} + + +.comparison-layer.hidden, +.comparison-layer.comparison-after { + pointer-events: none; +} + +.comparison-layer.comparison-after.visible { + pointer-events: auto; +} + +.comparison-layer a { + display: block; + width: 100%; + height: 100%; +} + +.VPFooter.VPFooter { + border-top: none !important; +} diff --git a/.vitepress/theme/index.js b/.vitepress/theme/index.js index 42fe9a9..99155a2 100644 --- a/.vitepress/theme/index.js +++ b/.vitepress/theme/index.js @@ -1,4 +1,16 @@ import DefaultTheme from 'vitepress/theme' +import Layout from './Layout.vue' +import PluginComparison from './PluginComparison.vue' +import InstallCard from './InstallCard.vue' +import LandingVideo from './LandingVideo.vue' import './custom.css' -export default DefaultTheme +export default { + extends: DefaultTheme, + Layout, + enhanceApp({ app }) { + app.component('PluginComparison', PluginComparison) + app.component('InstallCard', InstallCard) + app.component('LandingVideo', LandingVideo) + }, +} diff --git a/README.md b/README.md index 91352b3..bfded2e 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ npm run build npm run check ``` -Directory-based pages preserve the existing routes, such as `/features/` and +Directory-based pages preserve the existing routes, such as `/panes/` and `/plugin-development/`. Adapt repository-relative links to these public routes; do not copy internal recording tools, rehearsal reports or local machine paths. diff --git a/docs/features/index.md b/docs/features/index.md deleted file mode 100644 index eda20df..0000000 --- a/docs/features/index.md +++ /dev/null @@ -1,120 +0,0 @@ ---- -title: Features in practice ---- - -# Features in practice - -Among Terminal keeps native VTE terminals in a single GNOME window. Use a -workspace for each project and split its terminals as needed. - -The recordings show an earlier interface. The demonstrated pane and workspace -actions still apply, but action messages no longer appear as bottom popups. - -## Split and resize terminals - -Press `Ctrl+Shift+N` to split the focused pane. A wide pane splits side by side; -a tall pane splits top to bottom. The new shell starts in the original pane's -known directory. Drag a divider or use `Ctrl+Shift` with an arrow to move it. - -[![Separate terminals running a listing, file manager and process monitor](/media/features/02-split-resize.png)](/media/features/02-split-resize.mp4) - -The recording uses `ll`, `mc` and `htop` as examples. Among does not install -these tools. See [splitting a pane](/panes/#splitting-a-pane) and -[default shortcuts](/shortcuts/#defaults). - -Watch [keyboard resizing](/media/features/02b-keyboard-resize.mp4) or -[mouse resizing](/media/features/02c-mouse-resize.mp4). - -## Move panes and organize workspaces - -Drag a pane header onto another pane's edge to rearrange the layout, or onto -a workspace in the sidebar to move the terminal there. Its running process -stays with it. - -Watch [moving a pane by its header](/media/features/03-pane-drag.mp4). - -Create a workspace with `Ctrl+Shift+T`. Double-click its name to rename it, -drag its entry to reorder it, or drag the sidebar's right edge to resize the -list. [Workspace controls](/panes/#workspaces) explain naming, ordering and -the collapsed sidebar. - -Watch [creating, renaming and switching workspaces](/media/features/05-workspaces.mp4) -or [collapsing and expanding the sidebar](/media/features/05b-sidebar.mp4). - -## Focus, expand and restore - -Use `Alt+Arrow` to move between panes. `Ctrl+Shift+X` expands the focused pane -to fill its workspace. Press it again or use Restore pane in the header to -return to the layout. Hidden terminals keep running. Restore the layout before -splitting or moving focus with an arrow. `F11` toggles fullscreen. - -See [expanding a pane](/panes/#expanding-a-pane). - -Watch [moving focus](/media/features/04-focus.mp4), -[expanding and restoring a pane](/media/features/04b-zoom.mp4), or -[toggling fullscreen](/media/features/04c-fullscreen.mp4). - -## Clipboard and links - -Right-click a terminal or press `Shift+F10` for copy, paste and pane actions. -Use `Shift+right-click` when a terminal program handles mouse input. -`Ctrl+left-click` opens supported links with the desktop handler. - -[The terminal menu and link guide](/panes/#terminal-context-menu) covers -selection, pasted commands and supported link types. - -## Scrollback - -Mouse-wheel scrolling follows VTE's row-based behaviour. Touchpad scrolling -uses the gesture's distance, converted to text rows. A full-screen editor, -pager or monitor receives scrolling as its own input. Each pane keeps its own -scroll position. - -## Terminal notifications - -An unfocused terminal can mark its pane and workspace when it rings a bell. -Desktop notifications can bring you back to the terminal that rang. - -![A terminal bell marks its pane and workspace](/media/app/main-window-bell.png) - -[Notification preferences](/preferences/#notifications) control when indicators, -desktop delivery, sound and configured commands run. - -## Optional plugins - -Install a clock, resource meters or per-pane directory labels from Settings. -Application packages contain no plugins. Each new installation stays disabled -until you review its access and enable it. - -![Installed and available plugins in Preferences](/media/preferences/plugins.png) - -The screenshot includes sample plugins. See [official plugins](/plugins/#installing-official-plugins) -and [plugin protection](/plugins/#confinement) for the available functions and -their limits. - -## Session restoration - -On a new launch, choose Restore to reopen a saved layout in fresh shells. -Commands, running tools and scrollback are not resumed. See -[sessions](/sessions/) for saved state, directory reporting and recovery. - -Watch [restoring a layout in fresh shells](/media/features/07-session-restore.mp4). -The recording runs `ll` manually after restoration. - -## Closing a pane - -Watch [closing a pane and continuing in its surviving sibling](/media/features/08-close-pane.mp4). -See [closing and exiting](/panes/#closing-and-exiting) for the controls and -confirmation rules. - -## Appearance and keyboard controls - -Choose text/background colours and an ANSI palette independently in -[Terminal preferences](/preferences/#terminal). Changes apply to open terminals -without restarting their shells. Configure your prompt in the shell itself. - -![Terminal colour choices in Preferences](/media/preferences/terminal.png) - -The [Keyboard page](/shortcuts/#preferences) changes or removes bindings. -The [overview videos](/overview/) show earlier workflows; these written guides -cover the current controls without requiring video playback. diff --git a/docs/index.md b/docs/index.md index 958a9df..466a3ab 100644 --- a/docs/index.md +++ b/docs/index.md @@ -1,44 +1,50 @@ --- title: Among Terminal +description: A native GNOME terminal for developers working across several shells. Arrange tools in panes and keep tasks in named workspaces. +layout: page +sidebar: false +outline: false --- -# Among Terminal - -Among Terminal is a native GNOME terminal with split panes, named workspaces -and optional status and notification plugins. These guides cover version 0.2.0. - -![Among Terminal with two panes and a workspace sidebar](/media/app/main-window.png) - -## Get started - -[Install Among Terminal](/install/), then open it from your applications menu. -The installation guide covers DEB, RPM, AppImage and binary archives, with -checksums, updates and removal instructions. - -Press `Ctrl+Shift+N` to split a terminal or `Ctrl+Shift+T` to create a workspace. -Use `Ctrl+,` to open Settings. +
+ + + + + + + +
+ +
-## Work with several terminals - -- [Split, resize and move panes](/panes/), including moving a live terminal to - another workspace. -- [Name and reorder workspaces](/panes/#workspaces) in the sidebar. -- [Restore a saved session](/sessions/) with fresh shells in known directories. -- [Choose keyboard shortcuts](/shortcuts/) for pane and workspace controls. - -[Explore the features](/features/) or [watch the overview](/overview/). - -## Set up notifications and appearance - -[Notification preferences](/preferences/#notifications) control terminal bell -indicators, desktop notifications, sounds and commands. The -[Terminal page](/preferences/#terminal) selects text, background and ANSI colours. - -## Add plugins +# Among Terminal -Open Settings, select Plugins and install from the official source. Review a -plugin's access before enabling it. The [plugin guide](/plugins/) explains -available plugins, protection levels and updates. +A native GNOME terminal for developers working across several shells. Arrange tools in panes and keep tasks in named workspaces. -Plugin authors can use the [author guide and API reference](https://github.com/Among-Terminal/among-plugin-template). -Application contributors can start with [CONTRIBUTING.md](https://github.com/Among-Terminal/among/blob/main/CONTRIBUTING.md). +
diff --git a/docs/install/index.md b/docs/install/index.md index ed94b7d..bee9947 100644 --- a/docs/install/index.md +++ b/docs/install/index.md @@ -1,82 +1,76 @@ --- -title: Installing Among Terminal +title: Install Among Terminal --- -# Installing Among Terminal +# Install Among Terminal -The 0.2.0 release provides DEB, RPM, AppImage and binary archives for x86-64 -(`amd64`) and ARM 64-bit (`arm64`). No Rust toolchain or compilation is needed. -Application packages contain no plugins; [install plugins separately](/plugins/#installing). - -Snap Store and distribution archive packages are not available in 0.2.0. -Use the direct downloads below. +Choose a package for your Linux distribution and processor. Version 0.2.0 has +DEB, RPM, AppImage and binary archives. You do not need Rust or a compiler. ## Download -These links fetch the latest stable release. For the exact 0.2.0 files, use -the [0.2.0 release page](https://github.com/Among-Terminal/among/releases/tag/v0.2.0). +These links download the latest stable release. For version 0.2.0 specifically, +use the [0.2.0 release page](https://github.com/Among-Terminal/among/releases/tag/v0.2.0). | System | x86-64 (`amd64`) | ARM 64-bit (`arm64`) | | --- | --- | --- | -| Ubuntu 24.04 (DEB) | [Download DEB](https://github.com/Among-Terminal/among/releases/latest/download/among-terminal-ubuntu24.04-amd64.deb) | [Download DEB](https://github.com/Among-Terminal/among/releases/latest/download/among-terminal-ubuntu24.04-arm64.deb) | -| Debian 13 (DEB) | [Download DEB](https://github.com/Among-Terminal/among/releases/latest/download/among-terminal-debian13-amd64.deb) | [Download DEB](https://github.com/Among-Terminal/among/releases/latest/download/among-terminal-debian13-arm64.deb) | -| Fedora 44 (RPM) | [Download RPM](https://github.com/Among-Terminal/among/releases/latest/download/among-terminal-fedora44-amd64.rpm) | [Download RPM](https://github.com/Among-Terminal/among/releases/latest/download/among-terminal-fedora44-arm64.rpm) | -| Fedora 43 (RPM) | [Download RPM](https://github.com/Among-Terminal/among/releases/latest/download/among-terminal-fedora43-amd64.rpm) | [Download RPM](https://github.com/Among-Terminal/among/releases/latest/download/among-terminal-fedora43-arm64.rpm) | -| glibc 2.39+ (AppImage) | [Download AppImage](https://github.com/Among-Terminal/among/releases/latest/download/among-terminal-amd64.AppImage) | [Download AppImage](https://github.com/Among-Terminal/among/releases/latest/download/among-terminal-arm64.AppImage) | -| Ubuntu 24.04 (archive) | [Download archive](https://github.com/Among-Terminal/among/releases/latest/download/among-terminal-ubuntu24.04-amd64.tar.gz) | [Download archive](https://github.com/Among-Terminal/among/releases/latest/download/among-terminal-ubuntu24.04-arm64.tar.gz) | -| Debian 13 (archive) | [Download archive](https://github.com/Among-Terminal/among/releases/latest/download/among-terminal-debian13-amd64.tar.gz) | [Download archive](https://github.com/Among-Terminal/among/releases/latest/download/among-terminal-debian13-arm64.tar.gz) | +| Ubuntu 24.04 | [DEB](https://github.com/Among-Terminal/among/releases/latest/download/among-terminal-ubuntu24.04-amd64.deb) | [DEB](https://github.com/Among-Terminal/among/releases/latest/download/among-terminal-ubuntu24.04-arm64.deb) | +| Debian 13 | [DEB](https://github.com/Among-Terminal/among/releases/latest/download/among-terminal-debian13-amd64.deb) | [DEB](https://github.com/Among-Terminal/among/releases/latest/download/among-terminal-debian13-arm64.deb) | +| Fedora 44 | [RPM](https://github.com/Among-Terminal/among/releases/latest/download/among-terminal-fedora44-amd64.rpm) | [RPM](https://github.com/Among-Terminal/among/releases/latest/download/among-terminal-fedora44-arm64.rpm) | +| Fedora 43 | [RPM](https://github.com/Among-Terminal/among/releases/latest/download/among-terminal-fedora43-amd64.rpm) | [RPM](https://github.com/Among-Terminal/among/releases/latest/download/among-terminal-fedora43-arm64.rpm) | +| glibc 2.39 or newer | [AppImage](https://github.com/Among-Terminal/among/releases/latest/download/among-terminal-amd64.AppImage) | [AppImage](https://github.com/Among-Terminal/among/releases/latest/download/among-terminal-arm64.AppImage) | +| Ubuntu 24.04 | [Archive](https://github.com/Among-Terminal/among/releases/latest/download/among-terminal-ubuntu24.04-amd64.tar.gz) | [Archive](https://github.com/Among-Terminal/among/releases/latest/download/among-terminal-ubuntu24.04-arm64.tar.gz) | +| Debian 13 | [Archive](https://github.com/Among-Terminal/among/releases/latest/download/among-terminal-debian13-amd64.tar.gz) | [Archive](https://github.com/Among-Terminal/among/releases/latest/download/among-terminal-debian13-arm64.tar.gz) | + +If you are unsure which processor you have, run: + +```sh +uname -m +``` -`uname -m` prints `x86_64` for amd64 and `aarch64` for arm64. Choose the native -package or archive for your distribution release and architecture. +Choose amd64 for `x86_64` or arm64 for `aarch64`. Snap Store and distribution +archive packages are not available in 0.2.0. ## Verify the download -Download `SHA256SUMS` from the same release as your package. For the latest -release, use [SHA256SUMS](https://github.com/Among-Terminal/among/releases/latest/download/SHA256SUMS). -Put it next to the downloaded file and run: +Download `SHA256SUMS` from the same release and place it beside your package. +For the latest stable release, use [SHA256SUMS](https://github.com/Among-Terminal/among/releases/latest/download/SHA256SUMS). ```sh sha256sum --check --ignore-missing SHA256SUMS ``` -The line for your file must end in `OK`. Releases are immutable once published. -With the GitHub CLI, `gh release verify-asset --repo Among-Terminal/among` -checks the file against the release attestation. +The line for your file must end in `OK` before you install it. ## Debian and Ubuntu (DEB) -Open a terminal in the download directory and use the filename you downloaded: +Open a terminal in your download directory. Use the filename you downloaded: ```sh sudo apt install ./among-terminal-ubuntu24.04-amd64.deb ``` -APT installs runtime dependencies. Local installation adds no Among repository -or signing key. GNOME Software may show a generic local-package card, including -Unknown License, even though the package carries licensing and AppStream data. +APT installs the dependencies. Open Among Terminal from the applications menu. ## Fedora (RPM) +Use the RPM filename for your Fedora release and processor: + ```sh sudo dnf install ./among-terminal-fedora44-amd64.rpm ``` -DNF installs runtime dependencies. After installing a DEB or RPM, start Among -Terminal from the applications menu or run `among`. +DNF installs the dependencies. Open Among Terminal from the applications menu. ## AppImage -An AppImage carries Among, GTK, libadwaita, VTE and their bundled dependencies. -It installs nothing. It needs glibc 2.39 or newer. The supplied release checks -cover Debian 13, Ubuntu 24.04 and Fedora 43 on both architectures. - -The host must provide its graphics stack, fonts and several runtime libraries. -Install these on Debian or Ubuntu: +Choose this for a system with glibc 2.39 or newer. Install the host libraries +if they are missing. On Debian or Ubuntu: ```sh sudo apt-get install libwayland-client0 libx11-6 libxcb1 libfontconfig1 libfreetype6 libharfbuzz0b \ libfribidi0 libexpat1 libgmp10 libgpg-error0 libcom-err2 zlib1g libstdc++6 fonts-dejavu-core \ - libgl1 libegl1 libgles2 libgbm1 libdrm2 libx11-xcb1 + libgl1 libegl1 libgles2 libgbm1 libdrm2 libx11-xcb1 fuse3 ``` On Fedora: @@ -84,157 +78,112 @@ On Fedora: ```sh sudo dnf install libwayland-client libX11 libxcb fontconfig freetype harfbuzz fribidi expat gmp \ libgpg-error libcom_err zlib-ng-compat libstdc++ dejavu-sans-fonts \ - libglvnd-glx libglvnd-egl libglvnd-gles mesa-libgbm libdrm libX11-xcb + libglvnd-glx libglvnd-egl libglvnd-gles mesa-libgbm libdrm libX11-xcb fuse3 ``` -After verifying the download, make it executable and start it: +After verifying the download, make it executable and run it. Replace amd64 +with arm64 if that is the file you downloaded. ```sh chmod +x among-terminal-amd64.AppImage ./among-terminal-amd64.AppImage ``` -Mounting requires `fusermount3` from `fuse3`: install it with -`sudo apt-get install fuse3` or `sudo dnf install fuse3`. If the image reports -`Cannot mount AppImage, please check your FUSE setup`, extract and run it: +If it reports a FUSE mounting error, extract and run it instead: ```sh ./among-terminal-amd64.AppImage --appimage-extract ./squashfs-root/AppRun ``` -This creates `squashfs-root/` in the current directory. The image does not add -itself to the applications menu. AppImageLauncher can create an entry; Among -uses a matching registration for that exact image when available. Duplicate or -old registrations can still point to older files. For a manual entry, see below. - -### Checking an AppImageLauncher entry +This creates a folder beside the image. The AppImage does not add itself to +the applications menu. AppImageLauncher can create a launcher for it. -Check the entry's actual `Exec` path against the AppImage you are launching. -Among uses the entry only when its executable points to that exact image. -When launched without a matching desktop entry supplied by the launcher, Among -looks for one existing match. If several entries match, it does not choose one. - -### Upgrading an AppImageLauncher installation +## Binary archive -These commands assume the full AppImageLauncher, which provides `ail-cli`. -Close the old process and remove only its owned integration: +Use the archive matching your distribution and processor. Its `INSTALL.txt` +lists the required libraries. For an Ubuntu 24.04 ARM archive: ```sh -ail-cli unintegrate "/actual/integrated/old.AppImage" -ail-cli integrate "/path/to/new.AppImage" +sudo apt-get install --no-install-recommends libgtk-4-1 libadwaita-1-0 libvte-2.91-gtk4-0 librsvg2-common libgtk-4-media-gstreamer gstreamer1.0-plugins-good +mkdir ~/among +tar -xzf among-terminal-ubuntu24.04-arm64.tar.gz -C ~/among +~/among/bin/among ``` -Use the old entry's actual `Exec` path; AppImageLauncher may move the image to -a hash-suffixed filename. Pin the replacement entry. Beside a native package, -AppImageLauncher may suffix the display name with `(1)`; native DEB pins remain -separate. Do not delete unrelated entries or reset the dock. Old pins, duplicate -manual launchers and caches can reference older files; an invisible icon alone -does not identify the failed layer. Without registration, a direct GNOME Wayland -launch may show a technical ID and generic icon. Beside a DEB, prefer the distinct -AppImageLauncher entry: a manual native-ID entry can override the DEB launcher. +Choose a new extraction directory. An archive does not add an application launcher. ## Desktop notification integration -GNOME Shell needs `com.github.among-terminal.desktop` in its application search -path to associate bell notifications with Among. DEB and RPM install it. An extracted -archive or bare AppImage does not. An AppImageLauncher entry named -`appimagekit_…` alone does not match this notification identity. - -For an AppImage placed at `~/Applications/among.AppImage`, add a manual entry: - -```sh -( -set -e -mkdir -p ~/.local/share/applications ~/.local/share/icons/hicolor/scalable/apps -among_icon_dir=$(mktemp -d "$HOME/Applications/.among-icon.XXXXXX") -trap 'rm -rf -- "$among_icon_dir"' 0 -cd "$among_icon_dir" -"$HOME/Applications/among.AppImage" --appimage-extract usr/share/icons/hicolor/scalable/apps/com.github.among-terminal.svg -cp squashfs-root/usr/share/icons/hicolor/scalable/apps/com.github.among-terminal.svg \ - ~/.local/share/icons/hicolor/scalable/apps/ -among_exec=$(printf '%s\n' "$HOME/Applications/among.AppImage" | - sed 's/[\\"`$]/\\&/g; s/\\/\\\\/g') -cat > ~/.local/share/applications/com.github.among-terminal.desktop < + ,` and choose +Notifications to change what happens. + +
+ +
A terminal rings while Among is in the background. The desktop banner names the workspace and terminal, and a click opens that terminal.
+
+ +[![The Notifications tab with the four built-in channels](/media/preferences/notifications.png)](/media/preferences/notifications.png) + +## Marks in the window + +Highlight the terminal marks the pane header and its workspace row when an +unfocused terminal rings. The stripe can pulse. Focus that terminal to clear +the mark. This channel is on by default for terminals you are not viewing; +turn it off when the marks distract you. + +## Channels and conditions + +Each channel has a When choice: + +- Always. +- Terminal not in view. This includes the application being in the background. +- Among in background. + +| Channel | Default | What it does | +| --- | --- | --- | +| Highlight the terminal | On | Marks the pane and workspace until you focus the terminal. | +| Play a sound | Off | Plays the bundled alert or a local WAV. | +| Desktop notification | On | Shows a system banner for a background application. | +| Run a command | Off | Runs the configured program with literal arguments. | +| A plugin channel | Off | Delivers through a channel supplied by a plugin. | + +## Desktop notification + +The banner names the workspace, terminal title and directory. That text can +appear on the lock screen; turn Desktop off if it would reveal private +information. Clicking the banner opens the terminal that rang. + +[![A GNOME desktop banner naming the workspace and terminal that rang](/media/app/desktop-notification.png)](/media/app/desktop-notification.png) + +The application needs a desktop launcher for the banner and click to work. +DEB and RPM packages install it. For an AppImage or archive, follow +[desktop notification integration](/install/#desktop-notification-integration). + +## Sound + +The bundled alert needs no setup. Choose a local WAV to use your own sound. +Use Play and Stop to preview it. The file must be uncompressed PCM or +IEEE-float WAV, at most 10 seconds and 10 MiB, with a sample rate up to +96 kHz. + +## Run a command + +Choose an absolute program path and put each argument on its own line, then +select Save. Arguments are passed literally: shell quoting and operators do not +apply. Saving does not run the command. Turn the channel on when you are ready. + +## Plugin channels + +A plugin can provide an additional delivery channel. It starts off and has its +own switch. Review the plugin's delivery role and access before enabling it; +see [plugin notifications](/plugins/#notifications). Delivery plugins have no +network access. + +## Where the marks appear + +See [panes and workspaces](/panes/#terminal-bells) for the pane and workspace +markers, and [Preferences](/preferences/#notifications) for the settings tab. diff --git a/docs/overview/index.md b/docs/overview/index.md deleted file mode 100644 index b2a8a58..0000000 --- a/docs/overview/index.md +++ /dev/null @@ -1,36 +0,0 @@ ---- -title: Among Terminal overview ---- - -# Among Terminal overview - -Among Terminal combines native VTE terminals, nested panes and workspaces in a -GNOME window. The [feature guide](/features/) explains the controls in 0.2.0. - -## Workflow tour - -[![Watch the Among Terminal workflow tour](/media/among-terminal-overview.png)](/media/among-terminal-overview.mp4) - -[Watch or download the overview](/media/among-terminal-overview.mp4). - -The silent tour covers themes, splitting and resizing, pane movement, focus, -zoom, fullscreen, workspace naming, sidebar controls, plugins, session -restoration and pane closing. Recorded shortcuts remain visible. - -The recordings show the earlier plugin and appearance controls. Use the current -[plugin guide](/plugins/) and [preferences guide](/preferences/) for those controls. -The tools shown in the terminals, including Starship, `ll`, `mc` and `htop`, -are not installed or configured by Among. - -## Extended presentation - -[![Watch the extended Among Terminal presentation](/media/among-terminal-promo.png)](/media/among-terminal-promo.mp4) - -[Watch or download the extended presentation](/media/among-terminal-promo.mp4). - -## Current interface - -![Among Terminal 0.2.0 with two panes and the sidebar](/media/app/main-window.png) - -Read about [panes and workspaces](/panes/), [sessions](/sessions/), -[keyboard shortcuts](/shortcuts/) and [installation](/install/). diff --git a/docs/panes/index.md b/docs/panes/index.md index b534ceb..aff4561 100644 --- a/docs/panes/index.md +++ b/docs/panes/index.md @@ -4,166 +4,123 @@ title: Panes and workspaces # Panes and workspaces -Each pane holds a terminal, a header and any plugin footer content. The header -shows the terminal's title and a permanent `#N` identity label. An empty footer -stays hidden. +Keep related terminals together. Use panes for tools you want to see at once +and workspaces for separate tasks. -## Splitting a pane - -Press `Ctrl+Shift+N` to split the focused pane. If its width is at least its -height, the terminals sit side by side. A taller pane splits into a stack. -The new pane receives keyboard focus. - -The new terminal starts in the original pane's known directory. Its shell and -subsequent directory changes are independent. If that directory is unavailable, -the new shell uses an accessible home or startup directory and Among reports -the fallback. A workspace's first terminal uses the normal startup directory. +
+ +
One terminal becomes five: split, resize the dividers, drag a pane by its header, then create and rename a workspace. The example project is synthetic.
+
-The initial shell directory is known at launch. Later changes need -[shell directory reporting](/sessions/#directory-reporting). +## Splitting a pane -Drag a divider to resize the panes. `Ctrl+Shift+Left` and `Ctrl+Shift+Right` -move the nearest side-by-side divider above the focused pane in the layout. -`Ctrl+Shift+Up` and `Ctrl+Shift+Down` move the nearest stacked divider. +Press ` + + N`. A wide pane splits side by side; a tall pane splits into +a stack. The new terminal gets focus and starts in the original pane's known +directory. To follow directory changes, enable [shell integration](/install/#shell-integration). + +
+ +
Each split starts a separate shell in the same project directory, so a listing, a file manager and a monitor can run side by side.
+
+ +Drag a divider to resize. You can also hold ` + ` and press an arrow key. +Click a pane or use ` + Arrow` to move focus. + +
+ +
The keyboard moves the divider next to the focused pane without touching the mouse.
+
+ +
+ +
Dragging a divider reallocates the space; both terminals keep their running programs.
+
## Dragging a pane to a new position -Drag a pane header onto another pane's edge. The drop indicator shows where -it will go. Left and right edges place the panes side by side; top and bottom -edges stack them. Dropping divides the target's area in half. - -The moved pane keeps its terminal and running process, and focus follows it. -Its old space closes up. Dropping on itself or outside a pane changes nothing. -Dragging inside terminal text selects text. +Drag its header onto another pane's edge. The drop indicator shows the new +position. The terminal and its running tools move together. -If the source or destination closes during a drag, dropping makes no further -layout change. This also applies when moving a pane to another workspace. +
+ +
The drop indicator previews the destination before the pane moves.
+
## Moving a pane to another project -Drag a pane header onto another workspace's entry in either sidebar view. -The outlined destination receives the pane after its last pane in layout order, -becomes active and gives the moved terminal focus. - -The destination's last pane splits to make room. If it is at least as wide as -it is tall, the moved pane goes beside it. Otherwise, it goes below it. - -The terminal retains its process, scrollback, directory, plugin content and -title-change marker. Its header takes the destination workspace's colour. -A workspace that loses its only pane closes. Dropping on the same workspace -or empty sidebar space changes nothing. Hovering alone does not switch workspaces. +Drag its header onto a workspace in the sidebar. Among switches to that +workspace and makes room for the terminal. A workspace closes if you move +its only pane away. ## Workspaces -The header's left controls are Settings, the sidebar toggle, then New workspace. - -Use New workspace in the header or `Ctrl+Shift+T`. Click an entry in the sidebar -to activate it. Inactive workspaces keep their terminals running. - -Double-click a name to edit it. Enter or clicking elsewhere applies the name; -Escape cancels. An empty name or one containing only spaces is refused. -Starting another rename ends the first. Renaming preserves terminals, -directories and layout, then returns keyboard focus to the terminal. +Press ` + + T` or use New workspace in the window header. Click a workspace +to switch to it. Terminals in other workspaces keep running. -Drag a workspace entry onto the upper or lower half of another entry to place -it before or after that workspace. The insertion edge is highlighted. This -works in the expanded list and collapsed strip. Holding a drag near a scrollable -sidebar edge reveals more entries. Escape or a drop outside leaves the order -unchanged. Reordering does not change the active workspace. +
+ +
Create, rename and switch workspaces. Terminals in other workspaces keep running.
+
-`Alt+1` through `Alt+9` follow the current sidebar order. `Ctrl+PageUp` and -`Ctrl+PageDown` cycle through it. The order is saved with the [session](/sessions/). +Double-click a name to rename it, then press Enter. Drag a workspace above or +below another to reorder it. ` + 1` through ` + 9` follow the sidebar order. +` + Page Up` and ` + Page Down` cycle through workspaces. -The sidebar toggle collapses the list to a strip with workspace colours and -terminal counts. Drag the expanded sidebar's right edge to change its width. -The width returns after expansion and restart, including when starting a new -session. A smaller window may temporarily constrain the displayed width. +Use the sidebar toggle beside Settings to collapse the list. Drag the expanded +sidebar's right edge to adjust its width. -## Headers and the terminal's title +
+ +
Collapsed, the sidebar keeps colours and terminal counts visible; expanding it restores the list and its width.
+
-Clicking a terminal or its header makes that pane active. A program can set -its title to show a file, remote host or current task. Without a nonempty title, -the header shows `Terminal N`. +## Expanding a pane -When an unfocused terminal changes its title, its header stays marked until -you focus it. A title change in the focused terminal leaves no mark. Plugin -content appears beside the title. Workspace terminal counts require no plugin. +Press ` + + X` to fill the workspace with the focused pane. Press it again, +or select Restore pane in its header, to return to the layout. Hidden terminals +keep running. Restore the layout before splitting or moving focus with arrows. -## Terminal bells - -Bells have separate unread indicators and desktop notification controls. See -[notification preferences](/preferences/#notifications) for defaults and how -to return to a terminal that rang. +Press `F11` to enter or leave fullscreen. ## Terminal context menu -Right-click a terminal or press `Shift+F10` in the focused terminal. If a program -handles mouse input, use `Shift+right-click` for Among's menu. Arrow keys navigate, -Enter activates a row, and Escape returns to terminal input. - -The menu belongs to the terminal that opened it. Copy uses its selection; -Paste sends clipboard text through VTE, including bracketed paste when the -program requests it. Copy is disabled without a selection and Paste without -clipboard text. Both update while the menu is open. Select All includes available -terminal text and scrollback. A shell can interpret pasted newlines, so paste -only commands you trust. - -A pointer-opened menu can offer Copy Link and Open Link. An explicit hyperlink -uses its target, even when the displayed text differs. Plain absolute `http`, -`https` and `mailto` URLs are also recognized. Other valid explicit schemes -can be copied but not opened. Malformed, control-containing or oversized targets -are refused. A keyboard-opened menu has no link target. - -Copy Link uses the target captured when you opened the menu, even if you move -the pointer before selecting it. - -Split Pane, Expand/Restore Pane and Close Terminal use the same controls as -keyboard shortcuts. Their hints follow your bindings, and removing a binding -leaves its menu action available. Split Pane is inactive while a pane is expanded. +Right-click a terminal or press ` + F10` for copy, paste and pane controls. +Use ` + right + click` when a terminal program handles the mouse itself. +Select text before copying. Paste only commands you trust, since pasted +newlines can run commands in your shell. ## Following a link -`Ctrl+left-click` opens an `http`, `https` or `mailto` link with the desktop -handler. Plain URLs exclude trailing sentence punctuation. An explicit -hyperlink opens its target. Other schemes do not launch. +Use ` + left + click` to open a web or email link with your desktop's handler. +The context menu also offers Copy Link and Open Link when you right-click a +supported link. An explicit hyperlink can point somewhere different from its +visible text. Check the destination before opening it. -A Ctrl+click on an openable link takes precedence over mouse-reporting programs -and text selection, including a drag beginning on that link. Other clicks and -drags keep their usual behaviour. Opening a link preserves selection and -scrollback; an unfocused pane receives focus first. Refused launches are -reported on stderr without a dialog, and the terminal stays usable. - -## Closing and exiting +## Terminal bells -`Ctrl+Shift+W` closes the focused pane and its process. Its surviving sibling -receives focus; if the sibling is split, its first terminal in layout order -receives focus. Closing a background pane preserves focus. +A bell in an unfocused terminal marks its pane and workspace. Focus that +terminal to clear the mark. See [terminal notifications](/notifications/) for +desktop banners, sound, commands and the conditions that turn each one on. -A shell exiting follows the same layout rules. Among reports the exit on stderr, -including the status when it is nonzero. Closing a workspace's last pane -closes that workspace. At the final workspace, Among asks for confirmation -before exiting. Closing the application window also asks while terminals are -running. Closing a pane can end a running job. +## Closing and exiting -## Expanding a pane +Press ` + + W` to close the focused pane. This can end its running job. +Closing a workspace's last pane closes that workspace. Among asks before +exiting the final workspace or closing the application while terminals run. -`Ctrl+Shift+X` expands the focused pane to fill its workspace. Press it again -or use Restore pane at the right of its header to return to the stored layout. -The button also works with Enter or Space when focused. - -Restore pane fits within the normal header height, leaving terminal height -unchanged. Long titles shorten to keep the button visible. The button also -appears when you explicitly expand a workspace's only pane. An ordinary -single-pane workspace has no Restore button. - -Hidden terminals keep running. While expanded, directional focus stays on the -visible pane and splitting is refused. Closing or restoring still works. -Restoration preserves nested divider positions and returns focus to the -originating terminal. Closing an expanded pane restores the normal layout. -Expansion in one workspace does not affect another. - -Clicking a desktop notification for a hidden terminal restores the layout and -focuses that terminal. An activation for a terminal that has closed or belongs -to a previous application instance only raises the window. -Only the terminal you focus has its bell indicators cleared; other terminals -keep their unread indicators. +Your layout can return at the next launch. Read what [sessions](/sessions/) +restore before closing tools you need to keep running. diff --git a/docs/plugins/index.md b/docs/plugins/index.md index b9d4ca8..460416a 100644 --- a/docs/plugins/index.md +++ b/docs/plugins/index.md @@ -4,288 +4,106 @@ title: Using plugins # Using plugins -Plugins are separate programs that add status information or handle -notifications. Among draws their content and controls their access. -Application packages contain no plugins; install the ones you want in Settings. +Add a clock, resource meters or directory labels to your terminals. Plugins +are optional and installed separately from Among. -## What plugins can do - -With your permission, plugins can display text, icons and meters in the window, -workspace, sidebar or individual panes. They can read selected terminal context, -such as a reported directory or title, read system metrics, store their own -settings and data, or take part in notifications. - -The plugin interface cannot type into terminals, read scrollback, open or close -panes, change the layout, or run commands in your shell. It does not expose -process command lines or environment variables. Plugins cannot create arbitrary -HTML, CSS or GTK widgets. Knowing a directory does not grant access to its files. - -Network access is blocked, including for notification delivery plugins. -Filesystem protection depends on the level shown in Settings. Read -[confinement](#confinement) before accepting reduced protection. + ## Installing -1. Open Settings with `Ctrl+,` and select Plugins. -2. Find a plugin under Available and choose Install. Check the version, package - and requested access in the confirmation. -3. Once installed, turn it on under Installed. -4. Review required and optional access, then choose Accept and enable. +1. Open Settings with ` + ,` and select Plugins. +2. Choose a plugin under Available, select Install and confirm. +3. Turn it on under Installed. +4. Review its access and choose Accept and enable. -Installation downloads a ready-built package and leaves it disabled. Among -checks compatibility, release information, sizes and hashes before saving it. -It does not compile code or run installation scripts. Opening the catalogue or -plugin details does not install or enable anything. +Installation leaves a plugin disabled until you enable it and accept its +required access. -![Install and verify a package, then review access and protection before running it](/media/diagrams/plugin-install.svg) +[![The Plugins page separates Installed and Available plugins](/media/preferences/plugins.png)](/media/preferences/plugins.png) -If a check fails, that step stops and displays a reason. Copying an executable -into an `among/plugins` directory does not install a managed plugin. +This example uses sample plugins and an example community source. Package +sizes and available versions depend on the source you use. ### Installing official plugins -The built-in Official plugins for Among Terminal source is -[Among-Terminal/among-plugins](https://github.com/Among-Terminal/among-plugins). -It cannot be removed. Official identity is tied to the repository and publisher, -not just their display names. - -| Plugin | Display | Required access | -| --- | --- | --- | -| `clock` | Local time in the application footer | Status content | -| `system-status` | CPU, memory and root filesystem usage in the header | Status content and system metrics | -| `pane-pwd` | Each pane's reported directory in its footer | Status content, terminal identifiers and directories | - -![Installed and available plugins](/media/preferences/plugins.png) - -The screenshots include sample plugins and a sample additional source. -The table lists the official plugins. - -The Plugins page uses a saved catalogue when available. Without one, opening -the page fetches the official list once. A failed fetch shows its reason and -Load or refresh controls. It does not retry continuously. Refresh explicitly -to check a saved catalogue for changes. - -### Finding and inspecting plugins - -Search matches names, descriptions, full identities and origins in both -Installed and Available. Plugins with the same name remain separate. With -several sources, user plugins show their repository. An installed plugin whose -source was removed shows `source removed`. - -An unavailable or faulted plugin shows its reason in place of the description. -An installation or removal in progress, or a failed operation, takes precedence -over that reason. - -Use the info button to inspect source, protection and access. Available plugins -also have details, without an enable switch or settings. Their protection reads -`Checked when the plugin starts.` Installed plugins show Settings only when they -provide configurable options. See -[plugin settings](/preferences/#plugins) for saving changes. - -Technical details starts collapsed and shows the plugin identity. For an -installed plugin, it also shows the repository and API compatibility, including -the API observed when it ran. You can select and copy the values. -Use Tab or Shift+Tab to move between controls, Space to change switches, and -Back or Escape to return. Opening or searching the inventory neither saves -defaults nor enables plugins. +The built-in [official source](https://github.com/Among-Terminal/among-plugins) +has a clock, CPU, memory and disk meters in the application header, and +directory labels under each pane. Directory labels need +[shell integration](/install/#shell-integration) to follow directory changes. ## Access review -Required access must be accepted before a plugin can run. Optional access is -unchecked on the first review. A plugin's details show its source, protection, -settings and requested access. The shield describes origin and protection; -its accessible name also identifies them. It is not a code audit. - -![Reviewing a plugin's required and optional access](/media/preferences/plugin-access-review.png) - -Review what the plugin needs: status display, terminal identifiers, reported -directories, titles, process-running state, terminal events, system metrics, -settings or notification roles. Unknown directories and titles stay unavailable. -Read the [notification role rules](#notifications) before enabling those features. +Read the requested access before enabling a plugin. Required access must be +accepted. Optional access starts off. Open the plugin's details to see its +source and protection, or to review access again after stopping it. -For an installed plugin with notification roles, open Notification role, then -Review role / access. This control is on the plugin's page and remains available -after an earlier review. The page distinguishes your reviewed role from the -role currently allowed to run. The Notifications page contains channel controls. +[![The access review asks you to accept required access before enabling a plugin](/media/preferences/plugin-access-review.png)](/media/preferences/plugin-access-review.png) -If the plugin is running, choose Stop and disable plugin, wait for it to stop, -then reopen the review. Save reviewed access stores the choice for that plugin -and publisher without enabling the plugin or its channels. The initial enable -flow uses Accept and enable. +Plugins can display status information, read the terminal context you allow, +read system metrics, save their own data or take part in notifications. +The plugin interface does not let them read scrollback, type into a terminal, +change its layout or run commands in your shell. A reported directory does +not itself grant access to the files inside it. ## Confinement -Among applies Linux Landlock filesystem rules and a seccomp system-call filter -before a managed plugin starts. It refuses startup if the child cannot confirm -the required protection. - -With full protection, the plugin can: - -- Read its installed package and execute its packaged programs. -- Read system runtime paths: `/usr`, `/lib`, `/lib64`, `/etc/ld.so.cache` and - `/etc/localtime`, where present. Execution is allowed in the system directories. -- Read and write its own private data directory, but not execute files there. -- Read `/proc/stat`, `/proc/meminfo` and `/proc/loadavg` if granted system metrics. - -The installed package is read-only. Other user files are outside these grants. -Repository plugin data lives at -`$XDG_DATA_HOME/among/plugin-data///`. An unset, empty or -relative `XDG_DATA_HOME` falls back to `$HOME/.local/share`. - -The filter blocks network and local sockets, process inspection and memory -access, signal sending, shared IPC, and selected kernel operations. It also -blocks changes to file permissions, ownership, timestamps and extended -attributes. Child processes inherit the restrictions. Plugins do not inherit -your `HOME`, `XDG_*` settings or full environment. +Among blocks plugin network access. With full protection, a plugin can read +its package and the system files it needs to run, and write its own private +data. Your other files stay outside those permissions. A plugin allowed to +read system metrics also gets the system data needed for those metrics. ### Reduced protection -| Available protection | What it means | -| --- | --- | -| Landlock ABI 3 or newer plus seccomp | Full protection; available from kernel 6.2 where supported | -| Landlock ABI 1 or 2 plus seccomp | Requires consent; a plugin can still truncate writable files outside allowed paths | -| Seccomp without usable Landlock | Requires consent; the plugin can read and write any file your account can | -| No usable seccomp | The plugin cannot start, even with consent | - -Settings shows the observed level and offers Allow reduced protection when -applicable. The permission is stored per plugin and remains marked while saved. -Each launch checks the kernel again. If it offers less protection than you -accepted, Among asks again. - -A running plugin's protection text shows the level it actually reached. The -warning shield remains while permission for reduced protection is saved, even -if the current run has full protection. Problems with the plugin's data-directory -path, ownership or permissions leave it Unavailable. - -There are no CPU or memory quotas, and confinement does not protect against -kernel vulnerabilities. Install code you trust. A plugin can deliberately leave -programs running after you turn it off. Those programs remain subject to the -same protection. - -## Live status examples +Some systems cannot provide full filesystem protection. Settings explains +the available level before asking you to allow reduced protection. Depending +on that level, a plugin may be able to damage files outside its private data, +or read and write any file your account can access. Decline if you do not +accept that access. Without the required system-call protection, the plugin +cannot start. -The clock shows local time in 24-hour `HH:MM:SS` format, including `TZ` when -supplied to Among. - -The `system-status` meters show CPU, memory and root filesystem usage as -percentages. CPU excludes idle time and I/O wait and initially shows `N/A`. -Memory usage is based on `MemAvailable`. Disk usage is for `/`, with reserved -space excluded from available space, as in `df`. -The meters show the plugin process's view of the system, which may differ -inside a container or package sandbox. - -`pane-pwd` shows each pane's last reported directory, including unfocused panes. -The label contains at most 480 characters. Its tooltip contains the full path. -Unknown directories produce no content. -Later directory changes need [shell directory reporting](/sessions/#directory-reporting). - -## Notifications - -Plugin events follow your [notification policies](/preferences/#notifications). -Submitting an event does not prove that a sound played or a desktop banner appeared. -Notification content can include buttons. Clicking one sends an action to the -plugin and does not execute a shell command. - -A plugin can produce events or provide delivery channels, but cannot do both -in the same process. If it offers both optional roles, choose one or neither. -Notification interface content is a separate permission. - -Delivery channels have separate switches in Notifications and start off. -Access review alone does not enable them. A delivery plugin still has no network -access or direct access to desktop services. Unavailable providers keep their -saved choices but receive no delivery. - -## Updates and removal - -Refresh the source, then choose Update when a newer compatible version is -offered. Review the version and access requirements. Only the selected plugin -may restart; its settings remain. New required access or a changed publisher -can require a new access review before startup. - -Among does not offer a lower version as an update. Different installed and -offered version labels must both follow Semantic Versioning 2.0.0 for Among to -determine which is newer. Otherwise, no update is offered and the plugin's -details explain that the version order is unknown. - -![Plugin details with settings, source and protection information](/media/preferences/plugin-info.png) - -Uninstall asks for confirmation, stops the plugin and removes its installation. -Its local settings and private data directory remain. Retained settings can be -removed through [Settings of removed plugins](/preferences/#retained-plugin-settings). -If stopping or removal fails, the manager reports the failure and keeps the -remaining state visible. - -A row shows either progress or one action, such as Install, Update or Uninstall. -Installation offers a Stop button. Uninstall shows progress in the row without -a separate progress dialog and cannot be cancelled after it begins. A failure -leaves the details page open with a banner. When removal completes, the page -closes and focus returns to the list. - -### Testing prereleases - -Quit Among before starting `among --plugin-development`. The mode is not saved -and cannot be enabled on an already running instance. Settings then offers a -Stable / Pre-release selector. Prerelease installations remain visibly marked -and start only in this mode. Replacing an installation with a prerelease starts -it disabled and requires a new access review. - -Among retains the previous verified package. In this mode, Technical details -offers Recover previous. Recovery still checks compatibility and access. -It also shows Protection at last start when a confinement record is available. -That record does not refresh while the page is open. After the plugin finishes -starting, go back and reopen its page to read the current record. -For authoring and local package testing, use the -[plugin template](https://github.com/Among-Terminal/among-plugin-template). +Install code you trust. Plugins have no CPU or memory quotas. Turning a plugin +off may leave programs it started running under the same restrictions. ## Plugin sources -Community plugins are collected in -[awesome-among-terminal](https://github.com/Among-Terminal/awesome-among-terminal). -The project does not review or endorse these plugins; add a plugin's source as -described below and review its [access](#access-review) before enabling it. - -Use Add source to look up a public GitHub repository by `owner/repository` or URL. -Previewing it is read-only. Add source saves the registration and catalogue; -Cancel saves neither. Among supports up to 32 user sources plus the official source. - -![Plugin sources with catalogue age and check controls](/media/preferences/sources.png) +Use Sources, then Add source to preview a public GitHub repository. Choose +Add source only if you want to save it. Check source or Check all refreshes +saved lists. A failed check keeps the previous list. -Check source refreshes one repository; Check all checks them in order. Failed -checks preserve the saved list. Saved lists checked at least 24 hours ago, or -with a check time in the future, are marked. -A publisher change needs explicit review before replacing saved metadata; this -does not grant installed code new access. An official publisher mismatch is refused. +[Community plugins](https://github.com/Among-Terminal/awesome-among-terminal) +are not reviewed or endorsed by the project. Review their source and access +before enabling them. A publisher change requires a separate review. -If a publisher changes while you are using Pre-release, choose Stable, check -the source again and approve the change there. Prerelease catalogues are not saved. +Removing a source leaves its plugins installed, but stops offering their updates. -Repository identity survives a rename. A different repository reusing the old -name does not inherit it. Removing a source does not stop or uninstall its -plugins, but their updates are no longer offered. +## Updates and removal -A GitHub rate limit stops source checks and shows the remaining count, or unknown. -No retry is scheduled. A permission refusal without a rate-limit indication -reports the failure and continues checking the remaining sources. +Refresh the source and choose Update when offered. Review the new version and +requested access. Only that plugin may restart; your terminals keep running. +New required access or a changed publisher can require another review. -The optional `AMONG_GITHUB_TOKEN` environment variable -authenticates API requests; it is not sent to download hosts or child processes. -Its original value can still be visible to the same user through Among's process -information. Use a token with no access beyond reading public data. +Choose Uninstall and confirm to stop and remove a plugin. Its saved settings +and private data remain. Use [Settings of removed plugins](/preferences/#retained-plugin-settings) +to delete retained settings. -## Failure handling +## Notifications -Starting, Running, Stopping and Faulted describe the plugin's current state. -An enabled switch records your choice and can remain on when startup is -unavailable or incompatible, or the plugin has failed. +A plugin can request a delivery role or provide a channel. Review that role on +its details page. A provided channel has its own switch in +[Notifications](/preferences/#notifications) and starts off; access review +alone does not enable delivery. See [plugin channels](/notifications/#plugin-channels). +Delivery plugins still have no network access. -If a plugin crashes, stops communicating or stops responding, its status content -disappears and Settings reports the failure. At most three automatic restarts -follow, after 2, 4 and 8 seconds. Turning it off and on resets that allowance. -Missing or incompatible -executables are not automatically retried. Terminals remain usable. +## If a plugin stops working -Unusable plugin updates are ignored. If valid updates do not arrive in time, -the plugin can be marked Faulted. While Settings shows Stopping, Among is still -waiting for the plugin to stop. It will not start another copy until then. +Open Settings and read the reason beside it. A failed plugin loses its status +content while your terminals remain usable. Turn it off and on to retry after +fixing the problem. -To write a plugin, use the [author guide and API reference](https://github.com/Among-Terminal/among-plugin-template). +To write a plugin, follow the [plugin author guide](/plugin-development/). diff --git a/docs/preferences/index.md b/docs/preferences/index.md index 9b02be2..0ce6839 100644 --- a/docs/preferences/index.md +++ b/docs/preferences/index.md @@ -4,201 +4,67 @@ title: Preferences # Preferences -Open Settings with `Ctrl+,`. Its pages are Plugins, Notifications, Keyboard, -Terminal and About. Plugins opens first. You can return to a terminal without -closing Preferences, including while a source request is running. +Press ` + ,` to open Settings. Choose Plugins, Notifications, Keyboard, +Terminal or About at the top. Most changes apply immediately and there is no +general Save button; plugin forms and the command fields have their own Save +buttons. -## Plugins +## Light and dark styling -The [plugin guide](/plugins/) covers installation, access review, protection, -updates and removal. Click a plugin row to open its settings and details. -Plugin-specific forms require Save; Back or closing without saving discards edits. -Saving settings does not enable a disabled plugin. A running plugin can accept -or reject a change, or require a restart. Preferences distinguishes locally -saved settings from settings accepted by the running process. +Among uses the desktop's light or dark styling, and open windows follow a change +as it happens. Terminal text and background colours remain a separate choice. -When accepted settings need a restart, the form offers a Restart plugin… button. -Choose it to open a confirmation. Cancel leaves the current process and -accepted settings unchanged. Confirming restarts only that plugin and preserves -its enabled choice and live terminals. It cannot enable a disabled plugin. +
+ +
The window, sidebar and terminal colours switch together while the shells keep running; the clip loops the fade.
+
-### Retained plugin settings +## Terminal -After uninstalling a plugin, open Settings, select Plugins, then choose Settings -of removed plugins. This entry appears when an uninstalled plugin has saved or -pending settings. Installed plugins do not appear in this list. +Choose text and background colours, then an ANSI palette. The two choices are +independent and apply to open panes without restarting their shells. GNOME +Terminal default follows that application's profile when Among starts; bundled +schemes work without GNOME Terminal installed. -Choose Delete settings… beside the plugin, then confirm. Cancel, Escape or -closing the confirmation deletes nothing. Deletion removes only that plugin's -saved settings and pending settings edits, including unrecognised values within -those settings. +[![Gray on black text and background with the Tango ANSI palette](/media/preferences/terminal.png)](/media/preferences/terminal.png) -Access grants, saved enablement choices, installation records, source -registrations and other preferences remain. Unknown fields outside the selected -settings, other plugins' settings, legacy files and the plugin's private data -directory also remain. Deletion cannot be undone through this control and is -not secure erasure. +Configure your prompt in your shell itself. ## Notifications -Visual, Sound, Desktop and Command each have their own When condition: -Always, Terminal not in view or Among in background. Terminal not in view also -applies while Among is in the background, as its tooltip explains. Preferences -and native menus count as foreground Among, but do not count as viewing a terminal. - -A successful save shows no banner. Invalid values are marked on their row; -failed or uncertain saves show a banner. - -| Channel | Default | -| --- | --- | -| Visual: Highlight the terminal | On when the originating terminal is not focused | -| Desktop: Desktop notification | On while Among is in the background | -| Sound: Play a sound | Off; background condition selected | -| Command: Run a command | Off and unconfigured; background condition selected | - -![Notification channels and conditions in Preferences](/media/preferences/notifications.png) - -A bell marks the originating pane and workspace as unread until you focus that -terminal. The thin line at the left of each header or row thickens and can pulse. -Disabling system animations stops the motion without clearing unread state. -With Always selected and animations enabled, a bell in the already focused -terminal pulses for one second without marking it unread, thickening its line -or adding an unread announcement. -Bell indicators do not change the workspace colour. - -The desktop notification title is the workspace name, or `Among Terminal` when -the name is missing. Its body starts with `Bell in ''`, or `Bell` when -the terminal title is unknown, followed by the directory when known. Programs -can set terminal titles. This text can appear in the notification centre or on -the lock screen; disable Desktop if it would expose sensitive information. - -Clicking a notification switches to the originating terminal, restoring an -expanded sibling's layout if necessary. A terminal currently being viewed does -not send a desktop notification, even with Always selected. Closing or focusing -its source, disabling the channel or exiting Among withdraws the notification. - -![A terminal bell notification in GNOME Shell](/media/app/desktop-notification.png) - -Desktop delivery requires a notification service and a matching desktop entry; -see [installation requirements](/install/#desktop-notification-integration). -A service accepting a request does not confirm that a banner appeared. Missing -services and failed policy changes are reported on the Desktop row. Change a -Desktop setting to retry a failed policy update. If `general.json` is invalid -or unreadable, desktop delivery stays off for that session; a missing file uses -the defaults. - -### Sound - -Use the bundled Among alert or choose a WAV file with the folder button. Among -shows `Among alert (built-in)` or the selected filename; hover over the filename -to see its full path. Choose files through the WAV-filtered dialog. The Sound -row has no editable path. - -Among checks the file before selecting it, showing a spinner and -`Checking the file…`. A rejected file shows a problem line and warning mark. -It leaves the previous valid sound selected, saves nothing and plays no fallback. -A missing or invalid saved file disables playback until a valid source is -selected. The undo button appears only for custom files and restores the bundled -sound. Successful selection adds no status message. - -Choose a local, uncompressed RIFF/WAVE file with 8-, 16-, 24- or 32-bit PCM, -or 32- or 64-bit IEEE float samples. Matching WAVEFORMATEXTENSIBLE variants -are supported. Files must contain at least one audio frame, be mono or stereo, -and be no larger than 10 MiB or 10 seconds, with a sample rate of at most 96 kHz. -Compressed WAV, RIFX and RF64 files are rejected. - -Play previews the accepted sound even when event audio is off. Stop cancels -playback or an in-progress file check. If the previous sound is still stopping, -wait for it to stop and press Play again. An accepted playback request does not -confirm audible output from your speakers. A disabled Play button explains why -in its tooltip. - -### Run a command - -Choose an absolute program path and enter one literal argument per line, then -select Save in the Command group. Spaces, quotes and shell characters are part -of an argument. Nothing is split or unquoted, and no shell interprets the command. -Empty lines are skipped; a line containing spaces is an argument. Existing -arguments that cannot be represented this way remain editable as a JSON list. - -![Notification command with one argument per line](/media/preferences/notifications-command.png) - -No command is configured or enabled by default. Clearing the program disables -the channel. Saving or enabling it does not execute it; a new eligible event -triggers execution. Choose only a program you intend to run. Its environment -contains `PATH`, `LANG`, `HOME` and available desktop session variables, not -the terminal's full environment. - -### Plugin channels - -Each plugin delivery channel has its own choice and starts off. Unavailable -channels are labelled Unavailable and retain editable choices but receive no -delivery. Available channels show their name and description, plus whether the -plugin is disabled, waiting for admission or admitted to deliver. The channel -switch records your permission separately. -Inspecting a channel does not start its plugin. See -[plugin notifications](/plugins/#notifications) for access and role controls. +The Notifications tab holds the four built-in channels and any plugin channels. +Their defaults, conditions, desktop banner, sound limits and command rules are +described in [Terminal notifications](/notifications/). ## Keyboard -Select an action to record a shortcut or remove its binding. Changes apply -immediately. See [keyboard shortcuts](/shortcuts/) for defaults and reassignment. - -## Terminal +Select an action and press a new shortcut. Assigning a combination already in +use removes the earlier assignment. See [keyboard shortcuts](/shortcuts/) for +the defaults, conflicts and removing a binding. -Choose the text/background pair and ANSI palette independently. Both start with -GNOME Terminal default. Among reads GNOME Terminal's default profile once at -startup; it does not follow live changes or modify that profile. +## Plugins -![Terminal appearance choices](/media/preferences/terminal.png) +Install, enable, update and remove plugins on the Plugins page. A plugin form +requires Save. Saving does not enable a disabled plugin. See +[using plugins](/plugins/) for installation, access review and protection. -The embedded catalogue has eleven text/background schemes and six palettes, -available without GNOME Terminal installed. A selection applies to existing -and new panes without restarting their shells or changing the other dropdown. +### Retained plugin settings -If inherited text/background colours are unavailable, Among uses Gray on black -and explains why. If the inherited palette is unavailable, it uses VTE's -compiled-in palette. The source remains GNOME Terminal default for the next -launch. Colours that do not match a built-in choice are shown as custom. +After uninstalling a plugin, Settings of removed plugins deletes its saved +settings. The plugin's private data directory and the record of accepted access +remain. Among has no separate action to delete them yet. ## About -About shows the application version and recorded build commit and date. -Missing build metadata is shown as unknown. Copy build details copies the -version, commit, build date and operating-system description for a bug report. -The copy button shows a check mark for two seconds, without a pop-up message. -About also lists the Apache-2.0 license and links to the website, source code -and issue tracker. -Opening About does not make a network request; following a link opens it in -the desktop's default handler. - -![About page with version and build details](/media/preferences/about.png) - -## Stored settings - -Settings live in `$XDG_CONFIG_HOME/among`, or `$HOME/.config/among` when -`XDG_CONFIG_HOME` is absent or empty. - -| File | Contents | -| --- | --- | -| `managed-plugins.json` | Plugin choices, reviewed access, reduced-protection consent and settings | -| `general.json` | Notification policies, sound, command and plugin channel choices | -| `shortcuts.json` | Shortcut overrides, including explicitly removed bindings | -| `window.json` | Expanded sidebar width | -| `terminal.json` | Text/background and ANSI palette selections | - -The old `plugins.json` is left untouched and is not used to enable managed -plugins. Session snapshots have [separate storage](/sessions/#storage-and-recovery). - -Plugin switches, shortcut edits and notification policies apply immediately. -Plugin forms and command configuration need Save. Sidebar width saves when the -drag finishes. A failed preference write shows a warning; edits that remain -active only for the current session are identified as such. A later edit in -the same category retries pending changes. - -Unknown fields are retained. Malformed files and future versions are reported -and are not silently overwritten. Symlink destinations are refused. Writes use -private temporary files and atomic replacement. A failure before replacement -preserves the previous file; a failure confirming directory durability reports -uncertainty after writing. External edits are merged when detected, but -simultaneous external writes are not fully serialized. +Copy build details reports the application version and the available build and +system details. The page also links to the source, licence and issue tracker. + +[![The About tab with version, source, licence and build details](/media/preferences/about.png)](/media/preferences/about.png) + +## If a setting cannot be saved + +Settings shows a warning when a change cannot be saved; that edit may apply only +to the current session. Fix the storage problem, then change a setting in the +same section to retry. diff --git a/docs/public/media/among-terminal-action-v5.mp4 b/docs/public/media/among-terminal-action-v5.mp4 deleted file mode 100644 index 2492a4e..0000000 Binary files a/docs/public/media/among-terminal-action-v5.mp4 and /dev/null differ diff --git a/docs/public/media/among-terminal-action-v5.png b/docs/public/media/among-terminal-action-v5.png deleted file mode 100644 index f94d5be..0000000 Binary files a/docs/public/media/among-terminal-action-v5.png and /dev/null differ diff --git a/docs/public/media/among-terminal-overview.mp4 b/docs/public/media/among-terminal-overview.mp4 deleted file mode 100644 index ab8effa..0000000 Binary files a/docs/public/media/among-terminal-overview.mp4 and /dev/null differ diff --git a/docs/public/media/among-terminal-overview.png b/docs/public/media/among-terminal-overview.png deleted file mode 100644 index 63770a3..0000000 Binary files a/docs/public/media/among-terminal-overview.png and /dev/null differ diff --git a/docs/public/media/among-terminal-promo.mp4 b/docs/public/media/among-terminal-promo.mp4 deleted file mode 100644 index 6c42ef4..0000000 Binary files a/docs/public/media/among-terminal-promo.mp4 and /dev/null differ diff --git a/docs/public/media/among-terminal-promo.png b/docs/public/media/among-terminal-promo.png deleted file mode 100644 index 84e68b4..0000000 Binary files a/docs/public/media/among-terminal-promo.png and /dev/null differ diff --git a/docs/public/media/app/desktop-notification.png b/docs/public/media/app/desktop-notification.png index 8c3e4ca..0f48212 100644 Binary files a/docs/public/media/app/desktop-notification.png and b/docs/public/media/app/desktop-notification.png differ diff --git a/docs/public/media/features/02b-keyboard-resize.png b/docs/public/media/app/keyboard-resize-poster.png similarity index 100% rename from docs/public/media/features/02b-keyboard-resize.png rename to docs/public/media/app/keyboard-resize-poster.png diff --git a/docs/public/media/features/02b-keyboard-resize.mp4 b/docs/public/media/app/keyboard-resize.mp4 similarity index 100% rename from docs/public/media/features/02b-keyboard-resize.mp4 rename to docs/public/media/app/keyboard-resize.mp4 diff --git a/docs/public/media/app/main-window-bell.png b/docs/public/media/app/main-window-bell.png deleted file mode 100644 index 63df3b0..0000000 Binary files a/docs/public/media/app/main-window-bell.png and /dev/null differ diff --git a/docs/public/media/app/main-window.png b/docs/public/media/app/main-window.png deleted file mode 100644 index a68aa8d..0000000 Binary files a/docs/public/media/app/main-window.png and /dev/null differ diff --git a/docs/public/media/features/02c-mouse-resize.png b/docs/public/media/app/mouse-resize-poster.png similarity index 100% rename from docs/public/media/features/02c-mouse-resize.png rename to docs/public/media/app/mouse-resize-poster.png diff --git a/docs/public/media/features/02c-mouse-resize.mp4 b/docs/public/media/app/mouse-resize.mp4 similarity index 100% rename from docs/public/media/features/02c-mouse-resize.mp4 rename to docs/public/media/app/mouse-resize.mp4 diff --git a/docs/public/media/app/notification-return-poster.png b/docs/public/media/app/notification-return-poster.png new file mode 100644 index 0000000..e894199 Binary files /dev/null and b/docs/public/media/app/notification-return-poster.png differ diff --git a/docs/public/media/app/notification-return.mp4 b/docs/public/media/app/notification-return.mp4 new file mode 100644 index 0000000..246119b Binary files /dev/null and b/docs/public/media/app/notification-return.mp4 differ diff --git a/docs/public/media/app/overview-poster.png b/docs/public/media/app/overview-poster.png new file mode 100644 index 0000000..c865d5c Binary files /dev/null and b/docs/public/media/app/overview-poster.png differ diff --git a/docs/public/media/app/overview.mp4 b/docs/public/media/app/overview.mp4 new file mode 100644 index 0000000..6612b46 Binary files /dev/null and b/docs/public/media/app/overview.mp4 differ diff --git a/docs/public/media/features/03-pane-drag.png b/docs/public/media/app/pane-drag-poster.png similarity index 100% rename from docs/public/media/features/03-pane-drag.png rename to docs/public/media/app/pane-drag-poster.png diff --git a/docs/public/media/features/03-pane-drag.mp4 b/docs/public/media/app/pane-drag.mp4 similarity index 100% rename from docs/public/media/features/03-pane-drag.mp4 rename to docs/public/media/app/pane-drag.mp4 diff --git a/docs/public/media/app/panes-poster.png b/docs/public/media/app/panes-poster.png new file mode 100644 index 0000000..deaef89 Binary files /dev/null and b/docs/public/media/app/panes-poster.png differ diff --git a/docs/public/media/app/panes.mp4 b/docs/public/media/app/panes.mp4 new file mode 100644 index 0000000..52a9cf5 Binary files /dev/null and b/docs/public/media/app/panes.mp4 differ diff --git a/docs/public/media/app/plugin-off.png b/docs/public/media/app/plugin-off.png new file mode 100644 index 0000000..7126510 Binary files /dev/null and b/docs/public/media/app/plugin-off.png differ diff --git a/docs/public/media/app/plugin-on.png b/docs/public/media/app/plugin-on.png new file mode 100644 index 0000000..b65da62 Binary files /dev/null and b/docs/public/media/app/plugin-on.png differ diff --git a/docs/public/media/features/07-session-restore.png b/docs/public/media/app/session-restore-poster.png similarity index 100% rename from docs/public/media/features/07-session-restore.png rename to docs/public/media/app/session-restore-poster.png diff --git a/docs/public/media/app/session-restore.mp4 b/docs/public/media/app/session-restore.mp4 new file mode 100644 index 0000000..5970050 Binary files /dev/null and b/docs/public/media/app/session-restore.mp4 differ diff --git a/docs/public/media/app/session-restore.png b/docs/public/media/app/session-restore.png new file mode 100644 index 0000000..735fb23 Binary files /dev/null and b/docs/public/media/app/session-restore.png differ diff --git a/docs/public/media/features/05b-sidebar.png b/docs/public/media/app/sidebar-poster.png similarity index 100% rename from docs/public/media/features/05b-sidebar.png rename to docs/public/media/app/sidebar-poster.png diff --git a/docs/public/media/features/05b-sidebar.mp4 b/docs/public/media/app/sidebar.mp4 similarity index 100% rename from docs/public/media/features/05b-sidebar.mp4 rename to docs/public/media/app/sidebar.mp4 diff --git a/docs/public/media/features/02-split-resize.png b/docs/public/media/app/split-resize-poster.png similarity index 100% rename from docs/public/media/features/02-split-resize.png rename to docs/public/media/app/split-resize-poster.png diff --git a/docs/public/media/features/02-split-resize.mp4 b/docs/public/media/app/split-resize.mp4 similarity index 100% rename from docs/public/media/features/02-split-resize.mp4 rename to docs/public/media/app/split-resize.mp4 diff --git a/docs/public/media/app/theme-switch-poster.png b/docs/public/media/app/theme-switch-poster.png new file mode 100644 index 0000000..ca355a7 Binary files /dev/null and b/docs/public/media/app/theme-switch-poster.png differ diff --git a/docs/public/media/app/theme-switch.mp4 b/docs/public/media/app/theme-switch.mp4 new file mode 100644 index 0000000..f2a3175 Binary files /dev/null and b/docs/public/media/app/theme-switch.mp4 differ diff --git a/docs/public/media/features/05-workspaces.png b/docs/public/media/app/workspaces-poster.png similarity index 100% rename from docs/public/media/features/05-workspaces.png rename to docs/public/media/app/workspaces-poster.png diff --git a/docs/public/media/features/05-workspaces.mp4 b/docs/public/media/app/workspaces.mp4 similarity index 100% rename from docs/public/media/features/05-workspaces.mp4 rename to docs/public/media/app/workspaces.mp4 diff --git a/docs/public/media/diagrams/plugin-install.svg b/docs/public/media/diagrams/plugin-install.svg deleted file mode 100644 index 779053b..0000000 --- a/docs/public/media/diagrams/plugin-install.svg +++ /dev/null @@ -1,45 +0,0 @@ -<svg xmlns="http://www.w3.org/2000/svg" width="420" height="890" viewBox="0 0 420 890" role="img" aria-labelledby="title description"> - <title id="title">Installing and enabling a plugin - Confirm installation, download and verify the package, then leave it installed and disabled. Turn it on, review required and optional access, and accept access. Among checks protection and startup before the plugin runs. A failed check stops that step and shows a reason. Reduced protection requires separate consent. - - - - - - - - - - - - - - - - - - - - - - - - - - - Choose an available plugin - Confirm installation - Download and verify package - Installed and disabled - Turn on the plugin - Review requested access - Accept required access - Choose optional access - Check protection and startup - Reduced protection needs - separate consent - Running - A failed check stops that step. - Settings shows the reason. - - diff --git a/docs/public/media/features/01-themes.mp4 b/docs/public/media/features/01-themes.mp4 deleted file mode 100644 index 2d24a25..0000000 Binary files a/docs/public/media/features/01-themes.mp4 and /dev/null differ diff --git a/docs/public/media/features/01-themes.png b/docs/public/media/features/01-themes.png deleted file mode 100644 index 2f1af2d..0000000 Binary files a/docs/public/media/features/01-themes.png and /dev/null differ diff --git a/docs/public/media/features/04-focus.mp4 b/docs/public/media/features/04-focus.mp4 deleted file mode 100644 index 850657a..0000000 Binary files a/docs/public/media/features/04-focus.mp4 and /dev/null differ diff --git a/docs/public/media/features/04-focus.png b/docs/public/media/features/04-focus.png deleted file mode 100644 index 93995a2..0000000 Binary files a/docs/public/media/features/04-focus.png and /dev/null differ diff --git a/docs/public/media/features/04b-zoom.mp4 b/docs/public/media/features/04b-zoom.mp4 deleted file mode 100644 index 0464b61..0000000 Binary files a/docs/public/media/features/04b-zoom.mp4 and /dev/null differ diff --git a/docs/public/media/features/04b-zoom.png b/docs/public/media/features/04b-zoom.png deleted file mode 100644 index 0e85846..0000000 Binary files a/docs/public/media/features/04b-zoom.png and /dev/null differ diff --git a/docs/public/media/features/04c-fullscreen.mp4 b/docs/public/media/features/04c-fullscreen.mp4 deleted file mode 100644 index 3c6fdda..0000000 Binary files a/docs/public/media/features/04c-fullscreen.mp4 and /dev/null differ diff --git a/docs/public/media/features/04c-fullscreen.png b/docs/public/media/features/04c-fullscreen.png deleted file mode 100644 index 399c7a9..0000000 Binary files a/docs/public/media/features/04c-fullscreen.png and /dev/null differ diff --git a/docs/public/media/features/06-plugins.mp4 b/docs/public/media/features/06-plugins.mp4 deleted file mode 100644 index 8c414b2..0000000 Binary files a/docs/public/media/features/06-plugins.mp4 and /dev/null differ diff --git a/docs/public/media/features/06-plugins.png b/docs/public/media/features/06-plugins.png deleted file mode 100644 index 9509f6d..0000000 Binary files a/docs/public/media/features/06-plugins.png and /dev/null differ diff --git a/docs/public/media/features/07-session-restore.mp4 b/docs/public/media/features/07-session-restore.mp4 deleted file mode 100644 index 8cd1577..0000000 Binary files a/docs/public/media/features/07-session-restore.mp4 and /dev/null differ diff --git a/docs/public/media/features/08-close-pane.mp4 b/docs/public/media/features/08-close-pane.mp4 deleted file mode 100644 index c8aa5d8..0000000 Binary files a/docs/public/media/features/08-close-pane.mp4 and /dev/null differ diff --git a/docs/public/media/features/08-close-pane.png b/docs/public/media/features/08-close-pane.png deleted file mode 100644 index 3aafde3..0000000 Binary files a/docs/public/media/features/08-close-pane.png and /dev/null differ diff --git a/docs/public/media/icon.png b/docs/public/media/icon.png deleted file mode 100644 index 3a28011..0000000 Binary files a/docs/public/media/icon.png and /dev/null differ diff --git a/docs/public/media/logo-small-cream.svg b/docs/public/media/logo-small-cream.svg new file mode 100644 index 0000000..cc6b611 --- /dev/null +++ b/docs/public/media/logo-small-cream.svg @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/docs/public/media/logo-small.png b/docs/public/media/logo-small.png index 5d8ef6c..d720f06 100644 Binary files a/docs/public/media/logo-small.png and b/docs/public/media/logo-small.png differ diff --git a/docs/public/media/logo-small.svg b/docs/public/media/logo-small.svg index de21d95..afad67b 100644 --- a/docs/public/media/logo-small.svg +++ b/docs/public/media/logo-small.svg @@ -1,5 +1,5 @@ - + \ No newline at end of file diff --git a/docs/public/media/logo.png b/docs/public/media/logo.png deleted file mode 100644 index 0a8f240..0000000 Binary files a/docs/public/media/logo.png and /dev/null differ diff --git a/docs/public/media/preferences/about.png b/docs/public/media/preferences/about.png index 8a03a44..c443ade 100644 Binary files a/docs/public/media/preferences/about.png and b/docs/public/media/preferences/about.png differ diff --git a/docs/public/media/preferences/keyboard.png b/docs/public/media/preferences/keyboard.png index 89ac588..210182f 100644 Binary files a/docs/public/media/preferences/keyboard.png and b/docs/public/media/preferences/keyboard.png differ diff --git a/docs/public/media/preferences/notifications-command.png b/docs/public/media/preferences/notifications-command.png deleted file mode 100644 index 41768ae..0000000 Binary files a/docs/public/media/preferences/notifications-command.png and /dev/null differ diff --git a/docs/public/media/preferences/notifications.png b/docs/public/media/preferences/notifications.png index dfeed82..5b64f66 100644 Binary files a/docs/public/media/preferences/notifications.png and b/docs/public/media/preferences/notifications.png differ diff --git a/docs/public/media/preferences/plugin-access-review.png b/docs/public/media/preferences/plugin-access-review.png index c08ddfc..6861038 100644 Binary files a/docs/public/media/preferences/plugin-access-review.png and b/docs/public/media/preferences/plugin-access-review.png differ diff --git a/docs/public/media/preferences/plugin-info.png b/docs/public/media/preferences/plugin-info.png deleted file mode 100644 index d99af44..0000000 Binary files a/docs/public/media/preferences/plugin-info.png and /dev/null differ diff --git a/docs/public/media/preferences/plugins.png b/docs/public/media/preferences/plugins.png index 02ce7fe..44f348e 100644 Binary files a/docs/public/media/preferences/plugins.png and b/docs/public/media/preferences/plugins.png differ diff --git a/docs/public/media/preferences/sources.png b/docs/public/media/preferences/sources.png deleted file mode 100644 index c616c84..0000000 Binary files a/docs/public/media/preferences/sources.png and /dev/null differ diff --git a/docs/public/media/preferences/terminal.png b/docs/public/media/preferences/terminal.png index 6e45524..3fca3d4 100644 Binary files a/docs/public/media/preferences/terminal.png and b/docs/public/media/preferences/terminal.png differ diff --git a/docs/sessions/index.md b/docs/sessions/index.md index d1723d5..93a507b 100644 --- a/docs/sessions/index.md +++ b/docs/sessions/index.md @@ -4,96 +4,42 @@ title: Sessions # Sessions -Among saves workspace names, colours, sidebar order, nested splits, focus and -known directories. Restoring starts fresh shells. It does not resume commands, -running processes or scrollback, and does not retain temporary pane expansion. +Return to your workspace names, colours and pane layout after restarting Among. +Restored terminals open fresh shells in their last known directories. -## Saving and restoring +
+ +
Restore brings back the workspace, its pane layout and each terminal's directory. Commands, running tools and scrollback do not return.
+
-A new application process with a valid saved session asks you to choose Restore -or Start new. Restore recreates inactive workspaces too, with the saved active -workspace and focused pane. A pane moved to another workspace belongs to that -destination in the saved session. +## Restore your layout -Start new, or Escape, opens a single-terminal workspace. Its next checkpoint -replaces the previous session. Closing the window while the prompt is open -exits without starting terminals or changing the old snapshot. Activating an -already running application does not ask again. The window opens maximized. +Open Among and choose Restore when asked. Your other workspaces return too. +Commands, running tools and scrollback do not return. Start those tools again +in the restored panes. -Changed state is checkpointed every two seconds. Checkpoints do not write to -disk when the state is unchanged. Disk completion depends on storage -availability. Confirmed exit saves the latest state before closing -terminals; cancelling exit keeps them running. A crash can lose changes since -the last completed checkpoint. Power loss or storage errors can lose more. +[![The restore prompt explains that layouts return but commands and processes do not](/media/app/session-restore.png)](/media/app/session-restore.png) -## Directory reporting +Choose Start new for a single empty workspace. Its next save replaces the +previous session. Closing the restore prompt with the window's close button +leaves the saved session untouched. -Among knows each shell's initial directory. Later changes require the shell to -publish OSC 7 directory reports, even when the workspace is inactive. No plugin -is needed, and Among never edits shell startup files. Installing Starship alone -does not provide directory reporting. +## Keep track of directories -For Bash, test this helper in a terminal without changing shell files: +Optional [shell integration](/install/#shell-integration) lets new splits and +restored sessions use the directory you are working in. Without integration, +Among knows the directory where each shell started. -```sh -among_osc7() { - local status=$? LC_ALL=C directory uri='file://' byte encoded i - directory=$(pwd -P && printf '.') || return "$status" - directory=${directory%.} - directory=${directory%$'\n'} - for ((i=0; i<${#directory}; i++)); do - byte=${directory:i:1} - case "$byte" in - [a-zA-Z0-9/._~-]) uri+=$byte ;; - *) printf -v encoded '%%%02X' "'$byte"; uri+=$encoded ;; - esac - done - printf '\033]7;%s\007' "$uri" - return "$status" -} -PROMPT_COMMAND="among_osc7${PROMPT_COMMAND:+; $PROMPT_COMMAND}" -among_osc7 -``` +If a directory no longer exists or cannot be opened, the shell starts in an +accessible home or startup directory. Settings tells you which panes were affected. -The helper percent-encodes the physical directory using Bash builtins. Add it -to your Bash configuration if wanted. It keeps the previous command's exit -status, so prompt tools that run after it, such as Starship, still see that -status. Other shells need their own prompt hook. -The same reports supply [pane directory labels](/plugins/#live-status-examples) -and the initial directory when [splitting a pane](/panes/#splitting-a-pane). +## If saving fails -Use this hook in local shells. If it runs in a remote shell over SSH, it reports -the remote directory as a local file URI. Among discards any hostname in OSC 7 -file URIs and treats the path as local. For example, `file://server/srv/project` -becomes `/srv/project` on your computer. Splitting or restoring uses that local -path; it does not reconnect over SSH. +Among saves layout changes automatically and saves again on confirmed exit. +A crash can lose recent changes. Power loss or storage errors can lose more. -If a saved directory has been deleted or cannot be entered, the shell falls -back to an accessible home or startup directory. Settings lists affected panes. -Among records the actual known directory, not an unavailable requested path or -another terminal's location. - -## Storage and recovery - -When `XDG_DATA_HOME` is set, the snapshot path is that value followed by -`among/session.json`. An empty value produces the relative path -`among/session.json`; a relative value also stays relative. Only when -`XDG_DATA_HOME` is unset does Among use `$HOME/.local/share/among/session.json`, -if `HOME` is set. If both variables are unset, no snapshot path is available. - -Saving it does not change preferences, install plugins or modify shell files. -It contains no commands, process IDs, shell environment or scrollback. - -Snapshots are limited to 8 MiB, 64 nested splits, 4096 panes and 256 workspaces. - -Storage errors appear in Settings without blocking input. Later checkpoints -retry after the problem is fixed. If the final save fails, choose whether to -keep working or exit without saving. Keeping the window open resumes retries. - -Invalid or future-version snapshots are preserved until corrected or removed -externally. Symlink and non-regular destinations are refused. New snapshots -are private, with mode `0600`; existing stricter permissions are preserved. -Atomic replacement keeps the previous complete file if replacement fails. -A directory-sync error after replacement means the new file was written but -its durability through power loss is uncertain. Editing a snapshot while Among -saves it can produce a retryable concurrent-change warning. +Settings shows saving problems. Fix the storage problem and Among retries. +If the final save fails, keep working to allow another attempt, or choose to +exit without saving. diff --git a/docs/shortcuts/index.md b/docs/shortcuts/index.md index 29b07a2..8faffb0 100644 --- a/docs/shortcuts/index.md +++ b/docs/shortcuts/index.md @@ -4,45 +4,35 @@ title: Keyboard shortcuts # Keyboard shortcuts -These shortcuts work while Among has focus. Desktop shortcuts can intercept -keys before Among receives them. Among does not register global shortcuts; -use your desktop's keyboard settings to launch it from another window. -Unclaimed keys reach the focused terminal. +Move between terminals and adjust your layout while keeping your hands on +the keyboard. These shortcuts work when Among has focus. ## Defaults -| Action | Binding | Behaviour | -| --- | --- | --- | -| Focus up, down, left or right | `Alt+Up`, `Alt+Down`, `Alt+Left`, `Alt+Right` | No change without a neighbour or while expanded | -| Activate workspace 1 through 9 | `Alt+1` through `Alt+9` | Uses current sidebar order; no change beyond the last workspace | -| New workspace | `Ctrl+Shift+T` | Creates and activates a workspace | -| Split pane | `Ctrl+Shift+N` | Chooses orientation from the pane's shape; refused while expanded | -| Move divider up or down | `Ctrl+Shift+Up`, `Ctrl+Shift+Down` | Moves the nearest stacked divider above the pane in the layout | -| Move divider left or right | `Ctrl+Shift+Left`, `Ctrl+Shift+Right` | Moves the nearest side-by-side divider above the pane in the layout | -| Close pane | `Ctrl+Shift+W` | Closes its process; the last workspace asks before exit | -| Open preferences | `Ctrl+,` | Opens Settings | -| Toggle fullscreen | `F11` | Returns to the previous size | -| Toggle pane zoom | `Ctrl+Shift+X` | Expands the focused pane or restores the layout | -| Next workspace | `Ctrl+PageDown` | Wraps around | -| Previous workspace | `Ctrl+PageUp` | Wraps around | - -`Ctrl+Shift+Arrow` resizes dividers; `Alt+Arrow` moves focus. There is no default -`Alt+0` binding for the tenth workspace. See [workspace ordering](/panes/#workspaces) -and [the terminal context menu](/panes/#terminal-context-menu) for mouse controls -and `Shift+F10`. +| Task | Shortcut | +| --- | --- | +| Split a pane | ` + + N` | +| Move focus | ` + Arrow` | +| Resize a split | ` + + Arrow` | +| Expand or restore a pane | ` + + X` | +| Close the focused pane | ` + + W` | +| Create a workspace | ` + + T` | +| Switch to workspace 1 through 9 | ` + 1` through ` + 9` | +| Next or previous workspace | ` + Page Down` or ` + Page Up` | +| Open Settings | ` + ,` | +| Enter or leave fullscreen | `F11` | + +Closing a pane can end a running job. Restore an expanded pane before splitting +or moving focus with arrows. ## Preferences -Open Settings with `Ctrl+,` and select Keyboard. Every action is listed, -including actions with no binding. Select a row and press a new combination. -Select it again to cancel capture, or press Escape to remove its binding. +Open Settings with ` + ,` and choose Keyboard. Select an action and press +the combination you want. Select it again to cancel, or press Escape to remove +its binding. Changes apply immediately. -![Keyboard shortcut editor in Preferences](/media/preferences/keyboard.png) +[![Select an action in Keyboard to change its shortcut](/media/preferences/keyboard.png)](/media/preferences/keyboard.png) -Changes apply immediately. Assigning a shortcut already used by another action -removes the previous assignment. Removed and displaced bindings are saved too. -Check for conflicts in your desktop settings, especially for `Super` and -`Ctrl+Alt` combinations. Among does not check the desktop's assignments. - -A failed save leaves the edit active for this session and shows a warning. -See [stored settings](/preferences/#stored-settings). +Assigning a shortcut already used by another action removes the previous +assignment. If a shortcut does not reach Among, check your desktop's keyboard +settings for a conflict. Desktop shortcuts can intercept keys first. diff --git a/scripts/check-site.mjs b/scripts/check-site.mjs index 3a524a0..cfbf361 100644 --- a/scripts/check-site.mjs +++ b/scripts/check-site.mjs @@ -4,14 +4,15 @@ import path from 'node:path' import { createHash } from 'node:crypto' const root = path.resolve('.vitepress/dist') -const routes = ['', 'features', 'plugin-development', 'plugins', 'panes', 'sessions', - 'preferences', 'shortcuts', 'overview', 'build', 'install', 'licensing'] +const routes = ['', 'notifications', 'plugin-development', 'plugins', 'panes', 'sessions', + 'preferences', 'shortcuts', 'build', 'install', 'licensing'] for (const route of routes) { const file = path.join(root, route, 'index.html') assert(fs.existsSync(file) && fs.statSync(file).size > 0, `Missing route /${route}/`) const html = fs.readFileSync(file, 'utf8') assert(html.includes('src="/media/logo-small.svg"'), `Wrong navigation artwork on /${route}/`) + assert(html.includes('src="/media/logo-small-cream.svg"'), `Wrong dark navigation artwork on /${route}/`) assert(html.includes('href="/media/logo-small.png"'), `Wrong favicon on /${route}/`) const source = fs.readFileSync(path.join('docs', route, 'index.md'), 'utf8') const prose = source.replace(/```[\s\S]*?```/g, '').replace(/`[^`]*`/g, '') @@ -22,14 +23,73 @@ for (const route of routes) { // Hashes bind the delivered artwork to the approved square mark. for (const [name, expected] of [ - ['logo-small.svg', '9c6b334d1a60119e834681ffb95acc8707128756f2e74f440e8f1aa3fa9b0a01'], - ['logo-small.png', '941cd693d135e329344312e3466cded3a6294c951a7d640a9c8fe77141b2857a'], + ['logo-small.svg', 'e0e8e101f2d3226a09bb4a2c25ff3976c7480b36bcb8d0e807eab81fba749e98'], + ['logo-small-cream.svg', '488c2a20e29a2f4f785c464f56f2b77eaa026f17a7bd75795ae32cd8f58ad9cf'], + ['logo-small.png', '8094722ae0cae734a62f66de604628644e13eafa600eeae1ba80db919191bb18'], ]) { const delivered = fs.readFileSync(path.join(root, 'media', name)) assert.equal(createHash('sha256').update(delivered).digest('hex'), expected, `Unapproved ${name}`) assert.deepEqual(delivered, fs.readFileSync(path.join('docs/public/media', name))) } +// The captured media manifest binds every published still and recording to +// the scene output that was reviewed. Feature clips reused from the approved +// 0.1.0 feature set carry their own pinned hashes. +const captured = JSON.parse(fs.readFileSync('docs/media.json', 'utf8')) +const appMedia = new Set([ + 'session-restore.png', + 'plugin-off.png', 'plugin-on.png', 'panes.mp4', 'panes-poster.png', + 'overview.mp4', 'overview-poster.png', + 'notification-return.mp4', 'notification-return-poster.png', 'desktop-notification.png', +]) +const approvedMedia = new Map([ + ['session-restore.mp4', 'e8cbac92b31982868fd9f5592bc274a3383750181830a399448cfcd5d8cd2c6f'], + ['session-restore-poster.png', 'a247abae051ce8f7e69eb76c1ddce764b6ec9fbba9ce51d561c8ce1f5c541a54'], + ['split-resize.mp4', 'd7ab7801424ac2b424d8065793ec282fb14f0df191f5def0a5c89cf311fcccbe'], + ['split-resize-poster.png', '43c840e606f81eb11152d6883f15cc98aa659f087975cb1c3e1553146d8ab4f0'], + ['keyboard-resize.mp4', '7798f9fece53b528a796572d71d2a99d61c37204e216f7183dc72bc513cc818c'], + ['keyboard-resize-poster.png', 'e73e93276985163992a7d4da31d843468a8baedf8027a42c88d7f385bf051813'], + ['mouse-resize.mp4', 'fecc80428ac661eb36f1593de4f0884c0d00a2ffe94ab1553f0f30f9aab154aa'], + ['mouse-resize-poster.png', 'ef003dc730da95145a9b4d57ef658e3f4488d69407f62fecd9a89f4d7e4eb89c'], + ['pane-drag.mp4', '7365769fdcc78cd723caaf7cc19bd9a53e06d041a591bef9543db17d0e912cec'], + ['pane-drag-poster.png', '45803f6f8e53cc21658b19c4f09ba85f67ea6cc75bfa35e2edafbfe7ee467ec2'], + ['workspaces.mp4', 'a3e53b2afb8e12389045ba22aa5ecd0503fd622d1ac7f63bba32f1d6411fa629'], + ['workspaces-poster.png', '17190d35c99fe2f7086798ce4e4b8a99a96141e2c2c6be11983ddadfa5661dfa'], + ['sidebar.mp4', 'e74997d9672c267ede756b52388adce34039ee6cb4a5b466daea1a0309d7315a'], + ['sidebar-poster.png', '233c634d49ebf91a0795532c6e59b20f7532842deda6a959db90ce14815ed292'], + ['theme-switch.mp4', '45b1792a437a18e24e37fec0479c07d36ee5f6cb4c6294607e68f5e7e405a499'], + ['theme-switch-poster.png', '1f80851596ff9b3f2b72a683a0753dc2c0a2c1bb750e3bc7827a08ac06d95320'], +]) +const mediaFiles = [ + ...fs.readdirSync('docs/public/media/app').map(name => ['app', name]), + ...fs.readdirSync('docs/public/media/preferences').map(name => ['preferences', name]), +].filter(([, name]) => /\.(?:png|mp4)$/.test(name)) +assert.deepEqual( + new Set(mediaFiles.map(([, name]) => name)), + new Set([...Object.keys(captured.assets), ...approvedMedia.keys()]), + 'Media manifest must list every published still and recording', +) +for (const [directory, name] of mediaFiles) { + const file = path.join('docs/public/media', directory, name) + const bytes = fs.readFileSync(file) + const entry = captured.assets[name] + const approved = approvedMedia.get(name) + assert(entry || approved, `Published media is missing from the manifest: ${name}`) + if (entry) { + assert.equal(bytes.length, entry.bytes, `Media size changed: ${name}`) + } + assert.equal( + createHash('sha256').update(bytes).digest('hex'), + entry ? entry.sha256 : approved, + `Media does not match the reviewed artwork: ${name}`, + ) + assert.equal( + appMedia.has(name) || approvedMedia.has(name), + directory === 'app', + `Media is in the wrong directory: ${name}`, + ) +} + const index = fs.readFileSync(path.join(root, 'llms.txt'), 'utf8') const full = fs.readFileSync(path.join(root, 'llms-full.txt'), 'utf8') const links = [...index.matchAll(/\]\((https:\/\/among-terminal\.github\.io\/[^)]+)\)/g)] @@ -110,14 +170,6 @@ function checkTargets(directory) { } checkTargets(root) -for (const entry of fs.readdirSync('docs/public/media/diagrams')) { - assert(entry.endsWith('.svg'), `Unexpected diagram format: ${entry}`) - const svg = fs.readFileSync(path.join('docs/public/media/diagrams', entry), 'utf8') - assert(/]*>[^<]+<\/title>/.test(svg), `Diagram needs a title: ${entry}`) - assert(/]*fill="#20262f"/.test(svg), `Diagram needs an explicit background: ${entry}`) - assert(svg.includes('#fdae02'), `Diagram needs the project amber: ${entry}`) - assert.deepEqual(fs.readFileSync(path.join(root, 'media/diagrams', entry)), Buffer.from(svg), `Diagram changed during build: ${entry}`) -} function checkPrivacy(directory) { for (const entry of fs.readdirSync(directory, { withFileTypes: true })) { @@ -132,5 +184,5 @@ function checkPrivacy(directory) { } checkPrivacy(root) console.log(`PASS ${routes.length} routes, generated LLM files, per-page Markdown, ownership and privacy`) -console.log(`PASS ${localTargets} local targets, ${anchors} anchors, ${media} media references and diagram assets`) +console.log(`PASS ${localTargets} local targets, ${anchors} anchors and ${media} media references`) console.log(`PASS syntax for ${external.size} external URLs; remote availability not checked (offline)`)