Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

[Bug]: sending the cd command to other tmux panes should clear the command line first #45

Open
1 task done
mrjones2014 opened this issue Jan 11, 2022 · 2 comments
Open
1 task done
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@mrjones2014
Copy link
Owner

Similar Issues

  • Before filing, I have searched for similar issues.

Description

If you already have a command typed but not yet run, it messes with the tmux integration. See gif example:

CleanShot-2022-01-11-at-14 21 40

Shell + Version

fish, version 3.3.1-838-g1eb58f905

Minimal Configuration to Reproduce

ctrlg init fish | source

Additional Details

We'd need a way to clear the line before sending our command. Or simply abort if the line isn't empty.

@mrjones2014 mrjones2014 added the bug Something isn't working label Jan 11, 2022
@mrjones2014 mrjones2014 self-assigned this Jan 11, 2022
@mrjones2014
Copy link
Owner Author

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.

@mrjones2014 mrjones2014 removed their assignment Jan 11, 2022
@mrjones2014
Copy link
Owner Author

Maybe it can be a config option between using ctrl+u to clear the line vs ctrl+c

@mrjones2014 mrjones2014 added the good first issue Good for newcomers label Jan 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant