diff --git a/src/init.lua b/src/init.lua index fc15020..e434fbd 100644 --- a/src/init.lua +++ b/src/init.lua @@ -1561,10 +1561,10 @@ xplr.config.modes.builtin.create_file = { if [ "$PTH" ]; then mkdir -p -- "$(dirname $PTH)" \ && touch -- "$PTH" \ - && printf "SetInputBuffer: ''\0" >> "${XPLR_PIPE_MSG_IN:?}" \ - && printf "LogSuccess: %s\0" "$PTH created" >> "${XPLR_PIPE_MSG_IN:?}" \ - && printf "ExplorePwd\0" >> "${XPLR_PIPE_MSG_IN:?}" \ - && printf "FocusPath: %s\0" "$PTH" >> "${XPLR_PIPE_MSG_IN:?}" + && printf 'SetInputBuffer: ""\0' >> "${XPLR_PIPE_MSG_IN:?}" \ + && printf 'LogSuccess: "%s"\0' "$PTH_ESC created" >> "${XPLR_PIPE_MSG_IN:?}" \ + && printf 'ExplorePwd\0' >> "${XPLR_PIPE_MSG_IN:?}" \ + && printf 'FocusPath: "%s"\0' "$PTH_ESC" >> "${XPLR_PIPE_MSG_IN:?}" else printf "PopMode\0" >> "${XPLR_PIPE_MSG_IN:?}" fi diff --git a/src/msg/in_/external.rs b/src/msg/in_/external.rs index fe79969..d0dbb23 100644 --- a/src/msg/in_/external.rs +++ b/src/msg/in_/external.rs @@ -1084,9 +1084,13 @@ impl ExternalMsg { !matches!( self, Self::Call(_) + | Self::Call0(_) | Self::CallSilently(_) + | Self::Call0Silently(_) | Self::BashExec(_) + | Self::BashExec0(_) | Self::BashExecSilently(_) + | Self::BashExec0Silently(_) | Self::CallLua(_) | Self::CallLuaSilently(_) | Self::LuaEval(_)