-
Notifications
You must be signed in to change notification settings - Fork 0
v1.7.0 #82
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
v1.7.0 #82
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,73 @@ | ||||||
| --- | ||||||
| title: "What's new in v1.7.0" | ||||||
| description: "Shell completions for bash, zsh and fish, plus extended syntax highlighting for PHP, C/C++, Swift, Terraform/HCL and Dockerfile." | ||||||
| date: 2026-03-04 | ||||||
| --- | ||||||
|
|
||||||
| # What's new in github-code-search v1.7.0 | ||||||
|
|
||||||
| > Full release notes: <https://github.com/fulll/github-code-search/releases/tag/v1.7.0> | ||||||
|
|
||||||
| ## Highlights | ||||||
|
|
||||||
| ### Shell completions — bash, zsh, fish | ||||||
|
|
||||||
| Tab-completion is now available for all three major shells. A new `completions` subcommand prints the appropriate script to stdout: | ||||||
|
|
||||||
| ```bash | ||||||
| # bash | ||||||
| github-code-search completions --shell bash >> ~/.bashrc | ||||||
|
|
||||||
| # zsh (place the script in a $fpath directory) | ||||||
| github-code-search completions --shell zsh > ~/.zfunc/_github-code-search | ||||||
|
|
||||||
| # fish | ||||||
| github-code-search completions --shell fish > ~/.config/fish/completions/github-code-search.fish | ||||||
| ``` | ||||||
|
|
||||||
| When `--shell` is omitted, the shell is auto-detected from `$SHELL`. | ||||||
|
|
||||||
| The completion scripts cover: | ||||||
|
|
||||||
| - All subcommands (`query`, `upgrade`, `completions`) | ||||||
| - All flags (`--org`, `--format`, `--output-type`, `--exclude-repositories`, `--exclude-extracts`, `--group-by-team-prefix`, `--no-interactive`, `--include-archived`, `--no-cache`, `--debug`) | ||||||
| - Enumerated flag values where applicable (`--format markdown|json`, `--output-type repo-and-matches|repo-only`) | ||||||
|
|
||||||
| #### Auto-refresh on upgrade | ||||||
|
|
||||||
| If you have installed completions, they are **refreshed automatically** every time you run `github-code-search upgrade`. No manual action needed — the completion file is overwritten in-place. | ||||||
|
|
||||||
|
Comment on lines
+17
to
+39
|
||||||
| #### Install script | ||||||
|
|
||||||
| The `install.sh` script now calls `install_completions()` at the end of an installation, writing the completion file for the detected shell: | ||||||
|
|
||||||
| ```bash | ||||||
| curl -sSL https://raw.githubusercontent.com/fulll/github-code-search/main/install.sh | bash | ||||||
|
||||||
| curl -sSL https://raw.githubusercontent.com/fulll/github-code-search/main/install.sh | bash | |
| curl -fsSL https://raw.githubusercontent.com/fulll/github-code-search/main/install.sh | bash |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The post claims the completion scripts cover all flags including
--debug, but the completion generator metadata insrc/completions.tsdoes not include adebugoption, so the generated scripts won’t actually suggest it. Either add--debugto the completion option list (and consider scoping it toupgrade), or adjust this release note to match current completion behavior.