Open
Description
Describe the bug
Same query for gh search code
should probably work both in terminal and web?
This works and returns examples:
$ gh search code --extension nix "karabiner-elements"
But when adding --web
it doesn't show any results because extension
doesn't work in web:
$ gh search code --extension nix "karabiner-elements" --web
Affected version
$ gh version
gh version 2.73.0 (nixpkgs)
https://github.com/cli/cli/releases/tag/v2.73.0
Steps to reproduce the behavior
- Type this:
gh search code --extension nix "karabiner-elements" --web
- It then opens this link: https://github.com/search?q=karabiner-elements+extension%3Anix&type=code
- Where I can see this error:
Expected vs actual behavior
If the web search query would not use extension:nix
but path:*.nix
it would work correctly.