@ -330,11 +330,7 @@ impl Default for KeyBindings {
help : rename
messages :
- SwitchMode : rename
- Call :
command : bash
args :
- - c
- |
- BashExec : |
echo "SetInputBuffer: ${XPLR_FOCUS_PATH}" > > "${XPLR_PIPE_MSG_IN:?}"
"." :
@ -357,11 +353,7 @@ impl Default for KeyBindings {
"?" :
help : global help menu
messages :
- Call :
command : bash
args :
- - c
- |
- BashExec : |
echo - e "${XPLR_GLOBAL_HELP_MENU}"
echo
read - p "[enter to continue]"
@ -585,11 +577,7 @@ impl Default for Config {
x :
help : open in gui
messages :
- Call :
command : bash
args :
- - c
- |
- BashExec : |
xdg - open "${XPLR_FOCUS_PATH:?}" & > / dev / null
- SwitchMode : default
@ -638,11 +626,7 @@ impl Default for Config {
l :
help : logs
messages :
- Call :
command : bash
args :
- - c
- |
- BashExec : |
echo - e "$XPLR_LOGS"
read - p "[enter to continue]"
- SwitchMode : default
@ -671,11 +655,7 @@ impl Default for Config {
c :
help : copy here
messages :
- Call :
command : bash
args :
- - c
- |
- BashExec : |
( while IFS = read - r line ; do
if cp - v "${line:?}" . / ; then
echo "LogSuccess: $line copied to $PWD" > > "${XPLR_PIPE_MSG_IN:?}"
@ -691,11 +671,7 @@ impl Default for Config {
m :
help : move here
messages :
- Call :
command : bash
args :
- - c
- |
- BashExec : |
( while IFS = read - r line ; do
if mv - v "${line:?}" . / ; then
echo "LogSuccess: $line moved to $PWD" > > "${XPLR_PIPE_MSG_IN:?}"
@ -816,11 +792,7 @@ impl Default for Config {
enter :
help : create file
messages :
- Call :
command : bash
args :
- - c
- |
- BashExec : |
PTH = "${XPLR_INPUT_BUFFER:?}"
if touch "${PTH:?}" ; then
echo "LogSuccess: $PTH created" > > "${XPLR_PIPE_MSG_IN:?}"
@ -861,11 +833,7 @@ impl Default for Config {
enter :
help : create directory
messages :
- Call :
command : bash
args :
- - c
- |
- BashExec : |
PTH = "${XPLR_INPUT_BUFFER:?}"
if mkdir - p "$PTH" ; then
echo Explore > > "${XPLR_PIPE_MSG_IN:?}"
@ -905,16 +873,12 @@ impl Default for Config {
enter :
help : rename
messages :
- Call :
command : bash
args :
- - c
- |
SRC = "${XPLR_FOCUS_PATH:?}"
- BashExec : |
SRC = "$(basename ${XPLR_FOCUS_PATH:?})"
TARGET = "${XPLR_INPUT_BUFFER:?}"
if mv - v "${SRC:?}" "${TARGET:?}" ; then
echo Explore > > "${XPLR_PIPE_MSG_IN:?}"
echo "LogSuccess: $SRC renamed to $TARGET" > > "${XPLR_PIPE_MSG_IN:?}"
echo Explore > > "${XPLR_PIPE_MSG_IN:?}"
else
echo "LogError: failed to rename $SRC to $TARGET" > > "${XPLR_PIPE_MSG_IN:?}"
fi
@ -950,11 +914,7 @@ impl Default for Config {
d :
help : delete
messages :
- Call :
command : bash
args :
- - c
- |
- BashExec : |
( while IFS = read - r line ; do
if [ - d "$line" ] ; then
if rmdir - v "${line:?}" ; then
@ -977,11 +937,7 @@ impl Default for Config {
D :
help : force delete
messages :
- Call :
command : bash
args :
- - c
- |
- BashExec : |
( while IFS = read - r line ; do
if rm - rfv "${line:?}" ; then
echo "LogSuccess: $line deleted" > > "${XPLR_PIPE_MSG_IN:?}"