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:
General Search
Command | Website | Example |
---|---|---|
!w | Wikipedia | quantum physics !w |
!i | Google Images | sunset !i |
!n | Google News | tech news !n |
!m | Google Maps | coffee shops !m |
Developer Resources
Command | Website | Example |
---|---|---|
!gh | GitHub | react hooks !gh |
!so | Stack Overflow | python error !so |
!npm | npm Package Registry | express !npm |
Social & Media
Command | Website | Example |
---|---|---|
!yt | YouTube | coding tutorial !yt |
!r | programming tips !r | |
!t | tech news !t |
Shopping
Command | Website | Example |
---|---|---|
!a | Amazon | programming books !a |
Creating Custom Bang Commands
You can create your own bang commands for any website you frequently use. Here's how:
- Click on the settings icon or navigate to the bang manager
- Click "Add New Bang Command"
- 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=
)
- Bang Command: The shortcut you want to use (e.g.,
Tips for Custom Bang Commands
- Choose Memorable Commands: Use abbreviations that make sense to you (e.g.,
!mdn
for Mozilla Developer Network) - 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
orCmd+K
(on Mac) to quickly start searching - Press
Enter
to execute the search - Press
Esc
to clear the search bar
Tips & Tricks
-
Combine with Regular Search: Bang commands work seamlessly with regular searches. If no bang command is used, Devly will use your default search engine.
-
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 -
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
-
Search Order: When you include a bang command, Devly will:
- First check your custom bang commands
- Then check the default bang commands
- 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!