Open mrjones2014 opened 2 years ago
We can send ctrl+u
via tmux send-keys -t "$pane" C-u
and that covers most cases. The case it doesn't cover is if the cursor isn't at the end of the line.
Maybe it can be a config option between using ctrl+u
to clear the line vs ctrl+c
Similar Issues
Description
If you already have a command typed but not yet run, it messes with the tmux integration. See gif example:
Shell + Version
Minimal Configuration to Reproduce
Additional Details
We'd need a way to clear the line before sending our command. Or simply abort if the line isn't empty.