[QB] Back to default-like shortcuts

This commit is contained in:
Gregory Trolliet 2022-10-26 18:15:16 +02:00
parent 4524c693f2
commit 6a0bcd7316

View file

@ -14,19 +14,19 @@ c.qt.args = ["blink-settings=darkMode=1"]
c.auto_save.session = True
# Bindings
config.bind('o', 'set-cmd-text -s :open', mode='normal')
config.bind('O', 'set-cmd-text -s :open {url:pretty}', mode='normal')
config.bind('w', 'set-cmd-text -s :open -t', mode='normal')
config.bind('W', 'set-cmd-text -s :open -t {url:pretty}', mode='normal')
config.bind('Fy', 'hint links yank-primary', mode='normal')
config.bind('yy', 'yank -s', mode='normal')
config.bind('Ev', 'spawn --detach mpv --script-opts=ytdl_hook-ytdl_path=yt-dlp --ytdl-raw-options=format-sort=height:480 {url}', mode='normal')
config.bind('EV', 'spawn --detach mpv --script-opts=ytdl_hook-ytdl_path=yt-dlp --ytdl-raw-options=format-sort=height:1080 {url}', mode='normal')
config.bind('Ea', 'spawn --detach mpv --script-opts=ytdl_hook-ytdl_path=yt-dlp --no-video --force-window=yes {url}', mode='normal')
config.bind('Fv', 'hint links spawn --detach mpv --script-opts=ytdl_hook-ytdl_path=yt-dlp --ytdl-raw-options=format-sort=height:480 {hint-url}', mode='normal')
config.bind('FV', 'hint links spawn --detach mpv --script-opts=ytdl_hook-ytdl_path=yt-dlp --ytdl-raw-options=format-sort=height:1080 {hint-url}', mode='normal')
config.bind('Fa', 'hint links spawn --detach mpv --script-opts=ytdl_hook-ytdl_path=yt-dlp --no-video --force-window=yes {hint-url}', mode='normal')
config.unbind('F')
#config.bind('o', 'set-cmd-text -s :open', mode='normal')
#config.bind('O', 'set-cmd-text -s :open {url:pretty}', mode='normal')
#config.bind('w', 'set-cmd-text -s :open -t', mode='normal')
#config.bind('W', 'set-cmd-text -s :open -t {url:pretty}', mode='normal')
#config.bind('Fy', 'hint links yank-primary', mode='normal')
#config.bind('yy', 'yank -s', mode='normal')
config.bind(',vl', 'hint links spawn --detach mpv --script-opts=ytdl_hook-ytdl_path=yt-dlp --ytdl-raw-options=format-sort=height:480 {hint-url}', mode='normal')
config.bind(',Vl', 'spawn --detach mpv --script-opts=ytdl_hook-ytdl_path=yt-dlp --ytdl-raw-options=format-sort=height:480 {url}', mode='normal')
config.bind(',vh', 'hint links spawn --detach mpv --script-opts=ytdl_hook-ytdl_path=yt-dlp --ytdl-raw-options=format-sort=height:1080 {hint-url}', mode='normal')
config.bind(',Vh', 'spawn --detach mpv --script-opts=ytdl_hook-ytdl_path=yt-dlp --ytdl-raw-options=format-sort=height:1080 {url}', mode='normal')
config.bind(',a', 'hint links spawn --detach mpv --script-opts=ytdl_hook-ytdl_path=yt-dlp --no-video --force-window=yes {hint-url}', mode='normal')
config.bind(',A', 'spawn --detach mpv --script-opts=ytdl_hook-ytdl_path=yt-dlp --no-video --force-window=yes {url}', mode='normal')
#config.unbind('F')
config.bind('<Backspace>', 'back', mode='normal')
config.bind('<Shift-Backspace>', 'forward', mode='normal')
config.bind('<Control-Tab>', 'tab-next', mode='normal')