mirror of
https://github.com/patriceckhart/zot.git
synced 2026-07-01 15:53:46 +02:00
The shell-style path tab-completion added in the previous commit only ran against the main interactive editor; /btw and /swarm have their own *tui.Editor instances inside their dialogs and routed Tab through editor.HandleKey untouched, so '~/Dev'+Tab inserted nothing in those modes. Refactored the completion into a free helper: tryPathTabCompleteEditor(ed *tui.Editor, cwd string) bool The Interactive method is now a thin wrapper that adds frame invalidation. btwDialog gained a cwd field (set by Open) and calls the helper before forwarding to editor.HandleKey. swarmDialog already tracked d.cwd; both its prompt-editor and spawn-editor paths now run the helper before HandleKey, gated to skip when the @-picker popup is active so Tab there still selects the highlighted chip. Net effect: ~/Dev+Tab, ./int+Tab, cmd/+Tab, etc. now work the same way in the main composer, in /btw side chats, and in /swarm spawn and follow-up prompts. |
||
|---|---|---|
| .. | ||
| extensions | ||
| modes | ||
| tools | ||
| args.go | ||
| botcmd.go | ||
| botcmd_unix.go | ||
| botcmd_windows.go | ||
| build.go | ||
| build_test.go | ||
| changelog.go | ||
| cli.go | ||
| config.go | ||
| extcmd.go | ||
| modelsync.go | ||
| rpc.go | ||
| settings_store.go | ||
| swarm_agent.go | ||
| swarm_agent_test.go | ||
| systemprompt.go | ||
| update.go | ||
| updatecmd.go | ||