Add examples to README
This commit is contained in:
parent
9a301f487a
commit
2ab8dd5fb9
11
README.md
11
README.md
|
@ -8,3 +8,14 @@ The [protocol.nim](./src/protocol.nim) file is generated from the [protocol.prs]
|
||||||
|
|
||||||
## TODO
|
## TODO
|
||||||
- Fallback commands?
|
- 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> |
|
||||||
|
|
Loading…
Reference in New Issue