Add examples to README

This commit is contained in:
Emery Hemingway 2022-05-26 17:12:44 -05:00
parent 9a301f487a
commit 2ab8dd5fb9
1 changed files with 11 additions and 0 deletions

View File

@ -8,3 +8,14 @@ The [protocol.nim](./src/protocol.nim) file is generated from the [protocol.prs]
## TODO
- Fallback commands?
## Examples
| Type | Rule |
|-|-|
| Bittorrent | <code><action-handler "magnet:?.*xt=urn:btih.*" ["transmission-remote-gtk" 0]></code> |
| Gemini | <code><action-handler "gemini://.*|file:///.*.gmi" ["/run/current-system/sw/bin/lagrange" 0]></code> |
| PDF | <code><action-handler "file://(.*.pdf)" ["mupdf" 1]></code> |
| Tox | <code><action-handler "tox:.*|uri:tox:.*", ["/nix/store/hix5jibhdzx0a2qbq5cqihac060zz10b-qtox-1.17.6/bin/qtox" 0]></code> |
| Twatter | <code><action-handler "https://twitter.com/(.*)" ["firefox" "--new-tab" "https://nitter.net/$1"]></code> |
| Video | <code><action-handler ".*\\.avi|.*\\.mkv|.*mp4|.*ogg|.*youtu.*|.*\\.m3u8|.*webm" ["mpv" "--no-terminal" "--force-window=immediate" "--loop-playlist" "--ytdl-format=best" 0]></code> |