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

Can ctrl-c with copy_or_interrupt have an option to deselect after copy? #2403

Closed
jasoncwold opened this issue Feb 28, 2020 · 1 comment
Closed

Comments

@jasoncwold
Copy link

I keep running into this situation:

  1. select text and paste to command line and run command
  2. realize I just made a mistake so panic and hit ctrl-c...it does nothing
  3. click in the window somewhere to deselect
  4. ctrl-c

Would be awesome if there was an option where after I hit ctrl-c to copy a selection the terminal deselected the text so ctrl-c would again send interrupt. I say optional because I know some people might be annoyed at losing the selection...

@jasoncwold
Copy link
Author

I will try to add this when I get a chance.

It looks like I can maybe make a clear_selection function in screen that jsut does:

self->is_dirty = true;
self->selection = EMPTY_SELECTION;

and then optionaly call that in window/copy_or_interrupt()

based on a new config option?

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

1 participant