Skip to content

Instantly share code, notes, and snippets.

@simonklee
Last active May 9, 2023 17:09
Show Gist options
  • Save simonklee/9ee641e680ea5a3d75f561e7663077aa to your computer and use it in GitHub Desktop.
Save simonklee/9ee641e680ea5a3d75f561e7663077aa to your computer and use it in GitHub Desktop.

Search Tips

Hierarchical search helps you find information related to specific modules, classes, or categories:

  • Enter the higher-level term first, followed by the specific term
  • Example: "fs windows" to find declarations in fs containing windows

Order of search terms can affect the prioritization of the results:

  • Changing order affects prioritization of results
  • Order won't hide results, but prioritizes matching hierarchy
  • Example: "windows fs" prioritizes 'std.os.windows'

Answering specific questions related to Zig's standard library to make your search more effective:

  • Example: "fs absolute" to find functions in 'fs' accepting absolute paths

Searching across multiple namespaces to broadens a search:

  • First search term can match multiple namespaces
  • Example: "array swapremove" returns ArrayLists, ArrayHashMap, and BoundedArray supporting swap remove operation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment