pudedocs

Documentation

Install pude, learn the daily flow, and build your first plugin — read it the way you'd read it in pude.

Version 0.1.10 · Published release

README.md

Overview

pude is a local-first desktop code editor. It opens local folders as project tabs, edits text, shows Git, starts terminals on demand and loads local plugins — and keeps everything else out of the core.

What 0.1 includes

  • Project tabs for several folders in one window, multi-folder workspaces saved as .pdw files, multiple windows, a lazy Explorer and on-demand project text/file search and replace
  • Multi-tab editing, syntax highlighting, find and replace, Markdown preview
  • Git status, commit graph, diffs and common actions through your system Git
  • Multiple on-demand terminals backed by real PTYs, including opening at a file or folder from Explorer
  • Local plugins with permission review (API 2) and a restricted LSP process manager

What it leaves out on purpose

  • Project-wide indexing, a debugger or a build system
  • AI services, cloud sync and accounts
  • Silent automatic updates and bundled language servers

Reading these docs

Each file in the Explorer is one topic. Use Source / Preview in the status bar to see the Markdown behind any page, exactly as pude shows it.

install.md

Install and update

PlatformInstaller
Windows 11 x64pude-windows-x64-setup.exe (unsigned)
macOS 14+ Apple Siliconpude-macos-arm64.dmg (signed and notarized)
LinuxPlanned

Verify a download

Each release ships SHA256SUMS.txt, covering both installers, the update packages with their signatures, latest.json and the license files. Compare the checksum before you install:

bash# macOSshasum -a 256 pude-macos-arm64.dmg# Windows (PowerShell)Get-FileHash .\pude-windows-x64-setup.exe -Algorithm SHA256

Updates

pude looks for a newer version on GitHub Releases about five seconds after startup, and again when you click Check for updates in Help › About pude. Turn the startup check off with Check for updates on startup in Settings. When a release is available, Update [version] appears beside the branch name at the lower left. Click it to download; the button shows Downloading…, then Restart and update. About keeps the same controls and release notes, and shows errors with a retry action. pude never downloads or installs an update by itself. The download is verified against its signature, and pude asks about unsaved changes before it restarts. You can also close pude, download the newer installer and run it.

using-pude.md

Using pude

Open a project

Choose File › Open folder (⌘K ⌘O, or Ctrl+K Ctrl+O on Windows) and pick a local directory. It opens as a project tab in the header; opening a folder that is already open switches to its tab. Only the top level is read, and folders load as you expand them. An empty tab lists Recent folders and Recent workspaces separately.

  • Each project tab keeps its own files, unsaved edits, undo history, search, Git view and terminals while it is in the background. Right-click blank space and choose Refresh to update listings, open files and Git without interrupting those projects or terminals. Drag project tabs to reorder them; they reopen in that order.
  • + in the header adds an empty project tab. File › New window opens a separate window with its own projects.
  • On Windows, right-click a folder and choose Open with pude.
  • Right-click pude in the macOS Dock, or on the Windows taskbar or Start, for New Window and your recent folders and workspaces. A recent item opens as a new project tab in the pude window you used last, or switches to the tab that already shows it; only with no window open does it open a new one.

Workspaces

A project tab can show several folders. Choose File › Add folder to workspace…, or the folder button with a split icon in the FILES bar. Explorer then shows a (Workspace) row with each folder below it, and search covers every folder. Right-click a folder row and choose Remove Folder from Workspace to take it out again.

  • File › Save workspace as… saves the folders as a .pdw file. While the tab has a workspace file, adding or removing folders updates it. Folders near the file are stored as relative paths, so the workspace still opens after you move or clone the whole tree.
  • File › Open workspace… opens a .pdw file in a new project tab, or switches to the tab that already shows it. Folders that no longer exist are skipped with a notice. From a terminal, pude team.pdw works too.
  • Git, terminals and plugins use the first folder. If you remove the first folder, the next one takes over. New file and New folder in the FILES bar create items in the first folder; right-click another folder to create items there.

