User guide File explorer

File explorer

The Explorer tab of the sidebar browses the local disk while the active tab is a local terminal (it is disabled for other tabs). A new local terminal brings it to the front when the sidebar shows Sessions (any other tab you chose stays); PlexusTerm opens on the sidebar tab it was closed on, Sessions included, without the terminal it starts with changing it. In Sessions, the folders you folded stay folded the next time. Switching between a local and an SSH tab swaps the Explorer and the SFTP browser. It works like the SFTP browser on this computer's files:

  • Edit the path bar and press Enter, or use ↑ (parent), ⌂ (home folder) and ⟳ (refresh).
  • File icons come in four packs, chosen in Settings → Files, one for the plain lists (the Explorer and the SFTP browser outside DEV mode) and one for DEV mode's trees: Material (the colourful icons of VS Code's Material Icon Theme: one per language and format, and folders such as src, docs, .git or node_modules with their own; the default for the plain lists), Seti (VS Code's own icons; the default for DEV mode) Classic (PlexusTerm's first icons: 📁 for folders, 📄 for files and 🔗 for links) and Lines (simple line icons: folders tinted, links with a link, files by what they hold, such as code, data, configuration, scripts, documents, images, audio, video, archives, spreadsheets and keys).
  • Double-click a folder to open it, or a file to open it in its default program. In DEV mode the list looks like VS Code's Explorer instead (see DEV mode file lists).
  • The toolbar's icons (hover one for its name) come in groups, a thin line between them: Open folder (choose a folder in the system's dialog and list it; with Follow terminal folder on, the terminal changes to it too), then New file (an empty file; an existing one is never replaced) and New folder, created inside the selected folder, or in the listed folder when no folder is selected, and selected once created (in DEV mode the tree opens down to it), then Rename (an existing name is never replaced) and Delete, which act on the selected entry. Deleting a folder deletes everything in it, after a confirmation.
  • Right-click a folder for New file and New folder, created inside it. Right-click an entry for Open, View (files: see Viewing files), Open with default text editor (the Text editor of Settings), Open with…, Rename…, Delete, Copy file path, Copy file path to terminal (also a middle click; quoted for the terminal's shell), Properties and, on Linux, Permissions…. Files open in place: there is no temporary copy. On folders, Open in terminal (right after Open) opens a new local terminal tab, with the same shell as the active one, that starts in that folder.

Show folder in Explorer, in the right-click menu of a local or SSH tab, makes that tab active and opens the sidebar on the Explorer (the SFTP browser for SSH) at its terminal's folder: the sidebar unfolds, Follow terminal folder turns on and a pinned DEV Explorer view of another tab is unpinned.

With Follow terminal folder on (the default), the Explorer shows the folder the terminal's shell is in. Shells that report it with OSC 7, or with OSC 9;9 as the Windows shells below, are followed at once; with Shell integration (Terminal settings) on (the default), PlexusTerm makes bash, zsh and fish report it at every prompt. For other shells PlexusTerm reads the shell's working folder every second while the tab is shown, on Linux; it is the shell's own folder, not that of a program it runs. On Windows PlexusTerm makes PowerShell, cmd and Git Bash report their folder by themselves at every prompt (OSC 9;9, as Windows Terminal reads it): PowerShell's prompt, including one set by oh-my-posh or Starship in your profile, is wrapped when it starts without arguments of yours; cmd gets the report in front of its PROMPT; Git Bash gets it through PROMPT_COMMAND (a PROMPT_COMMAND set in your .bashrc replaces it). WSL is not followed.

DEV mode file lists

In DEV mode the Explorer and the SFTP browser start at the project the AI tool runs in, and look and work like VS Code's Explorer:

  • The list is a tree: click a folder (or its chevron) to expand it in place, and again to collapse it; its entries are listed when it is first expanded, indented under it with thin guide lines. Several folders can be open at once, and they stay open when the list is refreshed. Double-click a folder to list from it (it becomes the top of the tree); double-click a file to show it in the viewer next to the terminal. Rename… on a nested entry renames it in its own folder.
  • Right-click an entry for VS Code's Explorer menu, with the same keys on the selected entry: Open to the Side (Ctrl+Enter, a file in the viewer next to the terminal), Open Containing Folder (Ctrl+Alt+R, in the system's file manager), Open With…, Open in Integrated Terminal (a new terminal tab in that folder), Cut (Ctrl+X), Copy (Ctrl+C) and Paste (Ctrl+V, into the folder right-clicked or the file's folder: a cut entry moves there, a copied one is copied, folders with everything inside, and named name copy, name copy 2… when the name is taken; nothing is ever replaced), Copy Path (Ctrl+Alt+C), Copy Relative Path (Ctrl+Shift+Alt+C, from the workspace folder it is in), Rename… (F2) and Delete (Del). Below them stay PlexusTerm's own: Open with default text editor, Copy file path to terminal, Properties, Permissions… and, on a workspace folder, Remove folder from workspace.
  • Rename in place, as in VS Code: select an entry and press F2, and its name becomes a field, with a file's name before its extension selected. Enter or clicking elsewhere renames it; Escape leaves it as it was.
  • Drag a file or folder onto a folder of the tree to move it there (onto a file, it goes to that file's folder; onto the empty space of the list, to the listed folder). PlexusTerm asks first, so an entry dropped by mistake stays where it was. A move never replaces an entry with the same name, and a folder cannot go into itself. Moves stay within the same computer or SSH session.
  • The toolbar's first icon, Open folder in a new DEV tab, opens the folder you choose in a new local terminal already in DEV mode, as Open workspace does with a workspace file. Its last two icons, as in VS Code: Refresh Explorer lists everything again (open folders stay open) and Collapse Folders in Explorer closes every open folder. You rarely need Refresh: while the terminal prints (an AI tool creating or deleting files) and each time its prompt comes back, the Explorer lists its folders again by itself, at most every 1.5 seconds and only while it is on screen, keeping the selection and the open folders.
  • Open recent (the clock icon next to Open folder in a new DEV tab) lists the workspace files last opened or saved, then, below a line, the last local folders DEV mode was used in, each list newest first (10 of each by default; Settings → DEV mode → Recent DEV mode folders to remember keeps from 1 to 50). Choosing a folder opens a new local terminal there, already in DEV mode, ready to start the tool; choosing a workspace file reads it again and opens it as Open workspace does, or says so when it no longer lists any folder. The lists are kept across restarts and shared by every PlexusTerm window. Settings → Shortcuts → Open recent (DEV mode) binds a shortcut that shows the same menu from anywhere (none by default).
  • With the keyboard: ↓ / ↑ move between entries, → expands a folder or moves into it, ← collapses it or moves to its parent folder, and Enter opens a file or expands a folder.
  • By default each file has the icon VS Code shows for its type with its default Seti icon theme (chosen by the file's name, its extension or its language, coloured as in VS Code for dark and light schemes), and folders a folder icon; Settings → Files → DEV mode tree icons chooses another pack (see File explorer).
  • Inside a git repository, entries show their git status (below).
  • Select an entry in the Explorer and the bottom of the Explorer shows its repository, as VS Code's status bar does: the project's folder and the branch checked out, with * when the repository has uncommitted changes (ignored files do not count). Nothing shows outside a repository or with git status off in Settings.

Workspaces

As in VS Code, a DEV tab's Explorer can show several folders at once, a project and the libraries or services it works with, for example. The toolbar's workspace icons (Explorer only):

  • In DEV mode the Explorer's folder shows as a root, and Add folder adds another folder to the tab's workspace. Every folder, the main one first, shows as a root: a row with a chevron and the folder's name that folds its tree, and a dot coloured by its git changes; each one has its own tree and its own git status. A root's row works like a folder of its tree: right-click it for the same menu, drag it onto a terminal or middle-click it to type its path. Their menu also has Remove folder from workspace, which takes the folder out (the folder itself is not touched); removing the main folder makes the first added one the main folder, and the Explorer moves to it; alone, the main folder cannot be removed. Collapse Folders in Explorer also closes the roots when there are several, and leaves a lone root open. The added folders belong to that tab and are kept while it is open. They show only while the Explorer is in the main folder or below it: going Up or Home out of it hides them until you come back.
  • Save workspace writes the main folder and the added ones to a workspace file in VS Code's format (.code-workspace, { "folders": [{ "path": "..." }] }), so the same file opens the same folders in VS Code. It is written as VS Code writes it: each folder relative to the file's folder (. for the file's own folder; absolute only on another drive), and a new file gets empty settings. Saving over an existing workspace file changes only its folders: its comments, settings, extensions, folder names and remote folders stay as they were.
  • Open workspace opens a workspace file, saved here or by VS Code: a new DEV tab starts in its first folder and adds the others. Folders given relative to the file are taken from the file's folder, and comments and trailing commas of VS Code's files are accepted; remote folders of VS Code workspaces are left out, and a file that lists no folder says so.
  • A .code-workspace file can also be opened with PlexusTerm itself: plexusterm project.code-workspace, or Open with → PlexusTerm in the file manager (the deb package registers the file type). PlexusTerm then starts with that DEV tab instead of its usual terminal; when it is already running (Linux), the workspace opens as a new DEV tab of the open window, which comes to the front. Launching PlexusTerm without a workspace file or folder still opens a PlexusTerm of its own.
  • A folder can be given the same way, for a file manager's action such as Thunar's custom actions: plexusterm ~/src, plexusterm --working-directory ~/src, or the PLEXUSTERM_START_DIR variable set by a launcher (PLEXUSTERM_START_DIR=~/src plexusterm). PlexusTerm starts with its usual terminal in that folder; when it is already running (Linux), the folder opens as a new terminal of the open window. The terminals PlexusTerm opens do not inherit PLEXUSTERM_START_DIR. A Thunar custom action, for folders and files (a file opens its folder): sh -c 'd="$1"; [ -d "$d" ] || d="$(dirname "$d")"; exec plexusterm --working-directory "$d"' _ %f.

Git status in file lists

When a listed folder is inside a git repository, the Explorer and the SFTP browser colour each entry like VS Code, with the same colours for dark and light colour schemes, and show a letter at the right (hover it for its name):

Letter Status Colour
M Modified, or Modified (staged) yellow-brown
A Added (staged or intent to add) green
D Deleted, or Deleted (staged); struck through red
R / C Renamed / Copied green
T Type changed yellow-brown
U Untracked green
I Ignored; the entry is faded grey
! Conflict red

A file with a staged and an unstaged change shows the more important one (conflict, then ignored, then modified, then the others). A folder takes the colour of the most important change inside it and shows a ● instead of a letter; deleted and ignored files do not colour their folders. A folder that git reports as a whole (untracked, or ignored like node_modules) gives its colour to everything inside it. Submodules are not marked.

The status is read with one read-only git status (no lock taken, so it never gets in the way of a git you or an AI tool run) when the list is loaded or refreshed, when the terminal's prompt comes back, and while the terminal tied to the list prints (so files changed by Claude Code, Codex, OpenCode and other AI command-line tools are marked as they work), at most once every 2 seconds and only while the list is shown; nothing is read while it is idle. SSH lists run that git on the server over the same connection. Without git, outside a repository or when it fails, entries are simply not coloured. Very large outputs (many thousands of entries) are cut short rather than slowing the list. Turn it off with Settings → Files → Show git status in file lists. Outside DEV mode git is never read for the file lists.

Viewing files

Right-click a file in the Explorer or the SFTP browser and choose View (in DEV mode, double-clicking a file does the same): it opens in a viewer pane next to the terminal, in the same tab: at its left by default, or at its right or below it with Settings → Files → Open the file viewer.

  • The text is shown with line numbers; long lines wrap to the pane's width (like Alt+Z in VS Code). Ctrl+F searches it.
  • You can edit it: type in the viewer, with Ctrl+Z / Ctrl+Shift+Z to undo and redo. A dot in the viewer's title marks unsaved changes; save with the save button next to its × or with Ctrl+S. With Settings → Files → Save edited files automatically, the file is saved by itself a second after you stop typing. A file someone else (or an AI tool) changed since it was opened is never overwritten: saving says so and keeps your edits, so you can copy them before closing the viewer. Closing a viewer with unsaved changes (its ×, its terminal, its tab, or viewing another file in it) asks first, so edits are never thrown away by mistake. The reload button (the circular arrow in the viewer's header) reads the file from disk again, for a file another program changed; with unsaved changes it asks first. Files longer than 4 MB (shown only in part) stay read-only, and so does the Markdown preview (edit in Code).
  • Changed lines: for a local file in a git repository, a bar at the left of the text marks the lines that differ from its last commit, as VS Code does: green for added lines, blue for modified ones, and a red mark where lines were deleted. The marks follow the text as you edit it or as the file changes on disk, and are read again when the terminal's prompt comes back (after a commit, for instance). Untracked files and files outside a repository show none. The button next to save turns them off and on; the choice is remembered. Files viewed over SFTP are not compared.
  • Status bar: the bar under the text shows, as in VS Code, the file's encoding, its line endings and its language; click one to choose another from a list. Encoding offers Reopen with encoding (read the file again decoded with the chosen one, such as Windows 1252 for an old Western file; not while there are unsaved changes) and Save with encoding (write it in that encoding from now on). Opening finds UTF-8, UTF-8 with BOM and UTF-16 by themselves; saving keeps the file's encoding and its BOM, and refuses, leaving the file as it was, when the text has characters the encoding cannot hold. LF / CRLF converts every line break, which is an edit to save (files shown only in part cannot). The language list (type to filter it) highlights the text as another language, or as Plain Text, only in that viewer.
  • The language is recognised by the file's name (TypeScript, Rust, Python, JSON, YAML, shell scripts, and many more) and highlighted with the colour scheme's colours.
  • Markdown files open rendered; the Code / Preview switch in the viewer's title shows their source. In the preview, web links open in your browser; other links do nothing. Scripts, forms and embedded pages in a Markdown file are never run or shown. Images show too: those of the file itself (a path, relative to the file's folder) are read from the same computer or SSH server as the file, only if they are image files (PNG, JPEG, GIF, WebP, SVG, BMP, ICO, AVIF) of up to 20 MiB and never from a network share; web images load over https: only (opening the file then contacts their sites), and plain http: ones are not shown. A <picture> shows the image of its first source that matches (such as a logo for dark themes), as on GitHub. An image that cannot be shown leaves its alternative text.
  • The viewer follows its file: while its terminal prints (an AI tool at work) the file is read again at most once a second, and again when the prompt comes back; a changed file is shown in place, at the same scroll position. While you have unsaved changes, the file is not reloaded over them.
  • Viewing another file from the same terminal shows it in the same viewer. Close it with its ×; it also closes with its terminal. Files longer than 4 MB show their first 4 MB; binary files and folders cannot be viewed.
  • The viewer counts as one of the tab's 4 panes: when the tab is full, close a pane first.

Dropping files on a terminal

Files and folders dragged from the Explorer, the SFTP browser or the desktop onto a terminal pane:

  • A folder dropped on an empty command line runs cd to it (cd /d in cmd). This only happens when the folder is on the machine the terminal runs on: local files in a local terminal, SFTP entries in the terminal of their own SSH session.
  • Anything else types the paths at the cursor, quoted for the shell and followed by a space: a file, several entries, a folder while something is already typed, at a password prompt or in a full-screen program such as vim, or a path from another machine.
  • A path with control characters is never typed; a notice says so. A Linux folder whose name contains a backslash is typed instead of run, since shells such as fish read it as an escape.

Dropping files on the AI chat

Files dragged from the Explorer, the SFTP browser or the desktop onto the AI chat are attached to the next question, each shown above the input with its × to leave it out. Their text is sent with the question as context, and only with that question:

  • At most 5 files per question; the first 64 KB of each file are read ("(first 64 KB)" marks a longer one), and at most 100,000 characters in all are sent.
  • Binary files (with a NUL byte or invalid UTF-8) are refused with a message. A dropped folder attaches the list of its entries (folders end with /).
  • The text goes to the AI provider chosen in Settings → AI. Do not attach files whose contents must not leave this computer.