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

Add ctrl-z to suspend #464

Merged
merged 2 commits into from
Aug 3, 2021
Merged

Add ctrl-z to suspend #464

merged 2 commits into from
Aug 3, 2021

Conversation

pickfire
Copy link
Contributor

Not sure why but the cursor seemed to be gone be broken right after it suspend. tput reset does fix it.

Screenshot_20210717_224907

@pickfire pickfire force-pushed the suspend branch 6 times, most recently from 528c0de to 95d8871 Compare July 20, 2021 13:30
@pickfire
Copy link
Contributor Author

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.

helix-term/src/application.rs Outdated Show resolved Hide resolved
helix-term/src/application.rs Outdated Show resolved Hide resolved
helix-term/src/commands.rs Outdated Show resolved Hide resolved
@pickfire pickfire force-pushed the suspend branch 3 times, most recently from 9727b39 to 72bb537 Compare July 24, 2021 14:56
signal_hook_tokio::Signals,
};
#[cfg(windows)]
type Signals = futures_util::stream::Empty<()>;
Copy link
Contributor Author

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.

@pickfire
Copy link
Contributor Author

@archseer Thanks, with your commit seemed way better.

@@ -502,6 +502,7 @@ impl Default for Keymaps {
},

"\"" => select_register,
"C-z" => suspend,
Copy link
Member

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/

Copy link
Contributor Author

@pickfire pickfire Aug 2, 2021

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.

@archseer archseer merged commit 585793e into helix-editor:master Aug 3, 2021
@pickfire pickfire deleted the suspend branch August 3, 2021 08:40
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

Successfully merging this pull request may close these issues.

2 participants