Explorer

  • Create, rename and delete files and folders. Deleting moves items to the Recycle Bin or Trash — never a permanent delete. The FILES bar at the top of Explorer has + for a new file and a folder button for a new folder.
  • Copy and paste files and folders with Copy File or Copy Folder in the right-click menu's Copy submenu and Paste, or ⌘C and ⌘V (Ctrl+C and Ctrl+V on Windows and Linux) on a focused Explorer row. Pasting on a folder puts the item inside it; pasting on a file puts it beside that file. The copied item stays available when you switch project tabs, so you can paste it into another project. It is separate from the system clipboard, holds one item, is not shared between windows and is forgotten on restart.
  • Paste never overwrites: a name in use becomes name copy.ext, then name copy 2.ext. Folders copy recursively in the background and cannot be pasted into themselves or their subfolders. Symbolic links are recreated rather than followed, which on Windows needs Developer Mode or administrator rights. Sockets, pipes and device files inside a folder are skipped. A failed paste removes its partial copy, but closing the window during a paste can leave one behind.
  • In a Git repository, Add to .gitignore in the right-click menu lists a file or folder that is not ignored yet in the .gitignore at the repository root, matching only that item. Git keeps tracking files that are already committed, so the confirmation points to git rm --cached; Pude does not change the index.
  • Right-click a file or folder for New file, New folder, the Copy submenu (Copy File or Copy Folder, Copy Name, Copy Path and Copy Relative Path; hover, click or press the right arrow key to open it), Open in Integrated Terminal and Reveal in Finder (Open in File Explorer on Windows). On a file, New file and New folder create the item in that file's folder.
  • Dot files are shown. Git-ignored items have gray names. The Git ignored root group uses a Git icon, divider and count; expand it to browse ignored items. Toggle Group ignored beside the footer’s plugin count to show them among normal entries instead. The choice is remembered after restart.
  • Long folders stay fast: only visible rows are rendered.
  • The chevron button in the FILES bar collapses every open subfolder. ⌘B (Ctrl+B) hides or shows the whole sidebar for the current session; selecting the icon of the view already showing in the activity bar hides it too.

Project search

Select the Search icon in the activity bar on the left edge of the window, between Explorer and Git, or press ⌘⇧F (Ctrl+Shift+F on Windows); a short single-line selection in the editor becomes the query. ⌘P (Ctrl+P) opens search in Files mode to go to a file by name. Choose Text for literal text or Files for names and relative paths; Aa matches case. Git-ignored files are excluded unless you enable Include Git ignored files. Results show the file name first, with its folder in a dimmer color and the line number beside it. Selecting a text result centers its match in the editor where scrolling allows, and highlights the matching text. Select EXPLORER or press Escape in the search input to return to files.

To replace, select the chevron beside Text / Files to show Replace with. Replace all (or Enter in that field) replaces every match in the project, including files beyond the listed results. Text results are grouped by file, and the replace button on a file's heading changes only that file. pude asks before it changes files and then reports how many matches and files changed.

