Skip to content

Is it possible to skip execution of empty command #420

Answered by akinomyoga
Jai-JAP asked this question in Q&A
Discussion options

You must be logged in to vote

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,

# 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'

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@Jai-JAP
Comment options

@Jai-JAP
Comment options

@akinomyoga
Comment options

@Jai-JAP
Comment options

@akinomyoga
Comment options

Answer selected by Jai-JAP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants