Quick Research
wiki quantum computingThe native interface supports quick web searches via URL templates. Type a keyword followed by your query to open search results in your default browser.
Define custom search engines with keywords and URL templates. When you type a keyword and query, Raffi opens your browser with the search results.
Configure web searches in your raffi.yaml:
addons: web_searches: - name: "Google" keyword: "g" url: "https://google.com/search?q={query}" icon: "google"
- name: "DuckDuckGo" keyword: "ddg" url: "https://duckduckgo.com/?q={query}" icon: "duckduckgo"
- name: "GitHub" keyword: "gh" url: "https://github.com/search?q={query}" icon: "github"
- name: "Wikipedia" keyword: "wiki" url: "https://en.wikipedia.org/wiki/Special:Search?search={query}" icon: "wikipedia"name string (required)
Display name shown in the search row (e.g., “Search Google for…”)
keyword string (required)
Text that activates the web search (e.g., “g”, “ddg”)
url string (required)
URL template with {query} placeholder for search terms
icon string
Icon name from your icon cache to display next to the search row
Type a keyword followed by your search query:
g rust traits# Opens: https://google.com/search?q=rust%20traits
ddg wayland compositor# Opens: https://duckduckgo.com/?q=wayland%20compositor
gh iced-rs# Opens: https://github.com/search?q=iced-rs
wiki functional programming# Opens: https://en.wikipedia.org/wiki/Special:Search?search=functional%20programmingType Keyword
Type the configured keyword (e.g., g)
Add Query
Type your search query after the keyword
See Preview
Raffi displays “Search [Name] for [query]”
Execute Search
Press Enter to open browser with search results
The {query} placeholder is automatically percent-encoded for safe URL use:
%20& → %26)-, ., _, ~)g hello world→ https://google.com/search?q=hello%20worldg rust + traits→ https://google.com/search?q=rust%20%2B%20traitsg "exact phrase" -exclude→ https://google.com/search?q=%22exact%20phrase%22%20-excludeCommon search engines you can add:
- name: "Google" keyword: "g" url: "https://google.com/search?q={query}" icon: "google"
- name: "DuckDuckGo" keyword: "ddg" url: "https://duckduckgo.com/?q={query}" icon: "duckduckgo"
- name: "Bing" keyword: "b" url: "https://www.bing.com/search?q={query}" icon: "bing"- name: "GitHub" keyword: "gh" url: "https://github.com/search?q={query}" icon: "github"
- name: "Stack Overflow" keyword: "so" url: "https://stackoverflow.com/search?q={query}" icon: "stackoverflow"
- name: "Crates.io" keyword: "crate" url: "https://crates.io/search?q={query}" icon: "rust"
- name: "NPM" keyword: "npm" url: "https://www.npmjs.com/search?q={query}" icon: "npm"
- name: "Docker Hub" keyword: "docker" url: "https://hub.docker.com/search?q={query}" icon: "docker"- name: "Wikipedia" keyword: "wiki" url: "https://en.wikipedia.org/wiki/Special:Search?search={query}" icon: "wikipedia"
- name: "MDN" keyword: "mdn" url: "https://developer.mozilla.org/en-US/search?q={query}" icon: "firefox"
- name: "Rust Docs" keyword: "rdoc" url: "https://doc.rust-lang.org/std/?search={query}" icon: "rust"- name: "YouTube" keyword: "yt" url: "https://www.youtube.com/results?search_query={query}" icon: "youtube"
- name: "Reddit" keyword: "r" url: "https://www.reddit.com/search?q={query}" icon: "reddit"
- name: "Twitter" keyword: "tw" url: "https://twitter.com/search?q={query}" icon: "twitter"- name: "Amazon" keyword: "amz" url: "https://www.amazon.com/s?k={query}" icon: "amazon"
- name: "eBay" keyword: "ebay" url: "https://www.ebay.com/sch/i.html?_nkw={query}" icon: "ebay"You can add any search engine that accepts a query parameter:
Perform a Search
Go to the website and search for “test”
Copy URL
Look at the browser address bar:
https://example.com/search?q=testReplace Query
Replace “test” with {query}:
https://example.com/search?q={query}Add to Config
- name: "Example" keyword: "ex" url: "https://example.com/search?q={query}"- name: "Search Rust Reddit" keyword: "rr" url: "https://www.reddit.com/r/rust/search?q={query}&restrict_sr=1" icon: "reddit"- name: "Google Images" keyword: "img" url: "https://www.google.com/search?q={query}&tbm=isch" icon: "google"- name: "Python Docs" keyword: "pydoc" url: "https://docs.python.org/3/search.html?q={query}" icon: "python"Here’s a complete example with popular search engines:
addons: web_searches: # General - name: "Google" keyword: "g" url: "https://google.com/search?q={query}" icon: "google"
- name: "DuckDuckGo" keyword: "ddg" url: "https://duckduckgo.com/?q={query}"
# Development - name: "GitHub" keyword: "gh" url: "https://github.com/search?q={query}" icon: "github"
- name: "Stack Overflow" keyword: "so" url: "https://stackoverflow.com/search?q={query}"
- name: "Crates.io" keyword: "crate" url: "https://crates.io/search?q={query}" icon: "rust"
# Reference - name: "Wikipedia" keyword: "wiki" url: "https://en.wikipedia.org/wiki/Special:Search?search={query}" icon: "wikipedia"
- name: "MDN" keyword: "mdn" url: "https://developer.mozilla.org/en-US/search?q={query}"
# Media - name: "YouTube" keyword: "yt" url: "https://www.youtube.com/results?search_query={query}" icon: "youtube"