Tab completion for file paths
Feature Enhancement Request: File Path Autocompletion for Goose Prompts
Please explain the motivation behind the feature request.
When using Goose prompts that require referencing a file, users currently have to manually type out the full file path. This can be tedious, especially for deeply nested files or long filenames. Adding autocompletion for file paths would streamline the process, reducing the chance of typos and making it quicker to reference files for Goose to read and provide context.
Describe the solution you'd like
I propose enabling tab-completion for file paths within Goose prompts, so that users can:
- Start typing a file path and press Tab to autocomplete it.
- See suggestions for matching files and directories in the current working directory.
- Seamlessly insert the fully qualified path without needing to manually type it out.
The goal is to improve efficiency when referencing files for Goose to process, without requiring users to navigate directories interactively—just provide a quick way to complete paths inline.
Describe alternatives you've considered
-
Manually copying and pasting file paths from a file explorer or terminal, which is slower and prone to errors.
-
Using a shell command (
lsorfind) to get the file path and then pasting it, which adds extra steps. -
Implementing custom shell aliases or scripts, but this requires user-specific setup rather than being a built-in feature.
-
[x] I have verified this does not duplicate an existing feature request
related #1373
I still don't see a clear way we'd add this feature - goose's text box acts more as a chat window than terminal. Let me know if you think otherwise
I still don't see a clear way we'd add this feature - goose's text box acts more as a chat window than a terminal. Let me know if you think otherwise
Do you contribute to the goose tui code? It is doable.
goose's text box acts more as a chat window than terminal.
If it is in tui, it is terminal.
Would be great to have! @dir/ shows dir contents to select from, @File shows **/*File* to select from. Files tagged with @ get embedded into the context. Always based on pwd (usually project root).
Bonus points for file watcher for Linux and macOS/Darwin, otherwise update on @-press. 😉