Is it possible to skip execution of empty command #420
-
Currently (Atleast by default) its not possible to skip execution of empty commands (or just spaces) & it simply gives an empty prompt on pressing RET. Is there a way to skip execution of the current command if it is empty (or just whitespaces) when RET is pressed? |
Beta Was this translation helpful? Give feedback.
Answered by
akinomyoga
Mar 7, 2024
Replies: 1 comment 5 replies
-
It's already skipping the execution of the command. It just reprints the prompt in the current implementation. If you want to skip the reprinting, you can modify the behavior of # blerc
ble/function#advice around ble/widget/default/accept-line '
ble-edit/content/clear-arg
[[ ${_ble_edit_str//["$_ble_term_IFS"]} ]] && ble/function#advice/do' |
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
Jai-JAP
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's already skipping the execution of the command. It just reprints the prompt in the current implementation. If you want to skip the reprinting, you can modify the behavior of
ble/widget/default/accept-line
. For example,