Skip to content

feat(fleet-sync): shell-style path autocomplete (Tab, arrows), ~ expands in transfers - #63

Merged
ralyodio merged 1 commit into
mainfrom
feat/fleet-sync-path-autocomplete
Oct 17, 2026
Merged

ralyodio merged 1 commit into
mainfrom
feat/fleet-sync-path-autocomplete

Conversation

@ralyodio

Copy link
Copy Markdown
Contributor

Fleet Sync's path boxes complete like a shell.

  • Type ~/pro and it offers ~/projects/; /ho offers /home/. Folders first, dotfiles only after a ..
  • Tab completes the shared prefix (or the single match), ↑/↓ pick, Enter or a click takes one; taking a folder keeps the list open on its contents.
  • Source path lists the source (this machine, or the server over SFTP); destination path lists the first ticked destination (the source until one is ticked). 30 s cache per directory, so typing doesn't re-list over SSH.
  • Fix: a local ~/x path reached rsync literally (no shell expands it). resolveEndpoint now expands a leading ~ for local endpoints, keeping a trailing slash.

Tests: src/lib/path-complete.test.ts (8) and expand-home.test.ts (2); desktop suite 214/214. Rendered with the mock bridge in both themes: ~/ lists the server's home, ~/re + Tab gives ~/releases/.

🤖 Generated with Claude Code

…fers

Fleet Sync's source and destination path boxes now complete as you type:
~/pro offers ~/projects/, /ho offers /home/. Tab completes the shared prefix
(or the one match), arrows pick, Enter or a click takes one, and taking a
folder keeps the list open on its contents. The source path lists the
source (this machine or a server over SFTP); the destination path lists the
first ticked destination. Listings are cached for 30 s per directory.

Over SFTP there is no ~, so ~/x is listed as the home-relative x. Locally,
rsync runs without a shell, so a ~/site source used to reach it literally:
resolveEndpoint now expands a leading ~ for local endpoints, keeping a
trailing slash.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@ralyodio
ralyodio merged commit ad20d1d into main Oct 17, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant