From 6af3ba52dc1b8332214147c1d3d5a20348d1e18a Mon Sep 17 00:00:00 2001
From: Marty Oehme <marty.oehme@gmail.com>
Date: Sun, 23 Feb 2025 23:21:23 +0100
Subject: [PATCH] qutebrowser: Add shellcheck search engine

Just run `sc <diagnosis number>` and you will instantly be beamed to the
correcsponding shellcheck wiki error page.

E.g. `sc 3001` will transport you to 'In POSIX sh, process substitution
is undefined'.
---
 qutebrowser/config/searchengines.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/qutebrowser/config/searchengines.py b/qutebrowser/config/searchengines.py
index b663120..e1f9824 100644
--- a/qutebrowser/config/searchengines.py
+++ b/qutebrowser/config/searchengines.py
@@ -22,6 +22,7 @@ c.url.searchengines = {
     "pcw": "https://www.pcgamingwiki.com/w/index.php?search={}",
     "py": "https://pypi.org/search/?q={}",
     "r": "https://www.reddit.com/r/{}",
+    "sc": "https://www.shellcheck.net/wiki/SC{}",
     "sci": "https://sci-hub.ru/{}",
     "t": "https://www.thesaurus.com/browse/{}",
     "void": "https://voidlinux.org/packages/?q={}",