# Limitations of this build

All 372 catalog commands are implemented. This file lists what has been checked and the known gaps.

## Verified, and how

- 280+ automated tests cover the document model, search dialects, encodings, safe saving, text
  operations, macros, scripts, tools, templates, and the FTP/FTPS, SFTP, SSH and Telnet clients
  (against in-process loopback servers).
- These were also exercised in the running app on a virtual display: editing, find, word wrap,
  folding, column mode, split views, compare with merge, the 5 GiB sparse-file case, crash
  recovery, opening and saving a file over loopback FTP, the `-r -- FILE --lc2:3` startup case,
  Quick Open, Help, Settings, the Keyboard Shortcuts dialog and the Markdown preview.
- Everything else has been compiled and unit-tested where it has pure logic, but not clicked
  through. Treat dialogs not named above as untested.

## Not verified

- **F1** did not reach the app under the virtual-display test harness, although the keymap test
  shows F1 resolves to Help and other function keys worked. Check it on a real desktop.
- **Alt+drag** rectangular selection could not be driven by the harness; column mode (Alt+C)
  with a plain drag was verified.
- **Printing to a real printer**, the native file dialogs, SFTP and SSH against a real server,
  the secret-service password store, and drag-and-drop of files were not exercised.

## Known gaps in implemented features

- **Multiple windows.** New Window starts a second process; Duplicate Window opens a second view
  beside the first one in the same window. One window cannot hold two top-level windows.
- **Large files.** The disk-backed viewer is read-only and shows bytes, not text lines. A file
  over the threshold can instead be loaded into memory for normal editing (up to 2 GiB).
- **Hex view.** A text document's hex edits are decoded back into its text when you leave the
  hex view or save.
- **Search** runs over a copy of the whole document, which is slow on very large files.
- **Lines longer than 20,000 characters** are drawn cut short (the text is kept whole).
- **Vertical caret movement over folds and wrapped rows** uses the pixel column of the row it
  leaves, so the remembered column can drift across short rows.
- **Fold regions** come from brackets or indentation, not from a parser.
- **Syntax highlighting** covers 29 languages, chosen from the file's extension, with keyword
  lists rather than a parser. PowerShell here-strings (`@" ... "@`) and batch labels are not
  recognised specially.
- **Function List and Find Symbol** use line patterns and a ctags file; they are not a language
  server.
- **Printing** uses the Courier typeface built into PDF. Characters outside Western European
  (Windows-1252) print as `?`. There is one print font size, not separate hex and column fonts.
- **Preview** renders Markdown (headings, lists, tables, code, quotes) and the text of HTML. It
  is not a browser: no CSS, images or scripts. Add Style cycles three built-in styles.
- **Spell check** needs `aspell`; HTML Tidy needs `tidy`; XMLlint needs `xmllint`; Build Tag
  Index needs `ctags`; passwords need `secret-tool`; Delete needs `gio trash`. Without the
  program the command reports that it is unavailable and changes nothing.
- **Updates.** Help › Check for Updates and the daily notice read a feed on the EditBench website
  with the system `curl`, over https only. Update Now installs a `.deb` (through `pkexec`
  and `apt-get`) or the Windows installer after checking the download's SHA-256 against the
  feed; a copy from the tar archive or ZIP opens the download page instead. The feed itself
  is not signed: it is trusted because it comes from the website over https. The check, the
  notice, Skip and the download-and-checksum step were tried against a local test server;
  the install step itself (apt, the Windows installer, Restart Now) has not been run.
- **Editor font.** One monospaced font is shared by the editor, hex and column views.
- **Keypad shortcuts.** The keymap treats keypad digits as the digit row. Ctrl+1 to Ctrl+9 and
  Ctrl+0 select clipboard slots, so Previous/Next Word End (Ctrl+Keypad 1/2 in the catalog)
  have no default binding; assign one in Keyboard Shortcuts.
- **Shortcut sets.** Importing, exporting and summarizing sets in the Keyboard Shortcuts dialog
  are not connected.
- **Accessibility.** Menus, tabs, buttons and dialogs expose names and roles through AccessKit.
  The editor exposes the caret line as its value, not the whole document, and there is no
  inline IME preedit (committed text works).
- **Safe save.** A crash between staging and rename can leave a `.name.pid-n.craft_tmp` file
  beside the destination; nothing sweeps these yet.
