-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add shell-completions subcommand #76
Open
lamchau
wants to merge
13
commits into
square:main
Choose a base branch
from
lamchau:lam/autocomplete-session
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+209
−6
Conversation
This file contains 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
lamchau
force-pushed
the
lam/autocomplete-session
branch
4 times, most recently
from
September 18, 2024 17:57
811ed30
to
bfd19f3
Compare
lamchau
changed the title
feat: add 'install-shell-completions' subcommand
feat: add 'shell-completions' subcommand
Sep 18, 2024
lamchau
changed the title
feat: add 'shell-completions' subcommand
feat: add shell-completions subcommand
Sep 19, 2024
lamchau
force-pushed
the
lam/autocomplete-session
branch
from
September 19, 2024 08:28
e275edb
to
a1a4961
Compare
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.
extracted from an experimental 'daemon/lsp mode' branch which may overhaul how session management is handled. at the very least, landing this would be a good starting point to enable discoverability of commands and adoption.
shell-completions --install
support forbash
,fish
, orzsh
(appends to standard config files)shell-completions --generate
support forbash
,fish
, orzsh
(custom location with install text)goose session resume <session_name>
this can only be tested via an entrypoint (i.e. installed not via
uv
)Usage
This will install to the set user-defined
$SHELL
goose shell-completions --install
Note: For
bash
andzsh
, the user will need tosource {rc_file}
before it can take effect.Alternatively, you can generate the completions and manually install run them yourself
Example installations with autocompletion per
$SHELL
Guard for exclusive options
--generate
or--install
onlyAutocomplete for session (via
fish
;goose session resume a<tab>
)