Repository navigation
Conversation
Scrates1
force-pushed
the
fix/shell-quoting-and-tui-edge-cases
branch
from
December 2, 2026 06:23
1fc248c to
58919a6
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hey! Love using
try. While testing a few edge cases (paths with spaces/quotes, larger directory lists, and graduating worktrees), I ran into a handful of small bugs and put together fixes + regression tests for them.What's changed
Shell quoting & path handling
q(uri)inscript_clone(matchingscript_clone_pr) so URIs with single quotes don't break the emitted script.sh -c '...' _inscript_worktreeto avoid nested single-quote syntax errors when repo orTRY_PATHdirectories contain spaces or apostrophes.init_snippet(bash/zsh/fish/pwsh) and expand relative/~paths incmd_init!/cmd_install!.TUI & command edge cases
.limit(max_results)fromget_triesso users with more than one screen of directories can scroll through the full list, and adjust scroll offset for the blank separator line so the selectedCreate newrow isn't clipped off-screen.load_all_triesinconfirm_batch_delete(preserving mark order across filter changes) and cap the displayed list inrender_delete_dialogso theType YES to confirm:prompt stays visible.Ctrl-G(Graduate) edge cases: pass-Ctogit worktree moveso it works from any CWD, prevent re-graduating an already-graduated symlink, and check for an empty destination beforeFile.expand_path.try . <name>to detect.gitfrom subdirectories (while ensuring nonexistent paths don't walk up), and narrow the dot-prefix check so searching.envopens the selector instead of creating a directory.Test fixes
type/whencechecks intest_36_shell_eval.shwithLC_ALL=Cso it passes on non-English locales.test_21_tmux_rename.shto match✏️.Verification
FileUtils,eval, or blockgsub), though I don't havespinelinstalled locally to runrake spec_spinel.rake lint— syntax OKrake unit— 134 runs, 281 assertions, 0 failuresrake spec— 411/411 passedspec/tests/tmux/run.sh ./try.rb— 37/37 passedinitandworktreescripts with spaces & single quotes end-to-end inbashandfish.