mirror of
https://github.com/patriceckhart/zot.git
synced 2026-07-01 07:43:41 +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. |
||
|---|---|---|
| .. | ||
| agent | ||
| assets | ||
| auth | ||
| core | ||
| extproto | ||
| provider | ||
| skills | ||
| swarm | ||
| tui | ||