- **Encodings.** 14 registry rows are listed but unavailable (ISCII, ISO-2022-JP1/2004,
  CP5123, CP1131, CP1098). The GB2312, EUC-TW, EBCDIC DBCS and ISO-2022 variants use glibc
  iconv.
- **Remote.** No proxy password, one
  connection per account, and uploads do not keep file timestamps. The console was checked over
  loopback Telnet only, not against a real SSH server.
- **Projects.** Backups hold only files inside the project folder.
- **Git.** The console runs `git` without a shell and refuses `reset`, `checkout`, `clean`,
  `restore` and `rebase`; use the Branch Manager (which asks first) or a terminal.

## Windows

The Windows build is new and has **not been run on a real Windows computer**. It was run under
Wine: the program starts, opens, edits and saves files (CRLF kept), Find works, menus and Help
open, a second launch hands its file to the running window, and the automated tests pass (281).

- **Needs Windows 10 or later**, 64-bit. Printing uses a Windows component
  (`windows.data.pdf.dll`) that the program will not start without; Wine does not have it.
- **Terminal** uses the Windows pseudo-console (Windows 10 version 1809 or later) and runs
  `cmd.exe`. Under Wine the shell exited at once, so the terminal is untested.
- **Printing** has not been run. The **installer** and uninstaller were run silently under
  Wine and their registry entries checked; the **Open with** list itself was not seen on a
  Windows desktop. The portable ZIP does not add EditBench to Open with.
  The same goes for **Edit with EditBench** on the right-click menu (on Windows 11 it is under
  **Show more options**).
- **Encodings.** Windows has no C library iconv, so GB2312, EUC-KR (CP51949), EUC-TW, the EBCDIC
  double-byte sets and the ISO-2022 variants use tables taken from glibc's iconv
  (`crates/editbench-io/data/cjk`, made by `tools/gen_cjk_tables.py`). The tests compare every
  code with glibc both ways, so Windows reads and writes the same bytes as Linux. The same rows
  as on Linux are unavailable.
- **Server passwords** are not stored; they are kept for the session only.
- **Saving** does not copy a file's owner, access list or alternate data streams to the new
  file, and hard links are not detected.
- **Tools** in Shell mode run through `cmd.exe`. Values are put in double quotes; `%NAME%` in a
  value is still expanded by cmd.
- **Set Font** offers Cascadia Mono, Consolas, Courier New and Lucida Console.
- **Helper programs** (`git`, `aspell`, `ctags`, `tidy`, `xmllint`, formatters) must be on the
  PATH.

## Automation notes

- Replace and Replace All from the find bar are not captured while recording a macro; Find
  Next and Find Previous are.
- A script's paste from the system clipboard uses the text last copied inside the editor.
- Byte-value search from scripts in hex mode searches text.
- Shortcuts stored on individual macros and scripts have no effect; tool slots (Ctrl+Shift+1
  to 8 for global tools 2 to 9) and template slots (Alt+0 to 9, Alt+Shift+0 to 9) do.
- The macro, script, tool and template dialogs have automated tests behind them but were not
  clicked through, apart from running a script with `-s`.

## The last four commands

- **Terminal** is a colour terminal (`TERM=xterm-256color`, 256 and true colour, bold,
  underline, inverse) with an alternate screen, so full-screen programs such as `vim`, `htop`
  and `less` work, and 5,000 lines of scrollback (Shift+PageUp/PageDown or the wheel). Not
  supported: mouse reporting to programs, selecting more than the screen shown (Copy Screen copies the
  screen; drag selects within it), italic and blinking text, and reflowing old lines when the panel is
  resized. While the terminal has the keyboard, every key goes to the shell, including Ctrl+S
  and Ctrl+W; Ctrl+Shift+C, Ctrl+Shift+V and the Insert keys copy and paste. The SSH/Telnet console uses the same terminal, so the same applies there.
- **Source Code Formatter** runs one external program per language (rustfmt, astyle, black,
  prettier, gofmt, shfmt, stylua and others; editable in the dialog). A formatter that is
  not installed is reported and the text is left unchanged. Only `rustfmt` was present on the
  build machine, so the others are untested.
- **HTML Validator** checks structure on this computer (unclosed and mismatched tags,
  duplicate ids, images without alt text, missing doctype or title) and adds `tidy`'s
  diagnostics when it is installed. It does not check against the full HTML specification
  and sends nothing to an online service.
- **Style Builder** covers common text, box and border properties, not all of CSS.

All 372 catalog commands are implemented.
