Repository navigation
Releases
Releases · Fast-Text-editor/Fast-text-editor
v0.9.0
Added
.ftframework library for TextWrite:import "ft"(alsoimport ".ft"/import "fast-text/ft") loads a built-in Fast Text framework module with helpers for commands, keybindings, hooks, editor actions, text transforms, and extension templates.fast-text-ftcrate: new framework crate for.ftextension packages, including manifest parsing (ft.toml), package discovery, main-script resolution, and extension scaffolding..ftextension package support: the TUI plugin manager discovers and loads.ftextension package directories alongside.rhaiand.twscripts;.ftscript files are supported as TextWrite-compatible scripts.- 12 new first-party TextWrite plugins:
line_tools,surround,uuid_tools,line_endings,html_tools,case_tools,markdown_links,sort_tools,whitespace_tools,frontmatter,unicode_tools, andtext_wrap.
Changed
- TUI keyboard handling: enables terminal keyboard enhancement flags when supported, restores terminal state on panic, and coalesces pending input events to reduce lag.
- Command palette fallback:
Ctrl+Shift+Palso opens the command palette alongsideCtrl+Shift+C.
v0.8.0
Added
- Git integration (TUI): the status bar shows the current Git branch, the
gutter shows diff markers for added/modified/deleted lines, and the command
palette includes basic Git commands (Git: Refresh,Git: Status,
Git: Diff file). - Focus mode:
Toggle focus modehides distracting panels (sidebar, tabs,
console) for a cleaner writing/editing view. - Spell check:
Toggle spell checkunderlines misspelled words in prose
files (Plain/Markdown) using a built-in common-word dictionary.
v0.7.2
Changed
- Command palette keybinding: the default command palette shortcut is now
Ctrl+Shift+C(wasCtrl+Shift+P), withCtrl+Pkept for the fuzzy file
finder.
Fixed
- Buffer/pane display mismatch: opening a file, creating a new buffer, or
switching tabs now updates the focused pane so the displayed content matches
the selected file/tab instead of showing stale content from the previous
buffer.
v0.7.1
Fixed
- Command palette keybinding: Ctrl+Shift+P now reliably opens the command
palette in the TUI, including terminals that report uppercaseP, while
Ctrl+P continues to open the file finder. - Paste/clipboard in TUI: added bracketed paste handling and system
clipboard integration (arboard) so copy/cut/paste work with external text,
not just the editor's internal register.
v0.7.0
Added
- Rusk syntax highlighting:
.rkfiles are now recognized as Rusk and get
built-in highlighting for Rusk keywords, types, constants,#comments, and
string escapes through the sharedfast-text-syntaxhighlighter. - Gojo built-in theme: a new dark
gojotheme inspired by Gojo Satoru,
available across the TUI, GUI, and shared theme schema.
v0.6.0
Added
- Six new first-party TextWrite plugins, bringing the catalog to 32:
lorem(placeholder text),slugify(URL slugs and filename-safe text),
escape(JSON/string escape, unescape and quoting),extract(emails,
URLs, numbers and unique lines),number-base(decimal/hex/binary
conversion and increment/decrement), andchecklist(toggle checkboxes,
bullets, and indent/outdent lines). - Updater progress bar: update checks/downloads now report staged progress,
and the TUI and GUI update dialogs render a visual progress bar while an
update is being downloaded, unpacked, and installed. - Configurable console shell per OS:
config.tomlgains a[console]
section (windows,linux,macos) to choose which shell the terminal
panel (Alt+C) launches. Windows can select the default shell, Command
Prompt (cmd), Windows PowerShell, or PowerShell 7 (pwsh); macOS and
Linux can select the default$SHELLor common shells. Command palette
actions let you pick the console shell for the current platform and persist
the choice to the config file. - Config access from the command palette: the config file can be opened
directly from the command palette (Open config file), and the config
template documents console shell and keybinding options.
Changed
- The welcome buffer uses shorter lines and the help overlay wraps/adapts
better so key hints remain readable in narrow terminals.
v0.5.1
Added
- A real terminal emulator behind
Alt+C: the console now attaches a
persistent shell through a pseudo-terminal (portable-pty) and renders its
ANSI output with a smallvte-driven character grid. Colours, cursor keys,
readline, and full-screen programs such asvimandhtopwork; the panel
follows window resizes. A scrollbar on the panel's right edge shows where you
are in 2000 lines of history;Ctrl+Up/Down(orCtrl+PageUp/PageDown), the
mouse wheel, and clicking the scrollbar all browse it. The old line editor
remains as a fallback when no PTY is available, and no process is spawned in
tests. - One SVG logo (
assets/fast-text-logo.svg) used by both the README and
the native GUI window icon. The GUI rasterizes the SVG at startup with
resvg, so there is no second, drifting copy of the artwork. ft --gui/fast-text --guilaunches the native desktop frontend from
the TUI CLI, forwarding file arguments tofast-text-gui.
Fixed
- Persistent undo now records and compares canonical paths. A document
opened through a symlink or macOS's/varalias restores its history
reliably on macOS and Windows; the restored document also keeps its path. - The welcome buffer uses short lines so it stays readable in narrow terminals.
- CI retries Ubuntu
aptsetup three times to absorb transient mirror drops.
v0.5.0
Added
- One shared theme schema (
fast-text-theme): ten built-in TOML palettes —
dark,light,one-dark,monokai,dracula,nord,gruvbox,
tokyo-night,solarized-dark,solarized-light— read by the TUI, GUI and
WASM frontends. Colors accept#RRGGBB,0xRRGGBBand#RGB; missing keys
fall back todark, unknown keys warn instead of failing. User themes in
~/.config/fast-text/themes/*.tomlextend the list, and the web build exposes
themeCss()/themeColors(). - One shared keymap (
fast-text-plugin::keymap): the terminal, desktop and
web frontends resolve keys through the sameEditorCommandtable, withCmd
/Supertranslated toCtrlon macOS.Ctrl+Popens a fuzzy file finder,
Ctrl+Shift+Pthe command palette,F3/Shift+F3find next / previous,
andAlt+Tcycles themes. - Persistent undo:
fast-text-coreserialises up to 200 transactions per
absolute path into the cache directory (FNV-1a keyed) and writes them
atomically, so undo survives a restart.Documentalso gainedsnapshot,
restore,mark_dirty,replace_rangeand multi-cursor support. - Nested split panes:
ft -O file1 file2(or--split) opens files as
panes instead of tabs.PaneLayoutis a binary tree over editor indices;
the palette offers Split pane right/down, Focus next/previous and Close
pane, withCtrl+ arrows moving focus when more than one pane exists. - Script hooks and a richer bridge:
on_buffer_open()and
on_buffer_save()run for all loaded scripts, with recursion guards.
EditorAction::SetStatus,set_status()andclear_status()let a script
own the right-hand status line; transient messages still take precedence.
The palette can restore the default status line. - Plugin registry: an embedded index of 26 entries, user overrides in
~/.config/fast-text/registry.json, andft plugin list|search|install|remove|help
plus theft install NAME... [--force]shorthand. Bundled plugins install
offline; only non-bundled entries fetch their source. - Vim layer (TUI):
Alt+Vor[editor] vim = truetoggles Normal, Insert,
Visual and Visual-line modes with motions,d/y/coperators,v/V
selections and a status-line mode label. A bare:in Normal mode, or
Alt+:from anywhere, opens a:command bar with:w,:q,:q!,:wq,
:e,:theme,:set,:helpand:ls. - True mouse editing (TUI): click to place the caret, drag or
Shift-click
to select, and scroll with the wheel; free scrolling is independent of the
caret. - Inline floating diagnostics: when enabled (default), LSP messages appear
on a row under each affected line as↳ severity: message.:set diagnostics
/:set nodiagnosticstoggles them at runtime. - LSP install consent: missing-server hints for Rust, JavaScript,
TypeScript, Python, Shell, Go and Ruby appear in a dialog with the exact
package-manager command and documentation link. Nothing is spawned until the
user accepts; declines and failures are remembered, and Retry language
server re-probesPATH. - Eight new first-party TextWrite scripts, bringing the catalog to 26:
Smart brackets (brackets.tw), Markdown preview
(markdown_preview.tw), Status formats (status_line.tw), Linked TOC
(toc.tw), Brace formatter (brace_format.tw), SQL casing
(sql_case.tw), Markdown tables (markdown_tables.tw) and Log
summary (log_summary.tw). Each ships with behavior tests and a registry
entry. docs/scripting.md: a dedicated guide to theScriptHostbridge —
context globals, queued actions,selected_textand selection replacement,
every host function, commands/keys/hooks, themes, the status line, error
channels, imports, automations and language gotchas.- Showcase GIFs in
assets/generated locally, plus a reworked README with
a workspace tree, current key table, config sample, registry CLI examples and
frontend design notes.
Changed
- The catalog is written entirely in TextWrite and all 26 plugins load together
in one interpreter; each has a unique prefix to avoid top-level name clashes.
The plugin-catalog README lists every script. - Workspace dependencies declare
fast-text-pluginwithout Rhai by default;
the TUI, GUI andfast-text-textwritecrates opt into therhaifeature so
the WASM build no longer pulls in Rhai. - CI continues to enforce
cargo fmt --checkand strict clippy, and runs an
explicit crate test list that excludesfast-text-wasm; tests never touch the
network or spawn processes. Release archives are version-less
fast-text-<target>.tar.gz(.zipon Windows) for five standard triples.
Fixed
Ctrl+ arrows no longer override word motion in a single-pane layout; they
only move pane focus when a split is present.- The help overlay and welcome buffer now distinguish
Ctrl+P(fuzzy file
finder) fromCtrl+Shift+P(command palette), and document the:command
bar and Vim toggle. - Closing a pane collapses its split and restores a single buffer cleanly;
removing a leaf from a layout shifts later editor indices.
v0.4.0
Added
- Terminal panel (TUI):
Alt+Cnow opens a real working terminal prompt.
It keeps a working directory with a Kali-style two-line prompt,
┌──(user㉿host)-[~/dir]/└─$, socdpersists: every command starts in
the directory the previous one ended in, and the prompt follows along.↑/↓
walk the command history,Ctrl+Wdeletes a word,Ctrl+Uclears the line,
Ctrl+Lclears the scrollback, and the terminal cursor sits at the end of the
input. Each command still runs withsh -c(variables and aliases do not
persist); output stays text-only and is capped at 1000 lines. If the tracked
directory disappears, the panel falls back to$HOMEand says so. - Six new catalog plugins, written in TextWrite, bringing the catalog to
eighteen: Box drawing (boxes.tw, single/rounded/double/heavy frames),
Align (align.tw, line up on=,:,=>or|), Ciphers
(cipher.tw, ROT13 and Atbash), TODO report (todo_report.tw, grouped
markers with line numbers), Wrap (wrap.tw, reflow to 72/80 columns or
unwrap paragraphs) and Path tools (path_tools.tw, separators, base
names, directories, quoting). - Console tests for prompt shortening, the shell's cwd sentinel, history
navigation, theCtrl+W/Ctrl+U/Ctrl+Lshortcuts and prompt rendering,
plus behavior tests for every new catalog plugin (ROT13 output, box padding,
alignment, wrapping, TODO line numbers and path handling). - Termux/Android support in
install.sh: it detects Termux and builds from
source instead of downloading a glibc Linux archive, which installs but
cannot execute on Android's bionic libc. The installer also falls back to
~/.cachewhen/tmpdoes not exist, as on Android. CI covers both paths.
Changed
- The
Alt+Cpanel is now titled Terminal (help text, README and welcome
buffer updated); its scrollback is rendered without soft wrapping so the
prompt always stays on the last two rows.
v0.3.0
Added
- Top bar (TUI): a nano-style bar across the top of the window showing
fast-text v<version>in the accent colour, so the running build is always
visible. - Console panel (TUI):
Alt+Ctoggles a VS Code-style console at the
bottom of the window. Type any command and pressEnterto run it with
sh -c; stdout, stderr and a non-zero exit code are captured under the
prompt and up to 1000 lines are kept.EscorAlt+Ccloses it; the panel
takes keys from the editor only while it is open, and every modal (update
dialog, help, plugin manager, picker, prompt) still outranks it.
(The oldAlt+Ctoggle comment binding moved — commenting stays on
Ctrl+/.) - New file / new folder in the explorer (TUI): with the folder explorer
open,nstarts an inline prompt for a new file andNfor a new
folder next to the highlighted row. Names must be a single path component
(no/, no./..), existing names are rejected with an error, and a file
created this way opens immediately.Esccancels. - Six new catalog plugins, written in TextWrite and bundled with the
editor alongside the first six — the plugin manager's Available tab now
lists twelve: Comments (comments.tw), CSV tools (csv_tools.tw),
Markdown extras (markdown_extras.tw), Date converter
(date_time.tw), Identifier cases (identifier_case.tw) and Word
frequency (word_frequency.tw). - Installer CI coverage for the fixes below: git-less/cargo-less dry runs for
both installers, pinned-version records, GUI retention on pinned updates and
uninstall cleanup.
Fixed
install.sh:Ctrl-Cduring an install cleaned up the temp directory but
did not stop the script — the traps now exit (130/143) and leave the
cleanup toEXIT.install.sh:--dry-rundemandedgit,cargoand a real checkout before
reaching its own dry-run guard, so it died on exactly the machines it is for;
it now prints the whole plan instead.install.sh: a pinned--version vX.Y.Zinstall whose binary probe failed
recorded the newest release, so a later--check/--updatewrongly said
"up to date"; it now records the version it installed.install.sh:--uninstallleft behind aninstalled-versionfile that
older manifests never listed, plus the emptiedshare/fast-textdirectory.install.ps1:-DryRunfrom a non-checkout actually cloned the repo
(and requiredgit/cargo); the clone, the tool checks and the checkout
checks are now skipped under-DryRun.install.ps1:-Update -Version vX.Y.Zsilently dropped a previously
installed GUI app thatinstall.shkept — it now consults the manifest like
the shell installer does.install.ps1:-Versioncould never be seen byWrite-VersionFile— the
local$version = $nullwiped the script's$Versionparameter (PowerShell
names are case-insensitive), so pinned installs recorded the wrong version.