What Are Bang Commands?§

Bang commands are short keyword prefixes — starting with an exclamation mark — that redirect your search query to a specific website instead of the default search engine. They are a power-user feature popularized by DuckDuckGo, which supports over 13,000 bangs.

For example, instead of:

  1. Typing "YouTube" in your address bar
  2. Clicking the YouTube link
  3. Clicking the search field
  4. Typing your query

You simply type !yt lo-fi music and press Enter. You land directly on the YouTube search results page. Four steps become one.


Here are the bang commands that developers, students, and power users rely on every day:

BangGoes ToBest For
!ytYouTubeVideos, tutorials, music
!ghGitHubFinding repositories, code, issues
!soStack OverflowDebugging, programming questions
!wWikipediaQuick definitions, background research
!rRedditCommunity discussions, recommendations
!npmnpm registryFinding JavaScript packages
!mdnMDN Web DocsWeb API and CSS reference
!mapsGoogle MapsDirections and place searches

How Bang Commands Work§

Bang commands work by intercepting your search query before it is sent to the search engine. The bang prefix is matched against a lookup table, and the remainder of your query is injected into the target site's search URL template.

For example, !yt lo-fi music becomes:

https://www.youtube.com/results?search_query=lo-fi+music

The simplicity of this mechanism means you can implement bang shortcuts anywhere — in a browser extension, in a custom search engine definition, or in a web app like Nexa Launchpad.


Bang Commands in Nexa Launchpad§

The Nexa Launchpad has bang support built directly into its omnibar. You do not need to be using DuckDuckGo — bangs work regardless of which search engine you have selected.

Just open the launchpad, type your bang command and query, and press Enter:

  • !yt javascript promises explained → Opens YouTube search
  • !gh react hooks → Opens GitHub search for React hooks repositories
  • !so TypeScript type narrowing → Opens Stack Overflow search
  • !npm lodash → Opens npm search for lodash

The launchpad handles bang detection automatically. No configuration required.


Going Beyond: Custom Shortcuts§

Once you have mastered the built-in bang list, consider setting up custom shortcuts in your browser for sites you visit daily that do not have a standard bang:

Chrome Custom Search Engines

  1. Go to Settings → Search engine → Manage search engines
  2. Click Add and enter your shortcut keyword and URL template
  3. For example: keyword td, URL https://todoist.com/search?q=%s
  4. Now typing td buy groceries in the address bar searches your Todoist tasks

Combining browser custom search engines with the built-in bangs in Nexa Launchpad creates a comprehensive keyboard-driven search workflow that dramatically reduces the time you spend navigating to pages manually.


Conclusion§

Bang commands are one of the highest-leverage productivity tricks available to browser users. They eliminate navigation overhead for your most frequent searches and are simple enough to learn in minutes. Whether you use them through DuckDuckGo, a custom search engine setup, or the built-in omnibar in Nexa Launchpad, the habit pays off from the very first search.

Start with three: !yt, !gh, and !so. Add more as you discover which sites you search most often.

Try bang commands in Nexa Launchpad →