From cf5e834abc42fb6bbc0c51da930641e5d0fc6016 Mon Sep 17 00:00:00 2001 From: Georg Jaehnig Date: Wed, 29 Apr 2020 19:21:57 +0200 Subject: [PATCH] Add shortcuts.yml. --- shortcuts.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 shortcuts.yml diff --git a/shortcuts.yml b/shortcuts.yml new file mode 100644 index 0000000..15321a2 --- /dev/null +++ b/shortcuts.yml @@ -0,0 +1,27 @@ +# This is a YAML file, more abouts its syntax: https://en.wikipedia.org/wiki/YAML + +# First example shortcut: Short notation. +# Use +# +# KEYWORDNAME ARGCOUNT +# +# as the key, and the target URL as the value. +# This shortcut will match for "examplekeyword" with no arguments. +examplekeyword 0: http://www.example.com/ + +# This shortcut will match for "examplekeyword foo", +# so for the same keyword but with one argument. +examplekeyword 1: http://www.example.com/?q={%query} + +# Another example: extended notation +# This shortcut will match for "examplekeyword foo, bar", +# Here you can define optional title, description and tags. +examplekeyword 2: +- url: http://www.example.com/?q={%query}&p={%puery} +- title: Custom shortcut +- description: My custom shortcut with the keyword examplekeyword and 1 argument +- tags: + - example + +# Make sure that the keys are unique, +# e.g. that the every "KEYWORDNAME ARGCOUNT" is only used once in this file.