gh-select

Filter tokens

The lang and is tokens you can type into any list, and how they translate to GitHub search.

View as Markdown

Tokens are words in the search box. They are removed from the text before it is matched, and every token must hold for a repository to stay in the list. Several tokens combine, and so does text.

cli lang:go is:mine
is:private is:fork
lang:typescript is:active

Tokens

TokenKeepsApplies in GitHub scope as
lang:NAME, language:NAMErepos whose main language is NAME, case-insensitivelanguage:NAME
is:publicpublic reposis:public
is:privateprivate reposis:private
is:forkforksfork:only
is:sourceoriginal repos, not forksfork:false
is:archivedarchived reposarchived:true
is:activerepos that are not archivedarchived:false
is:localrepos you have clonedapplied to the results
is:minerepos you ownapplied to the results

Tokens are case-insensitive. An unknown is: value is treated as ordinary text.

Where they apply

  • My repos and Starred apply every token to the cached list.
  • GitHub rewrites tokens into GitHub's own qualifiers. is:local and is:mine have no GitHub equivalent, so they filter the returned results instead.

GitHub qualifiers

In GitHub scope, these qualifiers are also passed through as typed: language:, is:, topic:, stars:, archived:, fork:, user: and org:.

topic:tui stars:>500 language:go
org:charmbracelet

The tokens language: and is: can still be matched against an owner listing. Any other qualifier sends the whole query to GitHub search.

Combining with text

Free text is matched against the repository name. In My repos and Starred, results with free text are ranked by fuzzy match unless you chose a sort with ctrl+s.

Edit this page on GitHub

Last updated on

On this page