This commit is contained in:
Joakim
2026-10-12 23:30:17 +02:00
parent 212b922629
commit e1836a38e1
5 changed files with 88 additions and 133 deletions

View File

@@ -1,9 +1,3 @@
## v2 - latest fix
- Fixed `Ctrl+C` exit handling so the Bash wrapper reliably changes to the directory where TUI was closed, including when Bash `set -e` is enabled.
- Action commands are evaluated as complete Bash commands, so `&&` and `||` chains work as they do directly in the terminal.
- Updated the example ZIP action to demonstrate success/failure prompts with `&&` / `||`.
# Changelog
## v2.1
@@ -30,17 +24,9 @@
- Added `ls --color`-style colors for directories, symlinks, executables, archives and common image files.
- Marked paths remain visible as marked when returning to their directory.
### v2 – cursor and block selection update
- Cursor can now move to the empty line immediately below the last object.
- `Ctrl+K K` now behaves like joe: the block end is the row immediately above the cursor.
- On the bottom empty line, `Ctrl+K K` therefore selects through the last object.
## 2.0.7
## v2 update
- The bottom empty row now visibly shows the cursor.
- When TUI exits normally, the shell integration changes the parent Bash shell to the directory where TUI was closed.
## v2 fix – interactive shell commands and exit directory
- Fixed interactive action commands: the command loop no longer redirects stdin from the command file.
- Commands such as `unzip -l <path> && read -rp "Enter..." || read -rp "FAILED..."` now receive input from the real terminal.
- The final TUI directory is always applied to the parent Bash shell when TUI exits, including Ctrl+C/SIGINT.
- Added `tui -v` / `tui --version` for verifying which installed version is running.
- Fixed Ctrl+C exit so the parent Bash process changes to the directory where TUI was closed.
- TUI now uses a separate exit status for normal Ctrl+C exit versus shell-action handoff.
- Shell actions are read into an array before execution, so commands containing `read`, `&&`, and `||` receive the real terminal stdin and behave like normal Bash commands.