118 lines
3.3 KiB
JSON
118 lines
3.3 KiB
JSON
[
|
|
{
|
|
"key": "KP1",
|
|
"command": ["print-text", "file: %f"],
|
|
"multiselect": true
|
|
},
|
|
{
|
|
"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
|
|
},
|
|
|
|
|
|
{
|
|
"comment": "deletes the currently selected file",
|
|
"key": "Alt+DEL",
|
|
"command": ["run", "rm", "%F"],
|
|
"filter": "file",
|
|
"multiselect": true,
|
|
"multi-type": "concat"
|
|
},
|
|
{
|
|
"comment": "opens the currently selected items in a new mpv window",
|
|
"key": "Ctrl+ENTER",
|
|
"command": ["run", "mpv", "%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
|
|
},
|
|
{
|
|
"comment": "Opens the current directory in windows explorer",
|
|
"key": "Ctrl+o",
|
|
"command": ["run", "powershell", "-command", "explorer.exe", "(( %P ).TrimEnd('/') -replace '/', '\\' )"],
|
|
"multiselect": false
|
|
},
|
|
{
|
|
"comment": "Opens the selected directory in windows explorer",
|
|
"key": "Ctrl+O",
|
|
"command": ["run", "powershell", "-command", "explorer.exe", "(( %F ).TrimEnd('/') -replace '/', '\\' )"],
|
|
"filter": "dir",
|
|
"multiselect": true
|
|
},
|
|
{
|
|
"comment": "Opens the current directory in windows explorer and highlights the currently selected file",
|
|
"key": "Ctrl+O",
|
|
"command": ["run", "powershell", "-command", "explorer.exe", "'/select,'", "( %F -replace '/', '\\' )"],
|
|
"filter": "file",
|
|
"multiselect": true
|
|
},
|
|
{
|
|
"key": "INS",
|
|
"command": ["run", "powershell", "-command", "Set-Content", "-LiteralPath", "( %P + '/.ordered-chapters.m3u' )", "-Value", "( %N )"],
|
|
"multiselect": true,
|
|
"multi-type": "concat",
|
|
"concat-string": "+ '\n' +"
|
|
},
|
|
|
|
|
|
{
|
|
"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": "UP",
|
|
"command": ["osd-auto", "add", "volume", "2"]
|
|
},
|
|
{
|
|
"key": "DOWN",
|
|
"command": ["osd-auto", "add", "volume", "-2"]
|
|
}
|
|
] |