Edit

  • File tabs support drag to reorder and middle-click close. Right-click a tab for Pin, Save As…, Close others, Close to right, Close saved, Close all, Copy Path, Copy Relative Path and Reveal in Finder. Closing a group of tabs keeps pinned tabs open. ⌘⇧T (Ctrl+Shift+T) or the arrow at the end of the tab bar reopens closed tabs, most recent first; the last ten are remembered while pude runs.
  • Find and replace with match case (Aa), regex (.*) and whole-word options; hover any find bar button to see what it does. The find bar shows which match is selected and how many there are (counting stops at 1,000 and is off in large-file mode). Enter finds the next match, Shift+Enter the previous one; in the replace field Enter replaces the next match and ⌘Enter replaces all. Opening Find with a short selection searches for it.
  • ⌘G jumps to a line; type line:column, such as 12:5, to land on a column. Clicking Ln, Col in the status bar does the same. The status bar also shows how many characters are selected, and Spaces or Tab Size for the indentation in use.
  • Multiple cursors, undo and redo, and indentation come from CodeMirror 6. The editor highlights the current line, matching brackets and other copies of the selected text, closes brackets and quotes as you type, re-indents closing brackets, and folds blocks from the gutter. ⌘D (Ctrl+D) adds the next match to the selection, ⌘⇧L selects every match, and Alt-drag makes a column selection. Large-file mode leaves out folding and auto-closing.
  • The command palette (⌘⇧P) shows each command's shortcut, matches words in any order and lists the commands you ran recently first. It includes editing commands such as Sort Lines Ascending, Transform to Uppercase, Trim Trailing Whitespace, Fold All, Toggle Line Comment and Duplicate Line, and view commands such as Toggle Word Wrap (⌥Z, Alt+Z), Toggle Line Numbers and Toggle Whitespace.
  • .env and .env.* files have shell syntax highlighting for assignments, quoted strings, numbers, expansions and comments, and show Dotenv in the status bar. The same large-file limits apply.
  • .env files open as a table: each variable has a name field and a value field, each with a copy button, and Line copies the whole NAME=value line. Use Add variable in the toolbar or below the table to add a row after the last variable, before trailing comments. Right-click a row or use its actions menu to insert above or below. Rename, edit or delete variables, and generate random values in Hex, Base64URL, Base64, alphanumeric or UUIDv4 format. The default is 32-byte Base64URL; lengths range from 1 to 1,024 bytes or characters, with 16, 32 and 64 presets. Generate key in the toolbar works even in an empty file: copy the value or add it as a new variable. A row's ✦ button or actions menu generates a value for that row, including a new variable's row. The preview shows its character count. Preview, regenerate, copy, apply or cancel; format and length are saved locally, not the generated value. Outside a draft row or generator, Cmd/Ctrl+Z undoes and Shift+Cmd/Ctrl+Z or Ctrl+Y redoes; insertion, deletion and generation are separate undo steps. Only the changed text is rewritten, and a value is quoted when it needs to be. The Source / Table button in the lower-right corner switches views, and every .env file in the project follows that choice. The table is off for files over 512 KiB. Values are masked each time the table opens; Show values in the toolbar reveals them, and a value you are editing always shows its text.
  • Hold ⌘ (or Ctrl) and scroll over the editor, or press ⌘= / ⌘- (Ctrl+= / Ctrl+-), to set the font size between 11 and 24; ⌘0 (Ctrl+0) returns to 14.
  • The interface uses the open-source Inter typeface; the editor, terminals and diffs use JetBrains Mono. Both are bundled with pude, so they look the same offline and on every platform. Interface text in Chinese, Cyrillic, Greek or Vietnamese falls back to the system font; code keeps JetBrains Mono, which also covers Cyrillic, Greek and Vietnamese.
  • Markdown opens as source. The Source / Preview button in the lower-right corner of the editor switches to a rendered preview, and every Markdown file in the project follows that choice. Preview uses the available editor width with smaller side margins and clear body text in both themes.

Files pude opens

  • UTF-8 and UTF-8 with BOM. Invalid UTF-8 and other encodings are refused rather than silently converted.
  • Files over 5 MiB open in large-file mode: editing and search stay on, heavy parsing and preview turn off.
  • Text files are limited to 20 MiB. Supported images open in an image preview. A file reached through a symbolic link does not open; open its target instead.

Saving safely

Saves are queued per file and replace it atomically. On macOS and Linux, a file with several hard links, or one owned by another user, is rewritten in place instead so its links and owner stay. Every line keeps its original LF or CRLF ending. If a file changes on disk while you have unsaved edits, pude offers Compare, Reload from disk, Save As… or Keep editor version — it never overwrites either side silently.

Unsaved work is checkpointed locally for recovery. Recovery restores the last completed checkpoint, not every keystroke. While you type, checkpoints land within about 1 second for files under 1 MiB, 5 seconds for files from 1 to 5 MiB and 15 seconds for larger files. Switching away from the window or closing it writes a checkpoint right away.

git.md

Git

pude uses the Git installed on your system, so git must be on your PATH. Without Git, editing keeps working and the Git panel says it is unavailable.

Status and history

  • Select the Git icon in the activity bar for the branch plus staged, unstaged, untracked, renamed and conflicted files. The current branch sits at the top, and each changed file shows its name first with its folder in a dimmer color.
  • The commit graph handles detached HEAD, unborn branches and multiple refs. History loads 200 commits at a time, and older commits load automatically before you reach the end. The history refreshes after commits, push, pull, branch and stash operations, including ones run outside pude. Open the full history as an editor tab, filter it by branch, and select a commit to see its subject, author, age and changed files. Rest the pointer on a row for its full metadata.
  • When the repository has stashes, a STASH tab appears beside STATUS and HISTORY, before LOG. Expand a stash to see its changed files and open their diffs. Apply keeps the stash, Pop applies and removes it, and the trash button drops it; each asks first.
  • Open any change as a Side by side or Stacked diff. A changed PNG, JPEG, GIF, WebP or BMP image opens as the image before and after the change, side by side, with each one's pixel size and file size.

