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

Escape Deselect in Hybrid Mode #5364

Closed
shaunpatterson opened this issue Mar 5, 2016 · 5 comments
Closed

Escape Deselect in Hybrid Mode #5364

shaunpatterson opened this issue Mar 5, 2016 · 5 comments

Comments

@shaunpatterson
Copy link

In dotspacemacs-editing-style 'hybrid, if you go into insert mode, then use Shift+Arrows to select something, then press escape (multiple times) the selection does not deselect.

Vjjjj Selects something then deselect on ESC. Would be nice if the hybrid-started selection would do that as well.

@justbur
Copy link
Contributor

justbur commented Mar 5, 2016

Shift plus arrows does not put you in visual state, which explains the result. You can check that you get the same behavior with vim editing style, so this is not specific to hybrid.

@shaunpatterson
Copy link
Author

Yeah, it's not visual mode. But the selection gets wacky when you press escape back to normal mode.

The only way to end the selection (that I've found) is to go back into insert mode and press Shift+arrow

@justbur
Copy link
Contributor

justbur commented Mar 5, 2016

C-g will get you out of it too. That's the emacs way of getting out of
anything.

It's possible this is something worth reporting at the evil repo. I agree
that it's a confusing state to get into.

On Fri, Mar 4, 2016 at 9:06 PM Shaun Patterson notifications@github.com
wrote:

Yeah, it's not visual mode. But the selection gets wacky when you press
escape back to normal mode.

The only way to end the selection (that I've found) is to go back into
insert mode and press Shift+arrow


Reply to this email directly or view it on GitHub
#5364 (comment)
.

@sooheon
Copy link

sooheon commented Mar 6, 2016

Yeah C-g is the way you'd do it in emacs, which is natural because essentially with the shift keys what you're doing is like selecting with set-mark-command, not visual-state. If you want shift + arrow keys to automatically take you from insert-state to visual state, this is not something which is even in vim, so you're free to customize, but it's new ground.

@d12frosted
Copy link
Collaborator

Closing this issue as initial question was resolved.

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

No branches or pull requests

5 participants