# This setting can be used to map keys to other keys. When the key used
# as dictionary-key is pressed, the binding for the key used as
# dictionary-value is invoked instead. This is useful for global
# remappings of keys, for example to map Ctrl-[ to Escape. Note that
# when a key is bound (via `bindings.default` or `bindings.commands`),
# the mapping is ignored.
# Type: Dict
c.bindings.key_mappings = {
    "<Ctrl+6>": "<Ctrl+^>",
    "<Ctrl+Enter>": "<Ctrl+Return>",
    "<Ctrl+j>": "<Return>",
    "<Ctrl+m>": "<Return>",
    "<Ctrl+[>": "<Escape>",
    "<Enter>": "<Return>",
    "<Shift+Enter>": "<Return>",
    "<Shift+Return>": "<Return>",
}

config.bind("gh", "home", "normal")
config.bind("<Ctrl-Shift-J>", "tab-move +", "normal")
config.bind("<Ctrl-Shift-K>", "tab-move -", "normal")
config.bind(",y3", "hint links spawn mpv --ytdl-format='best[height=360]' {hint-url}", "normal")
config.bind(",y4", "hint links spawn mpv --ytdl-format='best[height=480]' {hint-url}", "normal")
config.bind(",y7", "hint links spawn mpv --ytdl-format='best[height=720]' {hint-url}", "normal")
config.bind(",y10", "hint links spawn mpv --ytdl-format='best[height=1080]' {hint-url}", "normal")

# This setting can be used to map keys to other keys. When the key used
# as dictionary-key is pressed, the binding for the key used as
# dictionary-value is invoked instead. This is useful for global
# remappings of keys, for example to map Ctrl-[ to Escape. Note that
# when a key is bound (via `bindings.default` or `bindings.commands`),
# the mapping is ignored.
# Type: Dict
c.bindings.key_mappings = {
    "<Ctrl+6>": "<Ctrl+^>",
    "<Ctrl+Enter>": "<Ctrl+Return>",
    "<Ctrl+j>": "<Return>",
    "<Ctrl+m>": "<Return>",
    "<Ctrl+[>": "<Escape>",
    "<Enter>": "<Return>",
    "<Shift+Enter>": "<Return>",
    "<Shift+Return>": "<Return>",
}

config.bind("gh", "home", "normal")
config.bind("<Ctrl-Shift-J>", "tab-move +", "normal")
config.bind("<Ctrl-Shift-K>", "tab-move -", "normal")
config.bind(",y3", "hint links spawn mpv --ytdl-format='best[height=360]' {hint-url}", "normal")
config.bind(",y4", "hint links spawn mpv --ytdl-format='best[height=480]' {hint-url}", "normal")
config.bind(",y7", "hint links spawn mpv --ytdl-format='best[height=720]' {hint-url}", "normal")
config.bind(",y10", "hint links spawn mpv --ytdl-format='best[height=1080]' {hint-url}", "normal")

# This setting can be used to map keys to other keys. When the key used # as dictionary-key is pressed, the binding for the key used as # dictionary-value is invoked instead. This is useful for global # remappings of keys, for example to map Ctrl-[ to Escape. Note that # when a key is bound (via `bindings.default` or `bindings.commands`), # the mapping is ignored. # Type: Dict