-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Add ctrl-z to suspend #464
Conversation
528c0de
to
95d8871
Compare
Now will restore to block cursor on suspend, but not sure if it will affect people whose cursor isn't block by default. Not sure if there is any way to discover it. |
9727b39
to
72bb537
Compare
signal_hook_tokio::Signals, | ||
}; | ||
#[cfg(windows)] | ||
type Signals = futures_util::stream::Empty<()>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, I didn't know you mean like this. I thought you just do futures_util::stream::Empty
below instead.
@archseer Thanks, with your commit seemed way better. |
@@ -502,6 +502,7 @@ impl Default for Keymaps { | |||
}, | |||
|
|||
"\"" => select_register, | |||
"C-z" => suspend, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Document this in the book/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this is something that we need to explicitly document. Users will expect this to work since all cli is expected to use ctrl-z for suspend (at least I am not aware of any that does not support this). I did look into that but not sure which category to put last time.
Not sure why but the cursor seemed to be gone be broken right after it suspend.
tput reset
does fix it.