Fresh
Fresh is a command-line tool designed to automatically refresh and reload applications during development by monitoring file system changes. It watches specified directories and files for modifications, then executes predefined commands or restarts processes when changes are detected, eliminating the need for manual intervention. The tool supports customizable file patterns, ignore rules, and delay settings to optimize the development workflow. Fresh is particularly valuable for web developers, scripters, and software engineers working with interpreted languages or build systems that require frequent recompilation. Its lightweight architecture and simple configuration make it ideal for integration into existing development environments, CI/CD pipelines, and automated testing workflows, significantly reducing development cycle time.
Latest Releases
All releasesFor live updates on Fresh, [follow me on X](https://x.com/TheNoamLewis).
> Most config options below can be changed in the Settings UI - run Open Settings from the command palette (
Ctrl+P).Features
- Theme chrome and file icons - themes can go borderless, style the gutter and explorer, and pick tab and status bar separator glyphs (including Powerline-style sections and caps). With Nerd Font icons on, the explorer and tabs show file-type icons, which themes can override. Two new built-in themes,
flatandquiet, show it off (#3735) - Theme editor previews live - edits show in the real editor as you make them, and every theme option, glyph and icon can be edited (#3735)
- Markdown previews of diagrams and math - in compose mode, Mermaid and LaTeX/math blocks are drawn by external tools (e.g.
termaid,utftex) when installed; any code block language can be mapped to a command (#3751 by @PilotLeoYan) - Recent Files - File > Recent Files... (or the command palette) reopens a file you closed in this window; the list survives a restart (#3755)
- Explorer dims gitignored entries when they are shown (#3283, #3290 by @CnsMaple)
- Workboard - a new Orchestrator board with every workspace and agent, grouped by what needs you, by project, by folder or as a kanban; a status bar beacon jumps to the next waiting agent (#3736)
- New Welcome screen - one short page with the latest release's changes, the essential keys and a Nerd Font switch (#3738)
- LSP completions use the server's replace range (
textEdit) (#3734 by @andsuli) - Clickable search arrows in the status bar step to the next/previous match (#3665 by @haigithub)
- Ctrl+P file mode: Tab completes the longest common prefix of the matching paths (#3293, requested by @asukaminato0721; #3581 by @peyton-durand)
- Plugins can declare map settings, edited in the Settings UI as a list of entries (#3751)
Bug Fixes
- Windows keeps key modifiers - Ctrl+Tab, Ctrl+I and Ctrl+Shift+letter are no longer read as plain keys in Windows Terminal and WezTerm (#3521, reported by @BrettKinny; #3602 by @neatsorg)
- Ctrl/Alt+Shift+Tab are recognized, and passed through to terminal panes (#3601 by @neatsorg)
fresh FILEremembers the cursor position after quitting with the file open (#3748, reported by @shemgp)- LSP diagnostics refresh - servers like rust-analyzer and Roslyn now push updated diagnostics without an edit (#3681, #3682 by @StonesFromTheSky)
- Live diff and git gutter ignore line-ending style - CRLF vs LF no longer marks whole files as changed on Windows (#3747 by @ezleyton)
- Remote paths across platforms - a Windows client on a Linux host (or the reverse) no longer mangles path separators; Unix file names containing
\open correctly (#3758, #3762, #3581) - macOS honors
XDGCONFIGHOMEandXDGDATAHOME; existing installs keep their current directories until the new ones exist (#3496, #3497 by @LuisAlejandro) - Terminals restore in the directory the shell
cd'd to, and an exited terminal keeps its tab name across a restart (#3740, #3074) - Inlay hints keep their own colour next to a highlighted bracket or search match (#3622 by @mommysgoodpuppy)
- Word navigation in prompts handles non-ASCII letters - Ctrl+Left/Right/Backspace no longer split words like "café" (#3721 by @56steve)
- Glob
?matches one whole character, including accented and emoji file names (#3620 by @56steve) - Smart Home on a wrapped line no longer lands inside a multi-byte indent character (#3619 by @neatsorg)
- Orchestrator: a project whose folder was moved says so and offers to repoint it, instead of opening in the home folder (#3746)
- Holding Down on the Welcome page no longer scrolls into blank space (#3739)
- Settings: Status Bar Left/Right editor is easier to read (#3756)
- Flatpak uses a supported runtime, silencing the end-of-life warning (#3752 by @Daniel-at-github)
Internals
- Debian packaging updates following mentors review, and flaky test fixes (#3728, #3729, #3730, #3737, #3744, #3745, #3750, #3678 by @neatsorg)
For live updates on Fresh, [follow me on X](https://x.com/TheNoamLewis).
> Most config options below can be changed in the Settings UI - run Open Settings from the command palette (
Ctrl+P).Features
- Auto-hide the tab bar - Auto Hide Tab Bar (Settings > Editor > Display) hides it while a single file is open (#3696, requested by @garfunkel)
- Explorer folder colour can be themed separately from syntax keywords (#3697, requested by @mommysgoodpuppy)
- Option+Backspace / Option+Delete delete words on macOS (#3643, requested by @gaojunran)
- Go to Next / Previous Paragraph are in the command palette and Go menu (#2122)
- Explorer sticky-parent band is shaded so pinned rows read as a distinct strip (#3625, by @PavelLoparev)
Bug Fixes
- Search/Replace panel is per window - Alt+A in a second window opens its own panel (#3704, reported by @alt-freem)
- Replace All no longer rewrites a file twice under a symlinked root or tracked symlink (#3720)
- Find Next ignores matches an edit removed instead of walking stale results (#3464, #3444, reported by @mandolyte)
- Markdown - Tab honours the configured tab size (#3713, reported by @hbarel) and indents a selection or multiple cursors (#3666, reported by @dnikic)
- Python
match/caseand more C++ keywords are highlighted;.cfiles use the C grammar (#3509, #3644, #3716, reported by @asukaminato0721) - Bash highlighting survives
f() ( ... )subshell functions (#3473, #3201, reported by @asukaminato0721) - C# typing lag from slow highlighting of interpolated strings is gone (#3667, #3699, reported by @SONickode)
- LSP servers that declare full text sync receive the whole document, so their diagnostics stay (#3436, reported by @dsvarela)
- Terminal Shell set from
init.tsapplies to new terminals (#3712, reported by @brunnerh) - Merge conflict resolution no longer leaves an extra blank line per conflict (#3702, #3714, reported by @atk)
fresh --difffixes - stray tab, click past line end, modified markers (#3688, #3689, #3691, #3694, reported by @Korkman)- Keys work on macOS when stdin is
/dev/ttyinstead of hanging and spinning a core (#3683, #3693, reported by @StonesFromTheSky) - Open File: Enter on a partial dotfile name opens the highlighted directory (#3680, by @StonesFromTheSky)
- Scrolling Markdown is smoother and idle CPU no longer spins during debounce (#3701)
Internals
- Reduced flaky tests.
For live updates on Fresh, [follow me on X](https://x.com/TheNoamLewis).
> Most config options below can be changed in the Settings UI - run Open Settings from the command palette (
Ctrl+P).Features
- Compare Files -
fresh --diff A Bshows any two files side by side, both editable (#3611, requested by @cherio) - Universal Search across all workspaces - toggle All workspaces (
Alt+A) to search every local workspace's files, unsaved buffers and terminals; Enter jumps there (#3654) fresh --update- alias forfresh --cmd update, which now asks before installing instead of looking like a finished update (#3064, #3614, reported by @davidwooff)Shift+Homeselects to the first non-blank character first, then column 0, likeHome- newselectsmarthomeaction (#3585, #3669, requested by @notnout)- Nix installation noted on the homepage (#3635, by @dwt)
Bug Fixes
- Idle CPU, memory and log growth from
git_statusbaron Linux - file reads no longer count as changes, which re-rangitseveral times a second (#3607, #3659, reported by @naoto-anzai) - Search & Replace honours Case Sensitive and Whole Word (#3575, #3640, reported by @Korkman)
- Unsaved work is kept in one place whatever the launch mode - one buffer per file, saves refuse to overwrite a file another Fresh has open, sudo saves are crash-safe, and switching workspaces keeps your tab in front (#3633, #3639, #3660)
- Hot exit entries are replaced atomically by a save (#3626, #3627)
- Undo restores the exact bytes of a deleted non-UTF-8 byte instead of writing U+FFFD on save (#3652, #3655)
- Sudo-saving a new file no longer creates it with mode 000 (#3641, #3653, reported by @ViolinKaine)
- Files over SSH are writable when the remote user owns them, even if local and remote UIDs differ (#2944, #3669, reported by @mommysgoodpuppy)
- Ctrl+V in a terminal pane reaches the program when the clipboard has no text, so agent CLIs can paste images; turn off with
terminal.passctrlvwithouttext(#3129, #3658, reported by @andreivinca) - Typing in long wrapped lines is one frame per key and no longer stutters (#3631, #3632, reported by @jmote)
- Home, End, Up and Down after fast typing land in the right place (#3642, #3656)
- Replace-all on huge files uses far less memory (#3642, #3657)
- Orchestrator picker returns the keyboard to the dock only if it had it, so arrow keys no longer reach a terminal shell (#3136, #3661)
- Terminal fixes
- Exported Bash functions survive environment capture (#3586, #3640, reported by @warrenfalk)
- A workspace file that exists but can't be opened keeps its place in the layout (#3532, #3640)
- Ctrl+P list fits on short terminals instead of covering the input line (#3578, #3669)
- View menu Line Numbers / Line Wrap show the real setting on terminal and Welcome tabs and are greyed out there (#3550, #3669, reported by @sjsepan3)
- Status bar shows "Bash" instead of "Bourne Again Shell (bash)" (#2727, #3669, reported by @720720)
- Palette hint bar colors follow the selected-row foreground, so themes are easier to style (#3616, #3653, reported by @Korkman)
- Search & replace polish - Unicode word highlights, replace within a multi-line selection, cheaper recovery for large replace-alls, accurate Live Grep over terminals (#3645, #3648)
- Markdown Source/Compose scroll sync no longer drifts or stalls (#3609)
- Plugin panels recolor when rewritten to text of the same length (#3646, #3647)
- Macros with plugin-bound keys replay once and in order, without timer ticks (#3595, #3597)
fresh --diffopens without an empty-editor flash and scrolls smoothly (#3630)- Docs - tabs vs spaces,
autorevertpollintervalms, and the rendering architecture are corrected (#3114, #3272, #3599, #3669, #3653; #3114 reported by @sgon00)
Internals
- Plugin API -
runOnTarget/ a machine'srunreplaces the deprecatedspawnProcess; plugin calls can target another workspace; plugin commands from a hook apply as one batch (#3637, #3654) - Debian packaging, CI sharding and advisory fixes, dependency bumps, flaky-test fixes (#3593, #3596, #3604, #3605, #3606, #3629, #3650, #3651)
Ctrl+P).
Features
- Simple launch by default - based on your feedback, some defaults are dialed back so launching is simple. Nothing was removed (#3555, #3556, #3568, reported by @zipproth)
fresh FILE opens just that file, with no restored session, dock or Welcome tab (even if you left the dock open). This makes Fresh a better $EDITOR / git core.editor; fresh --simple does the same without a file
* With Auto Attach on, a bare fresh is fresh -a (no name): the one shared background editor (a fresh -a that names a remote host, or finds a per-directory daemon already running in its directory, still goes to that one). Typed in a Fresh terminal, with Auto Attach on or off, either one now leaves that editor as it is and says you are already in it, instead of starting a second editor inside the terminal; fresh --simple, fresh -a NAME and piped input are refused there with an error. The message says how to start a separate editor anyway (FRESH_SESSION= fresh --simple)
* Orchestrator mode is now Auto Attach (autoattach): what the setting does is attach a bare fresh to the shared background editor, so it is named for that. orchestratormode in an existing config is still read, and moves to the new name the next time a setting is saved
* The Orchestrator dock starts closed, for a bare fresh too and for existing users whose dock was open at their last quit; open it from View ▸ Orchestrator Dock and it stays open from then on
* A bare fresh opens the directory you typed it in, also when it reattaches to a running daemon, instead of the workspace you used last. The new Open Last Workspace setting (openlastworkspace, off by default) brings back the old behaviour, with Auto Attach on or off
* An empty workspace behaves the same for a bare fresh as in any launch: a [No Name] buffer on a first run, and closing the last tab follows autocreateemptybufferonlastbufferclose and fileexplorer.autoopenonlastbuffer_close instead of always leaving a blank pane
* fresh DIR still restores that directory's previous workspace (open files, layout) and shows the Welcome tab; fresh --restore FILE does the same for a file launch
* fresh DIR opens the file explorer unless you closed it in that directory yourself; fresh --simple (with or without a directory) starts with it closed
* Startup is faster with many workspaces, which now load on first use
- Markdown Source / Rendered / Source+Compose modes - new commands switch a Markdown pane between the raw text and the composed view, and a dual mode shows both side by side in one scroll-synced tab (edit on the source side; closing the tab leaves your file and panes as they were). "Cycle View Mode" steps through all three (#3562, by @PilotLeoYan)
- Debian testing/unstable package - each release also attaches a
.debian-testing.debbuilt from Debian's own packaged crates (#3519) - New config option: close a shell's tab when the shell exits - with it on,
exitor Ctrl+D in an integrated terminal closes its tab (and the pane, if it was the only tab). Off by default; enable it in the Settings UI (#3537, by @cychitivav) - Middle-click closes a tab (#3284, #3286, by @CnsMaple)
- Clickable "Palette: Ctrl+P" status hint opens the command palette (#3250, #3576, requested by @Korkman, by @peyton-durand)
- Duplicate Line Above command, and duplicated lines keep carets and selections on the copy (#3244, by @kimprap)
- Terminal programs can set your clipboard - OSC 52 writes from the integrated terminal reach the host clipboard (#3572, #3573, by @mycloa)
- Unsaved changes carry over between the background daemon and a direct launch - an edit left unsaved in a bare
freshnow comes back infresh FILEor with Auto Attach off, and the other way round; each mode used to keep its own recovery store - A detached daemon no longer shuts itself down - it used to exit after an hour with no terminal attached, taking running agents with it; it now runs until you quit it
- Markdown compose layout with emoji and CJK text - code-block frames keep their edges and wrapped table cells no longer start with a stray space or break early (#3562)
- Clear error in mintty / Git Bash - Fresh now explains it needs a real console instead of failing with
os error 6(#3547, #3549, reported by @netoffice-zz) - git no longer hangs on a detached daemon -
--waitagainst a daemon with nothing attached no longer waits on an invisible editor (#3555) - Plugin bundling uses a private temp directory, closing a local-user file-overwrite risk (#3557)
fresh -aworks in deeply nested directories - the daemon no longer dies at startup when the directory path is too long for a Unix socket name; such directories get a shortened, hashed socket name, and every other directory keeps the name it had- macOS file-descriptor leak - the daemon no longer runs out of fds after files change in the project root (#3523, #3584, reported by @IconRunner05)
- Windows fixes
D:\...) are found again (#3281, #3289, by @CnsMaple)
* Copy Path no longer pastes \\?\ prefixed paths (#3296, #3297, by @CnsMaple)
* removing an Orchestrator worktree no longer fails with "Permission denied" (#3545)
- Stale syntax colors after commenting a block of lines (#3551, by @kimprap)
- Closing a discarded or saved last tab now closes its empty split (#3552, by @kimprap)
- Rename works with servers lacking prepareRename, such as pylsp (#3540, by @cychitivav)
- Regex replace keeps non-ASCII text in the replacement intact (#3571, by @neatsorg)
- Unnamed buffers honor editor settings such as auto-close and occurrence highlight after restore (#3570, by @neatsorg)
- A half-open client connection can't stall the daemon (#3542)
- Hidden/ignored files are treated consistently across Quick Open, the explorer and project search (#3368, #3580, by @lixin-wei)
- Bundled grammars load before bundle plugins (#3544)
- Docs clarify
textmate_grammaronly supports.sublime-syntax(#3115, #3583, reported by @sgon00, by @peyton-durand)
- Plugin buffer groups can show a file the user has open as an editable panel, with a new
buffergroupclosedhook (#3560, #3562) - Virtual text always invalidates the wrap cache (#3311, #3485, by @anodicpassion); CI artifact usage reduced (#3577)
For live updates on Fresh, [follow me on X](https://x.com/TheNoamLewis).
> Most config options below can be changed in the Settings UI - run Open Settings from the command palette (
Ctrl+P).Features
- Find Next selects the whole match - F3 / Shift+F3 select the entire match, and the current match is highlighted in its own color
- Theme text attributes - any theme color accepts bold, italic or underline, e.g. to draw diagnostics as underlines (#3494, requested by @zeevro)
- Theme color fallbacks - colors a theme omits are derived from its other colors. Complete user themes may look slightly different after upgrading; see [Themes → Fallbacks](https://getfresh.dev/docs/features/themes#fallbacks)
- Full internationalization of the Settings UI - setting names, descriptions and categories are translated in all locales (#3479 by @neatsorg)
- Import coding agent and terminal sessions in Orchestrator
- File Explorer (#3427, requested by @akarinotomoshibi)
- Weather location and units can be set for the dashboard plugin (#3344 by @KyleKorndoerfer)
- Kotlin uses JetBrains' official
kotlin-lspby default; setlsp.kotlin.commandto keepkotlin-language-server(#3481 by @karczews) - Plugin docs - the [API reference](https://getfresh.dev/docs/plugins/api/) is generated from the source, and there is a new "Asking for Input" guide
Bug Fixes
AutoOpenDockhonored, withauto/always/nevervalues - opening or closing the dock is remembered across restarts, and the old on/off value is migrated (#3442, #3516, reported by @sjsepan3)- Bare
freshon a Linux console and with several terminals attached (#3517, reported by @MAT-services)
- Line Numbers, Line Wrap and Current Line Highlight apply to all open documents, and the View menu reflects the current state (#3449, reported by @sjsepan3)
- File Explorer (#3427, reported by @akarinotomoshibi)
dir1/dir2/dir3 row is selectable- Project Search/Replace -
$1capture groups are expanded in regex mode, hidden files are searched in current-file scope, and Replace All asks for confirmation in a dialog - Selection keys - Up/Down work when a selection touches the first or last line (#3486, reported by @Korkman); repeated Ctrl+L extends the selection by a line (#3495, reported by @sjsepan3)
- Plugin timers and crash-recovery saves run in the background session (#3440, reported by @neatsorg)
- Restored unnamed buffers use the configured editor settings, e.g. current line highlight (#3426, reported by @neatsorg)
- LSP diagnostics are shown on the only line of an empty file (#3484, reported by @akarinotomoshibi)
- Mouse release no longer printed at the shell prompt after quitting with a click (#3474, reported by @odjbo)
- Update check on Android/Termux no longer panics (#3453, reported by @dsvarela)
- Unsaved buffers are kept when switching projects - they are restored in the project they belong to and no longer multiply across workspace switches and restarts (#3475, #3476, reported by @Korkman; #3530 by @neatsorg)
- Scroll position is kept when a modifier key is pressed alone (#3324, reported by @akarinotomoshibi; #3373 by @56steve)
- Quit is no longer delayed by a background request or a lost mouse release
- A second daemon can no longer take over a running session and leave it unreachable
- TypeScript 7 (
tsc --lsp) diagnostics work (#3061, reported by @defaultkavy; #3413 by @atk) - Window title is set in Orchestrator sessions (#3515 by @neatsorg)
- Dev container remote indicator is cleared once the container is attached (#3487 by @cychitivav)
- Occurrence highlight skips the indentation of a wrapped line (#3466, reported by @mandolyte)
- Review mode asks for confirmation before discarding a line selection
- Syntax highlighting
'suffix number literals are highlighted (#3455, reported by @codic12) - JavaScript/TypeScript: a < comparison no longer starts JSX highlighting (#3527)- Empty pane is dimmed behind Settings (#3452, reported by @akarinotomoshibi)
- List selection follows its item when the list is re-sorted or filtered, and Page Up/Down move by the visible rows
- Word wrap of long CJK text no longer drops the end of a line (#3438 by @neatsorg)
- Review Diff no longer draws the scrollbar of the hidden file behind it (#3434)
- Windows GUI build from cmd.exe and PowerShell - a new
fresh-gui-<target>.zipshipsfresh-gui.exewith afresh-gui.comconsole launcher, so typingfresh-guiruns the TUI without the shell competing for keyboard and mouse input (#2965, reported by @mokurin000)
Internals
- Plugin API breaking change -
setPromptSuggestionsthrows unless every suggestion has a uniqueid(new, required);showActionPopup/setLspMenuContributionsthrow on duplicate ids; widgetList/Treespecs whoseitemKeysdon't match their items one to one are refused - Flaky e2e test fixes and internal cleanups
Installation
npm install -g @fresh-editor/fresh-editor
brew install sinelaw/fresh/fresh-editor
cargo install fresh-editor