File Under: Web Services

New Search Tool Brings Command-Line Power to GitHub

GitHub’s new command-line-style search tools. Screenshot/Webmonkey.

Code sharing giant GitHub has taken the wraps off a new search bar that’s much more than just a search bar — it’s a command-line interface for navigating the website.

The new features are clearly aimed at those accustomed to working with Git via the command line. But even if you aren’t a terminal aficionado the new terminal-style tools in GitHub’s search bar are incredibly useful for quickly getting around the site — especially for keyboard navigation junkies since you can now navigate the site without ever taking your fingers off the keyboard.

To use the new command bar just type help and you’ll get a list of available commands. Most of the common things you’d want to do on GitHub — check in on a repo, view your notifications, create a new issue or see any pull requests on your projects — can now all be done from the search box/command line. Here are a few useful search operators:

  • View a user’s profile @username
  • Go to a repository user/repo
  • List a user’s repositories user/
  • List issues user/repo #
  • Search open issues user/repo #search term

As with any good command-line imitator, GitHub’s new search bar features tab completion, history and what the GitHub blog calls “smart filtering”. To browse your history for example, hit the up arrow key — just like you would working in the terminal.

For more details, check out the GitHub blog or head on over to GitHub and give the new command search bar a try.