Large File view
A double click on a file larger than the editor threshold (8 MiB by default, Settings → Appearance → Editor → Large Files) opens it in a Large File tab instead of the editor. Open as Large File in the context menu of the SFTP panel and the Files window opens any file there. The view is read only and never copies the file: KryoDesk reads only the bytes on screen.
| Source | How bytes are read |
|---|---|
| This Mac, SMB/NFS mounts | Reads at an offset |
| SFTP | open + seek + read on the SFTP channel |
| S3 | GET with Range: bytes=… (206 required) |
| FTP/FTPS | Not supported: one control connection has no ranged reads; download the file or use SFTP |
Moving around
Section titled “Moving around”- Scroll wheel, arrow keys, Page Up/Page Down, Home/End.
- The scroll bar maps to the file’s bytes: dragging it to 50 % shows the middle of the file.
- Go to takes a line (
1234), an offset (0x1f0,1f0h,@496) or a percentage (50%). A line number counts newlines from the start as far as needed, with progress and Cancel. - Line numbers are exact (
1,234) where lines were counted from the start; elsewhere they are estimated (≈1,234) from the counted part. The count is kept in memory per path, size and modification time. - # shows byte offsets (hex) instead of line numbers.
- A line longer than 4096 bytes continues on the next row (
↪). Control characters show as symbols (␀,␛), invalid UTF-8 bytes as\xNN. Text is read as UTF-8; UTF-16 files show as bytes.
Search
Section titled “Search”The search reads the file in 8 MiB pieces and never holds it whole. Options: Match case, Whole
word, Regular expression. Matching works on bytes like LC_ALL=C grep: case folding is ASCII only,
. matches any byte except a newline, regular expressions use Rust regex syntax and match line by line.
Up to 10 000 hits are listed; More continues after the last one. Progress shows the percentage,
speed and time left. A click on a hit shows it highlighted.
The search field is the editor’s: the same history (magnifier, ⌥↓), the same
toggles (⌥C, ⌥W, ⌥X) and Show
expressions help in the Regex tooltip, here for Rust regex or, on the host, grep -E. Enter
searches; with the same query it goes to the next hit, ⇧Enter to the previous one
(also F3 / ⇧F3). The counter shows 3/120.
On the SSH host
Section titled “On the SSH host”For a file over SFTP whose connection can run commands, the search can run on the host:
env LC_ALL=C grep -a -b -n -F [-i] [-w] -m 10000 -f /dev/stdin -- '<path>'Only the matching lines travel; the host’s CPU and disk do the work. The exact line is shown before it
runs; the search text goes to grep’s standard input, so it does not appear in the command line or in
ps. With Regular expression the host uses grep -E (POSIX ERE). The exit code and stderr are
shown. grep runs as the login user, also when the SFTP panel uses Become user. When grep is missing
(exit 127) or fails, Search over SFTP reads the file through the connection instead.
- Paths with a backslash, a single quote or a control character are searched over SFTP only: the login shell (fish, csh) could read them differently.
- Cancel sends
TERMto grep over the channel and closes it. OpenSSH before 7.9 ignores the signal; grep then runs to its next output line or the end of the file. - With an SFTP chroot (
ChrootDirectory,internal-sftp) the path seen by grep can be a different file than the one shown.
Compressed files
Section titled “Compressed files”A double click on a gzip, zstd, bzip2 or xz file opens it decompressed in a Large File tab. The format
comes from the file’s first bytes, not from its name (over FTP only files named .gz, .tgz, .zst,
.bz2, .xz and the like are checked). Concatenated parts (cat a.gz b.gz, pigz, pbzip2, several
xz streams or zstd frames) are decompressed whole.
KryoDesk decompresses the file in a stream into a private temporary copy ($TMPDIR/kryodesk-edit-…,
readable by you only); a file over SFTP, S3 or FTP is downloaded next to it first. The progress line
shows the phase, the percentage, the output size and the speed; Cancel stops it and removes the copy.
Scrolling, line numbers and search then work on the copy as on a local file. The copy is removed a minute
after the tab closes and when KryoDesk quits.
The header shows the format, the compressed and decompressed size with the ratio, and for gzip the file
name and time stored in the gzip header. That name was written by whoever compressed the file: control
and bidirectional characters show as \u{…}.
| Limit | Value | Can be lifted |
|---|---|---|
| Decompressed size | 64 GiB | yes |
| Compression ratio | 500:1, checked after the first 256 MiB | yes |
| Free space left on the temporary volume | 2 GiB | no |
| xz dictionary / zstd window | 256 MiB / 128 MiB (2 GiB each when lifted) | yes |
A limit stops the decompression; the tab shows the part before it and the reason, and Decompress without size and ratio limits starts again without them. Damaged or cut data (a log still being written, a failed checksum) shows the part decoded before the error, with the compressed and decompressed byte counts where it happened.
A tar archive inside (.tar.gz, .tar.zst, …) is not shown as text: KryoDesk says so and opens it in
the archive view.