|
|
|
@ -1048,7 +1048,7 @@ xplr.config.modes.builtin.default = {
|
|
|
|
|
BashExec = [===[
|
|
|
|
|
[ -z "$PAGER" ] && PAGER="less -+F"
|
|
|
|
|
cat -- "${XPLR_PIPE_GLOBAL_HELP_MENU_OUT}" | ${PAGER:?}
|
|
|
|
|
]===],
|
|
|
|
|
]===] ,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
@ -1157,7 +1157,7 @@ xplr.config.modes.builtin.default = {
|
|
|
|
|
BashExecSilently0 = [===[
|
|
|
|
|
NAME=$(basename "${XPLR_FOCUS_PATH:?}")
|
|
|
|
|
"$XPLR" -m 'SetInputBuffer: %q' "${NAME:?}"
|
|
|
|
|
]===],
|
|
|
|
|
]===] ,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
@ -1170,7 +1170,7 @@ xplr.config.modes.builtin.default = {
|
|
|
|
|
BashExecSilently0 = [===[
|
|
|
|
|
NAME=$(basename "${XPLR_FOCUS_PATH:?}")
|
|
|
|
|
"$XPLR" -m 'SetInputBuffer: %q' "${NAME:?}"
|
|
|
|
|
]===],
|
|
|
|
|
]===] ,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
@ -1206,7 +1206,7 @@ xplr.config.modes.builtin.default = {
|
|
|
|
|
{
|
|
|
|
|
BashExecSilently0 = [===[
|
|
|
|
|
"$XPLR" -m 'ChangeDirectory: %q' "${HOME:?}"
|
|
|
|
|
]===],
|
|
|
|
|
]===] ,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
@ -1247,21 +1247,21 @@ xplr.config.modes.builtin.default = {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
xplr.config.modes.builtin.default.key_bindings.on_key["tab"] =
|
|
|
|
|
xplr.config.modes.builtin.default.key_bindings.on_key["ctrl-i"]
|
|
|
|
|
xplr.config.modes.builtin.default.key_bindings.on_key["ctrl-i"]
|
|
|
|
|
xplr.config.modes.builtin.default.key_bindings.on_key["v"] =
|
|
|
|
|
xplr.config.modes.builtin.default.key_bindings.on_key["space"]
|
|
|
|
|
xplr.config.modes.builtin.default.key_bindings.on_key["space"]
|
|
|
|
|
xplr.config.modes.builtin.default.key_bindings.on_key["V"] =
|
|
|
|
|
xplr.config.modes.builtin.default.key_bindings.on_key["ctrl-a"]
|
|
|
|
|
xplr.config.modes.builtin.default.key_bindings.on_key["ctrl-a"]
|
|
|
|
|
xplr.config.modes.builtin.default.key_bindings.on_key["/"] =
|
|
|
|
|
xplr.config.modes.builtin.default.key_bindings.on_key["ctrl-f"]
|
|
|
|
|
xplr.config.modes.builtin.default.key_bindings.on_key["ctrl-f"]
|
|
|
|
|
xplr.config.modes.builtin.default.key_bindings.on_key["h"] =
|
|
|
|
|
xplr.config.modes.builtin.default.key_bindings.on_key["left"]
|
|
|
|
|
xplr.config.modes.builtin.default.key_bindings.on_key["left"]
|
|
|
|
|
xplr.config.modes.builtin.default.key_bindings.on_key["j"] =
|
|
|
|
|
xplr.config.modes.builtin.default.key_bindings.on_key["down"]
|
|
|
|
|
xplr.config.modes.builtin.default.key_bindings.on_key["down"]
|
|
|
|
|
xplr.config.modes.builtin.default.key_bindings.on_key["k"] =
|
|
|
|
|
xplr.config.modes.builtin.default.key_bindings.on_key["up"]
|
|
|
|
|
xplr.config.modes.builtin.default.key_bindings.on_key["up"]
|
|
|
|
|
xplr.config.modes.builtin.default.key_bindings.on_key["l"] =
|
|
|
|
|
xplr.config.modes.builtin.default.key_bindings.on_key["right"]
|
|
|
|
|
xplr.config.modes.builtin.default.key_bindings.on_key["right"]
|
|
|
|
|
|
|
|
|
|
-- The builtin debug error mode.
|
|
|
|
|
--
|
|
|
|
@ -1294,7 +1294,7 @@ xplr.config.modes.builtin.debug_error = {
|
|
|
|
|
|
|
|
|
|
To disable this mode, set `xplr.config.general.disable_debug_error_mode`
|
|
|
|
|
to `true` in your config file.
|
|
|
|
|
]],
|
|
|
|
|
]] ,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
@ -1311,7 +1311,7 @@ xplr.config.modes.builtin.debug_error = {
|
|
|
|
|
{
|
|
|
|
|
BashExec = [===[
|
|
|
|
|
cat "${XPLR_PIPE_LOGS_OUT:?}" | ${EDITOR:-vi} -
|
|
|
|
|
]===],
|
|
|
|
|
]===] ,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
@ -1347,7 +1347,7 @@ xplr.config.modes.builtin.recover = {
|
|
|
|
|
|
|
|
|
|
To disable this mode, set `xplr.config.general.enable_recover_mode`
|
|
|
|
|
to `false` in your config file.
|
|
|
|
|
]],
|
|
|
|
|
]] ,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
@ -1380,7 +1380,7 @@ xplr.config.modes.builtin.go_to_path = {
|
|
|
|
|
else
|
|
|
|
|
"$XPLR" -m 'LogError: %q' "could not find $PTH_ESC"
|
|
|
|
|
fi
|
|
|
|
|
]===],
|
|
|
|
|
]===] ,
|
|
|
|
|
},
|
|
|
|
|
"PopMode",
|
|
|
|
|
},
|
|
|
|
@ -1424,7 +1424,7 @@ xplr.config.modes.builtin.selection_ops = {
|
|
|
|
|
"$XPLR" -m ExplorePwdAsync
|
|
|
|
|
"$XPLR" -m ClearSelection
|
|
|
|
|
read -p "[enter to continue]"
|
|
|
|
|
]===],
|
|
|
|
|
]===] ,
|
|
|
|
|
},
|
|
|
|
|
"PopMode",
|
|
|
|
|
},
|
|
|
|
@ -1444,7 +1444,7 @@ xplr.config.modes.builtin.selection_ops = {
|
|
|
|
|
done < "${XPLR_PIPE_SELECTION_OUT:?}")
|
|
|
|
|
"$XPLR" -m ExplorePwdAsync
|
|
|
|
|
read -p "[enter to continue]"
|
|
|
|
|
]===],
|
|
|
|
|
]===] ,
|
|
|
|
|
},
|
|
|
|
|
"PopMode",
|
|
|
|
|
},
|
|
|
|
@ -1518,7 +1518,7 @@ xplr.config.modes.builtin.create_directory = {
|
|
|
|
|
else
|
|
|
|
|
"$XPLR" -m PopMode
|
|
|
|
|
fi
|
|
|
|
|
]===],
|
|
|
|
|
]===] ,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
@ -1562,7 +1562,7 @@ xplr.config.modes.builtin.create_file = {
|
|
|
|
|
else
|
|
|
|
|
"$XPLR" -m PopMode
|
|
|
|
|
fi
|
|
|
|
|
]===],
|
|
|
|
|
]===] ,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
@ -1620,9 +1620,9 @@ xplr.config.modes.builtin.number = {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
xplr.config.modes.builtin.number.key_bindings.on_key["j"] =
|
|
|
|
|
xplr.config.modes.builtin.number.key_bindings.on_key["down"]
|
|
|
|
|
xplr.config.modes.builtin.number.key_bindings.on_key["down"]
|
|
|
|
|
xplr.config.modes.builtin.number.key_bindings.on_key["k"] =
|
|
|
|
|
xplr.config.modes.builtin.number.key_bindings.on_key["up"]
|
|
|
|
|
xplr.config.modes.builtin.number.key_bindings.on_key["up"]
|
|
|
|
|
|
|
|
|
|
-- The builtin go to mode.
|
|
|
|
|
--
|
|
|
|
@ -1661,7 +1661,7 @@ xplr.config.modes.builtin.go_to = {
|
|
|
|
|
{
|
|
|
|
|
BashExecSilently0 = [===[
|
|
|
|
|
"$XPLR" -m 'ChangeDirectory: %q' "${XPLR_INITIAL_PWD:?}"
|
|
|
|
|
]===],
|
|
|
|
|
]===] ,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
@ -1683,7 +1683,7 @@ xplr.config.modes.builtin.go_to = {
|
|
|
|
|
(while IFS= read -r -d '' PTH; do
|
|
|
|
|
$OPENER "${PTH:?}" > /dev/null 2>&1
|
|
|
|
|
done < "${XPLR_PIPE_RESULT_OUT:?}")
|
|
|
|
|
]===],
|
|
|
|
|
]===] ,
|
|
|
|
|
},
|
|
|
|
|
"ClearScreen",
|
|
|
|
|
"PopMode",
|
|
|
|
@ -1723,7 +1723,7 @@ xplr.config.modes.builtin.rename = {
|
|
|
|
|
&& "$XPLR" -m 'FocusPath: %q' "$TARGET" \
|
|
|
|
|
&& "$XPLR" -m 'LogSuccess: %q' "$SRC_ESC renamed to $TARGET_ESC"
|
|
|
|
|
fi
|
|
|
|
|
]===],
|
|
|
|
|
]===] ,
|
|
|
|
|
},
|
|
|
|
|
"PopMode",
|
|
|
|
|
},
|
|
|
|
@ -1767,7 +1767,7 @@ xplr.config.modes.builtin.duplicate_as = {
|
|
|
|
|
&& "$XPLR" -m 'FocusPath: %q' "$TARGET_ESC" \
|
|
|
|
|
&& "$XPLR" -m 'LogSuccess: %q' "$SRC_ESC duplicated as $TARGET_ESC"
|
|
|
|
|
fi
|
|
|
|
|
]===],
|
|
|
|
|
]===] ,
|
|
|
|
|
},
|
|
|
|
|
"PopMode",
|
|
|
|
|
},
|
|
|
|
@ -1804,7 +1804,7 @@ xplr.config.modes.builtin.delete = {
|
|
|
|
|
done < "${XPLR_PIPE_RESULT_OUT:?}")
|
|
|
|
|
"$XPLR" -m ExplorePwdAsync
|
|
|
|
|
read -p "[enter to continue]"
|
|
|
|
|
]===],
|
|
|
|
|
]===] ,
|
|
|
|
|
},
|
|
|
|
|
"PopMode",
|
|
|
|
|
},
|
|
|
|
@ -1832,7 +1832,7 @@ xplr.config.modes.builtin.delete = {
|
|
|
|
|
done < "${XPLR_PIPE_RESULT_OUT:?}")
|
|
|
|
|
"$XPLR" -m ExplorePwdAsync
|
|
|
|
|
read -p "[enter to continue]"
|
|
|
|
|
]===],
|
|
|
|
|
]===] ,
|
|
|
|
|
},
|
|
|
|
|
"PopMode",
|
|
|
|
|
},
|
|
|
|
@ -1870,7 +1870,7 @@ xplr.config.modes.builtin.action = {
|
|
|
|
|
{
|
|
|
|
|
BashExec0 = [===[
|
|
|
|
|
${EDITOR:-vi} "${XPLR_FOCUS_PATH:?}"
|
|
|
|
|
]===],
|
|
|
|
|
]===] ,
|
|
|
|
|
},
|
|
|
|
|
"PopMode",
|
|
|
|
|
},
|
|
|
|
@ -1882,7 +1882,7 @@ xplr.config.modes.builtin.action = {
|
|
|
|
|
BashExec = [===[
|
|
|
|
|
[ -z "$PAGER" ] && PAGER="less -+F"
|
|
|
|
|
cat -- "${XPLR_PIPE_LOGS_OUT}" | ${PAGER:?}
|
|
|
|
|
]===],
|
|
|
|
|
]===] ,
|
|
|
|
|
},
|
|
|
|
|
"PopMode",
|
|
|
|
|
},
|
|
|
|
@ -2036,9 +2036,9 @@ xplr.config.modes.builtin.search = {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
xplr.config.modes.builtin.search.key_bindings.on_key["ctrl-n"] =
|
|
|
|
|
xplr.config.modes.builtin.search.key_bindings.on_key["down"]
|
|
|
|
|
xplr.config.modes.builtin.search.key_bindings.on_key["down"]
|
|
|
|
|
xplr.config.modes.builtin.search.key_bindings.on_key["ctrl-p"] =
|
|
|
|
|
xplr.config.modes.builtin.search.key_bindings.on_key["up"]
|
|
|
|
|
xplr.config.modes.builtin.search.key_bindings.on_key["up"]
|
|
|
|
|
|
|
|
|
|
-- The builtin filter mode.
|
|
|
|
|
--
|
|
|
|
@ -2369,7 +2369,7 @@ xplr.config.modes.builtin.vroot = {
|
|
|
|
|
{
|
|
|
|
|
BashExecSilently0 = [===[
|
|
|
|
|
"$XPLR" -m 'SetVroot: %q' "${PWD:?}"
|
|
|
|
|
]===],
|
|
|
|
|
]===] ,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
@ -2387,7 +2387,7 @@ xplr.config.modes.builtin.vroot = {
|
|
|
|
|
{
|
|
|
|
|
BashExecSilently0 = [===[
|
|
|
|
|
"$XPLR" -m 'SetVroot: %q' "${HOME:?}"
|
|
|
|
|
]===],
|
|
|
|
|
]===] ,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
@ -2703,6 +2703,8 @@ xplr.fn.custom = {}
|
|
|
|
|
-- { LogSuccess = "Changed focus" },
|
|
|
|
|
-- { CallLuaSilently = "custom.some_plugin_with_hooks.on_focus_change" },
|
|
|
|
|
-- }
|
|
|
|
|
--
|
|
|
|
|
-- ...
|
|
|
|
|
-- }
|
|
|
|
|
-- ```
|
|
|
|
|
|
|
|
|
@ -2710,4 +2712,6 @@ return {
|
|
|
|
|
on_load = {},
|
|
|
|
|
on_directory_change = {},
|
|
|
|
|
on_focus_change = {},
|
|
|
|
|
on_mode_switch = {},
|
|
|
|
|
on_layout_switch = {},
|
|
|
|
|
}
|
|
|
|
|