From 1311cfa532f5638f8aae0f53423c39bfcac44130 Mon Sep 17 00:00:00 2001 From: Edward Shen Date: Sun, 5 Jul 2020 00:12:58 -0400 Subject: [PATCH] update example default config file --- bunbun.default.yaml | 29 ++++++++++++++++++++++++++--- 1 file changed, 26 insertions(+), 3 deletions(-) diff --git a/bunbun.default.yaml b/bunbun.default.yaml index 5eb7f5e..0135cc8 100644 --- a/bunbun.default.yaml +++ b/bunbun.default.yaml @@ -28,19 +28,42 @@ default_route: "g" # flakey responses to remote code execution. groups: - + # This is a group with the name "Meta commands" with a short description. name: "Meta commands" description: "Commands for bunbun" routes: + # /ls is the only page that comes with bunbun besides the homepage. This + # page provides a full list of routes and their groups they're in. ls: &ls "/ls" - help: *ls + help: + # Bunbun supports all standard YAML features, so things like YAML pointers + # and references are supported. + path: *ls + # Paths can be hidden from the listings page if desired. + hidden: true list: *ls - + # This is another group without a description name: "Google" routes: + # Routes can be quickly defined as a simple link, where {{query}} is where + # your query to bunbun is forwarded to. g: "https://google.com/search?q={{query}}" - yt: "https://www.youtube.com/results?search_query={{query}}" + # Alternatively, you can provide a description instead, which provides + # replaces the raw query string on the ls page with said description + yt: + path: "https://www.youtube.com/results?search_query={{query}}" + description: "A way to quickly search youtube videos" - name: "Uncategorized routes" - description: "One-off routes with no specific grouping" routes: r: "https://reddit.com/r/{{query}}" + # Routes don't need the {{query}} tag, so links can just be shortcuts to + # pages you'd like + nice: "https://youtu.be/dQw4w9WgXcQ" + - + # This group is entirely hidden, so all routes under it are hidden. + name: "Hidden group" + hidden: true + routes: + sneaky: "https://nyan.cat"