Avoid using unnecessary prompts

Problem with long paths.
pull/487/head
Arijit Basu 2 years ago
parent a2f246f61e
commit 4c4d3843e9
No known key found for this signature in database
GPG Key ID: 0F8EF5258DC38077

@ -1144,7 +1144,6 @@ xplr.config.modes.builtin.default = {
{ {
BashExecSilently = [===[ BashExecSilently = [===[
NAME=$(basename "${XPLR_FOCUS_PATH:?}") NAME=$(basename "${XPLR_FOCUS_PATH:?}")
echo SetInputPrompt: "'"${NAME:?} "'" >> "${XPLR_PIPE_MSG_IN:?}"
echo SetInputBuffer: "'"${NAME:?}"'" >> "${XPLR_PIPE_MSG_IN:?}" echo SetInputBuffer: "'"${NAME:?}"'" >> "${XPLR_PIPE_MSG_IN:?}"
]===], ]===],
}, },
@ -1158,7 +1157,6 @@ xplr.config.modes.builtin.default = {
{ {
BashExecSilently = [===[ BashExecSilently = [===[
NAME=$(basename "${XPLR_FOCUS_PATH:?}") NAME=$(basename "${XPLR_FOCUS_PATH:?}")
echo SetInputPrompt: "'"${NAME:?} "'" >> "${XPLR_PIPE_MSG_IN:?}"
echo SetInputBuffer: "'"${NAME:?}"'" >> "${XPLR_PIPE_MSG_IN:?}" echo SetInputBuffer: "'"${NAME:?}"'" >> "${XPLR_PIPE_MSG_IN:?}"
]===], ]===],
}, },
@ -1739,7 +1737,6 @@ xplr.config.modes.builtin.go_to = {
"PopMode", "PopMode",
{ SwitchModeBuiltin = "go_to_path" }, { SwitchModeBuiltin = "go_to_path" },
{ SetInputBuffer = "" }, { SetInputBuffer = "" },
{ SetInputPrompt = " " },
}, },
}, },
x = { x = {

Loading…
Cancel
Save