From a2f246f61e8f9573210c6f8b1ba0ea974db5b526 Mon Sep 17 00:00:00 2001 From: Arijit Basu Date: Sat, 4 Jun 2022 09:39:45 +0530 Subject: [PATCH] Improve the "duplicate as" prompt --- src/init.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/init.lua b/src/init.lua index 52df1fd..83f14b9 100644 --- a/src/init.lua +++ b/src/init.lua @@ -1157,7 +1157,9 @@ xplr.config.modes.builtin.default = { { SwitchModeBuiltin = "duplicate_as" }, { BashExecSilently = [===[ - echo SetInputBuffer: "'"$(basename "${XPLR_FOCUS_PATH}")"'" >> "${XPLR_PIPE_MSG_IN:?}" + NAME=$(basename "${XPLR_FOCUS_PATH:?}") + echo SetInputPrompt: "'"${NAME:?} ❯ "'" >> "${XPLR_PIPE_MSG_IN:?}" + echo SetInputBuffer: "'"${NAME:?}"'" >> "${XPLR_PIPE_MSG_IN:?}" ]===], }, },