Actions

The action groups Changes, Sync, Branches and Stash are always shown in the Git view. Stage and unstage, discard changes, commit (the Commit button beside the commit message box commits only the staged files, or stages every change first when nothing is staged), push and pull, create, switch or safely delete branches, create a worktree, stash and pop. Risky actions ask for confirmation first. Nothing appears above the action buttons while a command runs, so they never move: a spinner shows on the button or dialog that started the action. When a command fails, the Git message opens in a dialog instead of a toast that disappears, and a failed push or pull offers Retry beside Close.

Notifications and the operation log

  • A finished operation shows a one-line summary in a notification: for pull, Already up to date. or the files changed with insertions and deletions, such as 5 files changed, +20 −3; for commit, [branch hash] subject; for push, the updated ref or Everything up to date; otherwise the first line of Git's output, shortened to 100 characters. When Git said more, for example the details of a push, the notification also has View full response and stays while you point at it or focus it.
  • The LOG tab beside STATUS, HISTORY and STASH lists the Git operations run from pude in this window for the current project, newest first, with success or failure, action, time, duration and summary. Select an entry to see the command that ran (such as git pull) and the complete response, exactly what Git printed (standard output then standard error) or the error message of a failed operation, in a scrollable block with a Copy button; it says (no output) when Git printed nothing. The full history tab does not have the LOG tab.
  • The log records stage all, unstage all, discard, commit, push, pull, stash, branch switch, create and delete, and worktree creation, whether they succeed or fail. It does not record staging or unstaging a single file, or reading status, history and diffs. It is kept in memory only: the latest 50 entries per project, each response limited to 64 KiB with a truncation marker, cleared when the window closes. Git's own messages stay in English.
terminal.md

Terminal

Toggle the panel with Ctrl+` on every platform (on macOS, ⌘` stays the system shortcut for switching windows) and add as many tabs as you need. Each tab loads xterm.js and starts its own PTY the first time it is shown.

  • Right-click a folder in Explorer and choose Open in Integrated Terminal to create a new tab in that directory. For a file, it starts in the file’s parent directory. Existing terminal tabs keep their current directories.
  • Tabs stay on one line, shortening long names (hover for the full path), and show the native shell executable and starting directory names, and Starting, Ready, Exited or Failed status. The browser labels the shell Demo. Double-click a tab to rename it for this session. Exited or failed sessions offer restart. Settings saves terminal font size locally (8–32 px, default 13).
  • Right-click for Copy, Paste, Select all or Clear terminal; Escape dismisses the menu. Copy/paste use Cmd+C/V on macOS and Ctrl+Shift+C/V elsewhere; Ctrl+C interrupts. Clipboard access may be unavailable or denied. Cmd+F on macOS or Ctrl+Shift+F elsewhere opens terminal search; Enter and Shift+Enter find next and previous, Escape closes it. The browser uses a demo terminal.
  • Every project has its own terminals. Hiding the panel or switching to another project keeps them running; closing a terminal tab, the project or the window stops that terminal's process tree.
  • Drag the top edge of the terminal panel to resize it, or focus the edge and press the Up/Down arrow keys. The height is saved and used for every project; the editor always keeps at least 120 px.
  • Windows starts PowerShell 7 (pwsh.exe) when it is on PATH, otherwise Windows PowerShell, like Windows Terminal. macOS and Linux start SHELL as a login shell, falling back to /bin/sh, so the terminal sees the same PATH as your usual terminal app.
  • Ctrl+C interrupts the running program, such as a dev server, and returns you to the same prompt, as in your operating system's terminal. If a shell ends, the tab shows its exit status and a Restart terminal button; pude does not start a new shell by itself.
  • A Python virtual environment in .venv, venv or env is not activated automatically, because a cloned repository could otherwise put its own executables first on PATH. The terminal prints Python environment found: <name> (not activated) and a hint. Run Terminal: Trust Python Environment from the command palette to activate it for the project's folder from then on (the terminal you are viewing restarts; other open terminals pick it up when they restart); Terminal: Stop Trusting Python Environment reverts it. The choice is remembered per folder on this machine and covers the project's main folder, not terminals opened in a subfolder or an added workspace folder.
  • Scrollback keeps 5,000 lines. ANSI colors, the alternate screen, mouse tracking, CJK text and IME input work as expected.
