Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Shell profiles

On Windows, Voyager7 lists the shells you have installed, as Windows Terminal and VS Code do (ADR 0013). The ▾ beside + lists them; Settings, the Command Palette and About stay in the ☰ menu. Click a profile for a new tab, Shift+click for a new window, Alt+click for a split (Shift+Enter and Alt+Enter from the keyboard). Ctrl+Shift+1 to 9 open the first nine, and Ctrl+Shift+Space opens the ▾ list. The palette's New Tab… and Split… list them too, and so do the Tab and Split submenus of the terminal's right-click menu. Each tab shows its profile's icon. A profile with v7-profile-tab-color fills its whole tab, as Windows Terminal does: the active tab in the colour, other tabs in a darker, muted shade (lighter while hovered), with black or white text, whichever contrasts more.

Voyager7 finds Command Prompt, Windows PowerShell, PowerShell 7 (MSI, Store, scoop and dotnet installs), Git Bash, Nushell, MSYS2, Cygwin and your WSL distributions. It reads only files and the registry and starts nothing. +, Ctrl+Shift+T and new windows use the default profile, which is Command Prompt unless you set Ghostty's command or v7-default-profile.

Your own profiles are Ghostty configuration files in a profiles folder beside the configuration (%APPDATA%\Voyager7\profiles\Work.ghostty). Voyager7 loads a profile's file after the main configuration, for that profile's tabs:

# profiles\Work.ghostty
command = pwsh.exe -NoLogo
working-directory = D:\work
title = Build
v7-profile-icon = C:\Program Files\PowerShell\7\pwsh.exe
v7-profile-tab-color = #2d6cdf
v7-profile-elevate = true

A profile file can set command, working-directory, title, shell-integration, theme and the colour keys (background, foreground, palette, cursor-*, selection-*, search-*), plus Voyager7's v7-profile-name, v7-profile-icon, v7-profile-tab-color, v7-profile-elevate (run as Administrator, in an Administrator window) and v7-profile-hidden. A file named like an installed shell overrides it, for example Git Bash.ghostty with v7-profile-hidden = true. Without command, a profile runs the main configuration's. A profile's theme and colours apply to its own tabs and splits, over the main configuration's colours; other tabs keep theirs. Font and other appearance keys stay application-wide for now and are reported in a profile file.

Like Windows Terminal, a detected PowerShell older than 7 (Windows PowerShell of any version, such as 2.0 on Windows 7 or 5.1, and PowerShell Core 6) uses the Campbell Powershell theme, unless it is the default profile. The version comes from its install folder or its file version; nothing is started. This applies only while neither your configuration nor that profile's file sets theme or a colour key. Every other profile (Command Prompt, PowerShell 7 and later, Git Bash, …) uses Ghostty's colours, so on Windows 7 a cmd tab is in Ghostty's colours and a Windows PowerShell tab in Campbell Powershell.

Apps also give Windows Terminal profiles, icons and colour schemes in JSON fragments; Ubuntu's Store package, for one, gives its distribution Ubuntu's purple scheme. On Windows 10 and later Voyager7 reads them too, read only: the Fragments folders under %LOCALAPPDATA% and %ProgramData%\Microsoft\Windows Terminal, and the fragments of each WSL distribution's package. A fragment's scheme becomes the default theme of the profile it names, by the same rules as Campbell Powershell above; a fragment's new profiles join the list (merged with detected ones by name, without duplicates) and its hidden is respected. An Ubuntu distribution without a fragment uses the built-in Ubuntu theme. Settings tags each profile with its default theme and where it comes from ("Ubuntu · WSL"); v7-profile-fragments = false turns fragments off. See ADR 0019. In the main file, v7-default-profile, v7-profile-order (repeatable) and v7-profile-detect shape the list, and v7-profiles = false turns profiles off, which is the default on Linux and macOS. Settings (Ctrl+,) has a Profiles category that edits all of this and writes the files for you. voyager7 +validate-config checks every profile file; --v7-profile=NAME starts Voyager7, +new-tab or +new-window with a profile.

Right-click Voyager7's taskbar button (or its Start menu entry) for a jump list of your visible profiles, with their icons, and New window. Each opens a new window with that profile in the running Voyager7 (or starts one), as a taskbar launch does. The list is written when Voyager7 starts and again when a reload or the Settings profile editor changes it; the uninstaller removes it. It works on Windows 7 to 11, unless Windows' "Show recently opened items in Jump Lists" is off.

Dropping files and text

Drop files or folders from Explorer onto a terminal and Voyager7 pastes their paths, separated by spaces, written for the shell of the split under the pointer (which takes focus, as a click would). Drop text and it pastes the text. Either way it is a paste: Ghostty's paste protection asks before multi-line text runs in a shell without bracketed paste, and bracketed paste applies when the program asked for it. Explorer's drag shows "Paste path", and a drop is always a copy, so nothing is moved or deleted.

Shell (from the profile's command)C:\Users\me\a b.txt becomes
Command Prompt"C:\Users\me\a b.txt"; a % is pasted as "^%" so %NAME% never expands
PowerShell (Windows PowerShell, 7+)'C:\Users\me\a b.txt', every kind of single quote doubled
Nushell'C:\Users\me\a b.txt' (backticks or an escaped "…" when the name has ')
WSL (wsl.exe, Windows' bash.exe)'/mnt/c/Users/me/a b.txt'; \\wsl$\Ubuntu\home\me is /home/me
Cygwin'/cygdrive/c/Users/me/a b.txt'
MSYS2, Git Bash'/c/Users/me/a b.txt'
anything else"C:\Users\me\a b.txt"

Paths without spaces or special characters are pasted unquoted. A profile can choose the style with v7-profile-path-style = auto | windows | cmd | powershell | nushell | wsl | cygwin | msys2 | mingw (mingw is C:/…), for example an ssh profile with wsl. A shell you start inside another one (WSL from cmd) gets the profile's style. With delayed expansion turned on (cmd /v:on), ! in a name can still expand in cmd.

An elevated (Administrator) Voyager7 cannot receive drops from programs that are not elevated: Windows' User Interface Privilege Isolation blocks them. Like other Win32 programs, it still accepts files dropped from Explorer there (the older WM_DROPFILES), with the same quoting; text cannot be dropped on it.