Kagi: Add LeetCode !bang
• 119 words • 1 min • updated
Kagi, a paid search engine, allows adding custom bangs.
Today we’ll add a custom bang for LeetCode.
- Navigate to https://kagi.com/settings/custom_bangs
- Click ‘Add Bang’
- Input: — Bang name: LeetCode — Bang shortcut: leetcode — URL template: https://leetcode.com/search/?q=%s — [x] Shortcut Menu (“Show this custom bang in the More search menu”) — [x] Open Base Path (“When using this bang without a query, navigate to the base path of the URL instead”)
- Save
To trigger the bang, search for e.g. !leetcode Remove Duplicates from Sorted Array.
You could also add this URL to your browser search engine
settings, just set the shortcut starting with an exclamation mark / bang (!).
When to choose which? Kagi settings will work seamlessly on mobile.