Rebuilt around a single registry of text operations, from which the command
line parser, the help text, the shell completions and the interactive interface
are all generated.
Added
- 143 operations across ten categories: case conversion, encoding, hashing,
line editing, text cleanup, number formats, format conversion, inspection,
generators and time. - An interactive full screen interface, shown when
txcruns with no
arguments, with live output, a searchable catalogue, per operation sample
text and an options panel filled in with the values in force. ctrl+ycopies the output to the system clipboard, asking a clipboard
program first (pbcopy,Set-Clipboardorclip,wl-copy,xclip,
xsel) and falling back to the OSC 52 escape sequence, wrapped for
passthrough when running inside tmux or screen.ctrl+ssaves the output, asking where to put it, andctrl+nruns the
operations whose answer varies again.txc aboutand theF2view, naming the version, author and licence.- Shell completions for bash, zsh, fish, PowerShell and elvish, via
txc completions <shell>. - Installers for Unix (
install.sh) and Windows (install.ps1), and packaging
for Debian, RPM, Homebrew, Scoop, the AUR, winget and Alpine, with binaries
released for Linux, macOS and Windows on both x86_64 and arm64.
Changed
- Every operation takes its text as arguments, from
--file, or over a pipe,
with the same result each way. One trailing newline is dropped from piped
input so a shell'sechoagrees with a quoted argument;--rawkeeps it. - Text typed in the interface follows you between operations only while the
new operation can read it, so reaching a decoder no longer shows an error
about the previous operation's text. - Moved to the 2024 edition, with a minimum supported Rust version of 1.88.
Fixed
uewas registered as a secondud, so URL encoding was unreachable and
silently read standard input instead.uuid,uuid1anduuid5read an option they did not declare and panicked
on every run.- Invalid input reached
unwrapthroughout; it now produces a message and a
non zero exit status. - An option written after the text was swallowed as part of it, so
txc from-timestamp 1700000000 --utcignored--utc. - The key reference along the bottom of the interface was dark text on a dark
background, and unfocused panel titles were close to invisible. ~in the save prompt readHOMEalone, so it was taken literally on
Windows, where the variable isUSERPROFILE.
Install
curl -sSf https://raw.githubusercontent.com/vorjdux/txc/main/install.sh | shirm https://raw.githubusercontent.com/vorjdux/txc/main/install.ps1 | iexEvery archive is listed in SHA256SUMS.