Files
mpv-config/script-opts/file-browser-keybinds.json
2026-03-27 07:06:16 +01:00

193 lines
5.3 KiB
JSON

[
{
"key": "WHEEL_UP",
"command": ["script-binding", "file_browser/dynamic/scroll_up"]
},
{
"key": "WHEEL_DOWN",
"command": ["script-binding", "file_browser/dynamic/scroll_down"]
},
{
"key": "MBTN_LEFT",
"command": ["script-binding", "file_browser/dynamic/down_dir"]
},
{
"key": "MBTN_RIGHT",
"command": ["script-binding", "file_browser/dynamic/up_dir"]
},
{
"key": "MBTN_MID",
"command": ["script-binding", "file_browser/dynamic/play"]
},
{
"key": "KP1",
"command": ["print-text", "files: %n"],
"filter": "file",
"multiselect": true,
"multi-type": "concat",
"concat-string": "\n"
},
{
"key": "KP1",
"command": ["print-text", "directories: %n"],
"filter": "dir",
"multiselect": true,
"multi-type": "concat",
"concat-string": "\n"
},
{
"key": "KP1",
"command": ["print-text", "%f"],
"passthrough": true,
"name": "thing"
},
{
"key": "KP2",
"command": ["print-text", "name: %n"],
"multiselect": true
},
{
"key": "KP3",
"command": ["print-text", "open directory: %p"]
},
{
"key": "KP4",
"command": ["print-text", "directory name: %d"]
},
{
"key": "KP5",
"command": ["print-text", "escape the code: %%f"],
"multiselect": true
},
{
"key": "KP6",
"command": ["print-text", "full filepath via concatenation: %p%n"],
"multiselect": true
},
{
"key": "KP7",
"command": ["print-text", "quote/escape filepath: %F"],
"multiselect": true
},
{
"key": "KP8",
"command": ["print-text", "%r"]
},
{
"key": "Alt+DEL",
"command": ["run", "powershell", "-command", "rm", "%F"],
"filter": "file",
"multiselect": true,
"multi-type": "concat"
},
{
"key": "Ctrl+ENTER",
"command": ["run", "powershell", "-command", "mpv.exe", "%F"],
"multiselect": true,
"multi-type": "concat"
},
{
"key": "Ctrl+c",
"command": [
["run", "powershell", "-command", "Set-Clipboard", "%F"],
["print-text", "copied filepath to clipboard"]
],
"multiselect": true,
"delay": 0.3
},
{
"key": "Ctrl+v",
"command": ["run", "powershell", "-command", "cp", "-LiteralPath", "(Get-Clipboard)", "%P"],
"multiselect": false
},
{
"key": "Ctrl+x",
"command": ["run", "powershell", "-command", "mv", "-LiteralPath", "(Get-Clipboard)", "%P"],
"multiselect": false
},
{
"key": "INS",
"command": ["run", "powershell", "-command", "Set-Content", "-LiteralPath", "( %P + '/.ordered-chapters.m3u' )", "-Value", "( %N )"],
"multiselect": true,
"multi-type": "concat",
"concat-string": "+'\n'+"
},
{
"key": "Ctrl+INS",
"command": ["run", "powershell", "-command", "rm", "-LiteralPath", "( %P + '/.ordered-chapters.m3u' )", "-Force"],
"multiselect": false
},
{
"key": "Ctrl+o",
"command": ["run", "powershell", "-command", "explorer.exe", "(( %P ).TrimEnd('/') -replace '/', '\\' )"],
"multiselect": false
},
{
"key": "Ctrl+O",
"command": ["run", "powershell", "-command", "explorer.exe", "(( %F ).TrimEnd('/') -replace '/', '\\' )"],
"filter": "dir",
"multiselect": true
},
{
"key": "Ctrl+O",
"command": ["run", "powershell", "-command", "explorer.exe", "'/select,'", "( %F -replace '/', '\\' )"],
"filter": "file",
"multiselect": true
},
{
"key": "Ctrl+o",
"command": ["run", "powershell", "-command", "& 'C:/Program Files/Mozilla Firefox/firefox.exe' %P"],
"multiselect": false,
"parser": "ftp"
},
{
"key": "Ctrl+O",
"command": ["run", "powershell", "-command", "& 'C:/Program Files/Mozilla Firefox/firefox.exe' %F"],
"filter": "dir",
"multiselect": true,
"parser": "ftp"
},
{
"key": "DEL",
"command": [
["run", "powershell", "-command", "(New-Object -ComObject 'Shell.Application').NameSpace(0).ParseName((%F -replace '/', '\\' )).InvokeVerb('delete')"],
["script-message", "delay-command", "4", "script-binding", "file_browser/dynamic/reload"],
["show-text", "删除 %f"]
],
"multiselect": true,
"multi-type": "repeat"
},
{
"key": "F",
"command": ["script-message", "favourites/add_favourite", "%f"]
},
{
"key": "F",
"command": ["script-message", "favourites/remove_favourite", "%f"],
"parser": "favourites"
},
{
"key": "Ctrl+UP",
"command": [
["script-message", "favourites/move_up", "%f"]
],
"parser": "favourites"
},
{
"key": "Ctrl+DOWN",
"command": [
["script-message", "favourites/move_down", "%f"]
],
"parser": "favourites"
},
{
"key": "Ctrl+r",
"command": [
["script-message", "winroot/import_root_drives"]
],
"parser": "root"
}
]