Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clear line when new vimux command is run? #8

Closed
phinze opened this issue Apr 11, 2012 · 2 comments
Closed

clear line when new vimux command is run? #8

phinze opened this issue Apr 11, 2012 · 2 comments

Comments

@phinze
Copy link

phinze commented Apr 11, 2012

So if I pop down to the vimux window and mess with it, or if I accidentally focus it and toss some gunk in the window, the next vimux command will fail because it sends the command after the gunk.

I'm wondering if vimux should send a ^U to the window to clear the current command line before sending its command. Maybe even a ^E^U so it doesn't matter if the cursor is in the middle of the line.

This would obviously not work for non-emacs-style shells, so I guess it would have to be configurable.

Does it seem like a worthwhile feature though? If so will take a shot at a pull request.

@benmills
Copy link
Collaborator

I've run into this problem as well but I didn't think about sending it a ^E^U, that is a great idea! That might also be able to ensure the vimux window isn't in scroll-mode before running the command by sending q^E^U.

@pgr0ss
Copy link
Contributor

pgr0ss commented Apr 17, 2012

You don't need the ^E since ^U clears the line regardless of cursor position.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants