Bindings.

This commit is contained in:
CronyAkatsuki 2023-11-06 13:53:42 +01:00
parent 2395807121
commit 737dac124c

View File

@ -86,3 +86,22 @@ with config.pattern("https://piped.cronyakatsuki.xyz/*") as s:
c.aliases = config.get("aliases")
c.aliases["buku"] = "spawn --userscript buku"
##-- Bindings --##
# launch with mpv
config.bind(",m", "spawn mpv {url}")
config.bind(",M", "hint links spawn mpv {hint-url}")
# buku bundings
config.bind("b", "buku open")
config.bind(",ba", "buku add")
config.bind(",be", "buku edit")
config.bind(",bd", "buku delete")
# yt-dlp
config.bind(",y", "spawn --userscript yt-dlp")
config.bind(",Y", "hint links userscript yt-dlp")
# search current selection
config.bind(",f", "open {primary}")
config.bind(",F", "open --tab {primary}")