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

Selection disappears on copy, indent #153

Open
bf0 opened this issue Dec 22, 2016 · 6 comments
Open

Selection disappears on copy, indent #153

bf0 opened this issue Dec 22, 2016 · 6 comments
Labels

Comments

@bf0
Copy link

bf0 commented Dec 22, 2016

Reproduction

  1. Select/highlight one or more lines
  2. Change indent level with cmd+] or cmd+[ or copy selection with cmd-c

Result

Text is no longer selected

Expected Result

Text should remain selected

@bf0
Copy link
Author

bf0 commented Dec 22, 2016

Comment (cmd+/) also makes the selection disappear

@excetara2
Copy link

excetara2 commented Dec 29, 2016

This does happen but there is a command to toggle the active mark if you didn't know:

  {"keys": ["ctrl+m"], "command": "sbp_swap_point_and_mark", "args": {"toggle_active_mark_mode": true}},

This might be able to help for now. It is removing the selection but not the mark so this will reactivate the selection.

@excetara2
Copy link

@perrierism @bf0 We are about to have a new release soon that will try to list all the new features. A bunch of things have been added over the last year or 6 months that are not properly documented so be on the lookout.

@bf0
Copy link
Author

bf0 commented Dec 29, 2016

@excetara2 thanks, sounds great

@canoeberry
Copy link
Collaborator

If I remember, shifting the region and leaving the selection highlighted produced an unexpected selection. I will see if I can fix it.

@canoeberry
Copy link
Collaborator

I have confirmed that it's not an easy fix.

One of the problems is that if you define a sublime region at position P and then start typing at position P, the region moves to the right along with your typing. There's no way to configure the marks, as far as I know, to allow you to specify whether that should happen.

But there are other issues as well.

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

No branches or pull requests

3 participants