settings.md

Settings and local data

SettingWhat it does
LanguageSystem default (default), English or 繁體中文. System default picks Traditional Chinese when your system prefers it. Applies right away; Git, terminal and plugin messages keep their own language.
ThemeDark (default) or Light. The sun and moon button in the header switches it too.
Font sizeEditor text size from 11 to 24, applied when you leave the field. ⌘ + scroll and ⌘= / ⌘- change it too.
Tab sizeWidth used for tabs and indentation, from 1 to 8.
Indent with spacesIndents with spaces; turn it off to indent with tab characters. On by default.
Word wrapWraps long lines inside the editor. ⌥Z (Alt+Z) toggles it.
Line numbersShows the line number and fold gutter. On by default.
Show whitespaceMarks spaces, tabs and trailing whitespace. Off by default.
Close brackets and quotes automaticallyTypes the closing ), ], } or quote for you. On by default.
Trim trailing whitespace on saveRemoves spaces and tabs at line ends when you save the file shown in the editor. Off by default.
End files with a newline on saveAdds a final newline when you save the file shown in the editor. Off by default.
Hide dot filesHides names starting with . in the Explorer, but never a folder you opened. Off by default.
Group Git ignored filesGroups Git-ignored root items; also in the Explorer footer as Group ignored. On by default; remembered locally. Independent of project search’s include-ignored filter.
Watcher excluded pathsPaths the file watcher ignores, such as build output.
Check for updates on startupLooks for a newer release shortly after startup. On by default.

Open Settings from View › Settings or with ⌘, (Ctrl+,). Settings are grouped into Interface, Editor, Saving, Explorer and Updates. Restore defaults at the bottom asks for a second click, then resets everything except the language.

Where your data lives

  • Workspace files stay at their own paths. pude never copies them elsewhere.
  • Settings, recent folders and workspaces, and session metadata are kept in local WebView storage. .pdw workspace files are saved where you choose.
  • Recovery checkpoints use IndexedDB with a local fallback. Clearing app storage can remove them.
  • Installed plugins are copied into the app data directory.
  • Error diagnostics go to a small rolling log in the app's log directory, with common credentials redacted. Nothing is sent anywhere.
shortcuts.md

Keyboard shortcuts

ActionmacOSWindows
Save⌘SCtrl+S
Save as⌘⇧SCtrl+Shift+S
Save all⌘⌥SCtrl+Alt+S
Open file⌘OCtrl+O
Open folder⌘K ⌘OCtrl+K Ctrl+O
Close tab⌘WCtrl+W
Reopen closed tab⌘⇧TCtrl+Shift+T
Next / previous tab⌃⇥ / ⌃⇧⇥Ctrl+Tab / Ctrl+Shift+Tab
Find⌘FCtrl+F
Find next / previousEnter / ⇧EnterEnter / Shift+Enter
Search project text⌘⇧FCtrl+Shift+F
Go to file⌘PCtrl+P
Replace⌘⌥FCtrl+H
Go to line⌘GCtrl+G
Add next match / select all matches⌘D / ⌘⇧LCtrl+D / Ctrl+Shift+L
Toggle line comment⌘/Ctrl+/
Fold / unfold block⌘⌥[ / ⌘⌥]Ctrl+Shift+[ / Ctrl+Shift+]
Command palette⌘⇧PCtrl+Shift+P
Settings⌘,Ctrl+,
Toggle sidebar⌘BCtrl+B
Copy / paste file or folder (focused Explorer row)⌘C / ⌘VCtrl+C / Ctrl+V
Toggle word wrap⌥ZAlt+Z
Markdown source / preview⌘⇧VCtrl+Shift+V
Toggle terminal⌃`Ctrl+`
Font size⌘= / ⌘- / ⌘0, or ⌘ + scrollCtrl+= / Ctrl+- / Ctrl+0, or Ctrl + scroll
plugins.md

