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

feat: make more commands exit select mode #8689

Merged
merged 6 commits into from
Nov 18, 2023

Conversation

rmehri01
Copy link
Contributor

@rmehri01 rmehri01 commented Nov 1, 2023

Fixes #8687

The issue also mentioned that paste exits select mode but I don't think that is the case, only replace seems to. Should we also add exiting select mode to paste or any other commands?

@the-mikedavis
Copy link
Member

Yeah, I think in general if we're making edits then we should exit select mode (also see #3932 (comment), and never mind #3932 (comment) - I've changed my mind since then). Having paste exit select mode definitely makes sense since we already exit select mode on replace.

@rmehri01
Copy link
Contributor Author

rmehri01 commented Nov 3, 2023

I see, that makes sense, thanks! In that case, I think some other good candidates along with paste could be replace_selections_with_clipboard (seems that replace_with_yanked exits select but not replace with clipboard), switch_case, increment/decrement, and maybe also align_selections?

@rmehri01 rmehri01 changed the title feat: make indent/unindent exit select mode feat: make more commands exit select mode Nov 5, 2023
@kirawi kirawi added S-waiting-on-review Status: Awaiting review from a maintainer. A-command Area: Commands labels Nov 17, 2023
@the-mikedavis the-mikedavis merged commit 6bf5548 into helix-editor:master Nov 18, 2023
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-command Area: Commands S-waiting-on-review Status: Awaiting review from a maintainer.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Indent/unindent should exit select mode
4 participants