Skip to main content

Bang Commands

Bang commands are powerful shortcuts that allow you to search specific websites directly from Devly's search bar. They're called "bang commands" because they start with an exclamation mark (!).

How Bang Commands Work

To use a bang command, simply include it anywhere in your search query. For example:

  • react hooks !gh - searches GitHub for "react hooks"
  • !yt how to code - searches YouTube for "how to code"
  • javascript !so - searches Stack Overflow for "javascript"

The bang command can be placed anywhere in your query - at the start, middle, or end.

Default Bang Commands

Devly comes with several built-in bang commands for popular websites:

CommandWebsiteExample
!wWikipediaquantum physics !w
!iGoogle Imagessunset !i
!nGoogle Newstech news !n
!mGoogle Mapscoffee shops !m

Developer Resources

CommandWebsiteExample
!ghGitHubreact hooks !gh
!soStack Overflowpython error !so
!npmnpm Package Registryexpress !npm

Social & Media

CommandWebsiteExample
!ytYouTubecoding tutorial !yt
!rRedditprogramming tips !r
!tTwittertech news !t

Shopping

CommandWebsiteExample
!aAmazonprogramming books !a

Creating Custom Bang Commands

You can create your own bang commands for any website you frequently use. Here's how:

  1. Click on the settings icon or navigate to the bang manager
  2. Click "Add New Bang Command"
  3. Fill in the following details:
    • Bang Command: The shortcut you want to use (e.g., !mdn)
    • Website Name: A descriptive name (e.g., "MDN Web Docs")
    • Search URL: The website's search URL with the query parameter (e.g., https://developer.mozilla.org/search?q=)

Tips for Custom Bang Commands

  1. Choose Memorable Commands: Use abbreviations that make sense to you (e.g., !mdn for Mozilla Developer Network)
  2. Verify the Search URL: Make sure to use the correct search URL format. You can find this by:
    • Performing a search on the target website
    • Looking at the URL in your browser
    • Identifying the search query parameter (usually ?q=, ?search=, or similar)

Example Custom Bang Commands

Here are some useful custom bang commands you might want to create:

// Documentation Sites
!mdn - Mozilla Developer Network
!vue - Vue.js Documentation
!react - React Documentation

// Package Registries
!pip - Python Package Index
!cargo - Rust Package Registry
!maven - Maven Central Repository

// Learning Platforms
!udemy - Udemy Courses
!coursera - Coursera Courses

Keyboard Shortcuts

To make your search experience even faster:

  • Press / to focus the search bar
  • Use Ctrl+K or Cmd+K (on Mac) to quickly start searching
  • Press Enter to execute the search
  • Press Esc to clear the search bar

Tips & Tricks

  1. Combine with Regular Search: Bang commands work seamlessly with regular searches. If no bang command is used, Devly will use your default search engine.

  2. Multiple Searches: You can quickly perform the same search on different platforms by changing just the bang command:

    react hooks !gh    // Search on GitHub
    react hooks !so // Same search on Stack Overflow
    react hooks !yt // And on YouTube
  3. Custom Workflows: Create bang commands that match your development workflow. For example:

    • !jira for your team's JIRA board
    • !docs for your company's internal documentation
    • !staging for your staging environment
  4. Search Order: When you include a bang command, Devly will:

    1. First check your custom bang commands
    2. Then check the default bang commands
    3. Finally use the default search engine if no bang command matches

Managing Bang Commands

  • You can delete custom bang commands at any time through the bang manager
  • Default bang commands can also be overridden with your own custom URLs
  • Keep your bang commands organized and remove any you don't use frequently

Start using bang commands today to supercharge your search workflow and save valuable development time!