Building a plugin

A plugin is a local folder with a plugin.json manifest and a JavaScript entry. It runs in a Web Worker inside an opaque-origin sandbox and reaches pude only through the asynchronous pude API — no DOM, CodeMirror, Tauri or browser storage. You install a plugin from a local folder and review its permissions one by one; there is no marketplace yet.

1. Write the manifest

This is the runnable example from examples/plugins/document-case-toggle. Every contributed command needs a matching onCommand:<id> event; onLanguage:<id>, onFileOpen, onFileSave and onWorkspaceOpen are also available.

json{  "id": "pude.example.document-case-toggle",  "name": "Document Case Toggle",  "version": "1.0.0",  "apiVersion": "2",  "entry": "extension.js",  "permissions": ["editor.read", "editor.write", "commands.register", "ui.notification"],  "activationEvents": ["onCommand:pude.example.document-case-toggle.toggleCase"],  "contributes": {    "commands": [      { "command": "pude.example.document-case-toggle.toggleCase", "title": "Toggle Document Case" }    ]  }}

2. Write the entry

jsconst commandId = "pude.example.document-case-toggle.toggleCase";function toggleCase(text) {  return text === text.toUpperCase() ? text.toLowerCase() : text.toUpperCase();}void pude.commands.register(commandId, async () => {  const file = await pude.editor.getFileInfo();  const text = await pude.editor.getText();  if (text.length === 0) {    await pude.ui.notify("The active document is empty.");    return;  }  await pude.editor.applyEdits(file.revision, [    { from: 0, to: text.length, insert: toggleCase(text) },  ]);  await pude.ui.notify("Document case toggled.");});

3. Install and iterate

  • Open Plugins, choose Install local plugin and select the folder.
  • Review the requested permissions and approve only what the plugin needs. Cancel keeps the current version and grants.
  • Enable the plugin and run its command from the command palette.
  • After editing, use Update from folder. The new version replaces the old one only after you approve it.

API at a glance

PermissionCallsNotes
editor.readgetText, getTextRange, getSelection, getCursor, getFileInfoUp to 128 Ki code units per call
editor.writeapplyEdits(revision, edits)Up to 1,000 edits; normal undo and dirty state
workspace.readlist, readFile, getFileInfo, readFileRange128 KiB per read; ranges for larger files
workspace.writewriteFileConflict-checked; never deletes
commands.registercommands.registerDeclared commands only
ui.*ui.notify, ui.statusBar, ui.quickPickRendered by pude, bounded text
git.readgit.getStatus, git.getDiffRead only
terminal.writeterminal.writeOnly terminals the user opened
networknetwork.fetchHTTPS to approved domains
process.spawn:lsplsp.start, send, cancel, stopDeclared servers only

Each run allows 512 concurrent requests, 20 requests per second, a 30-second timeout, 64 KiB requests and 1 MiB responses. The full reference lives in docs/plugin-api-v2.md.

build.md

Build from source

  • Node.js 22.12+, 24+ or 26+ with npm 10.9+ (Node.js 24 recommended)
  • Rust stable through rustup, and Git on PATH
  • macOS: Xcode Command Line Tools · Windows: MSVC C++ build tools and WebView2 · Linux: the Tauri GTK/WebKit packages
bashgit clone https://github.com/MajajaX/pude.gitcd pudenpm ci

Commands

CommandPurpose
npm run tauri:devRun the native desktop app as pude Dev, apart from an installed pude
npm run devDesktop UI in a browser shell (port 5173)
npm run web:devThis website (port 5174)
npm testDesktop Vitest suite
npm run tauri:buildNative bundles for the current platform

Before a pull request

Include documentation with every feature or behavior change: update docs/product-spec.md, CHANGELOG.md, the README and both website languages where affected. Cover shortcuts, settings, limits, permissions and platform differences; review screenshots and SEO metadata. Explain unaffected surfaces in the PR and preserve historical benchmark versions and dates.

bashnpm run checknode scripts/run-rust-tests.mjs
pude — pure code editorBuilt with Tauri, SolidJS, CodeMirror 6 and Rust. MIT licensed.