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

Inserting text removes selections #7

Closed
rothos opened this issue Apr 18, 2013 · 2 comments
Closed

Inserting text removes selections #7

rothos opened this issue Apr 18, 2013 · 2 comments
Assignees

Comments

@rothos
Copy link

rothos commented Apr 18, 2013

If I have four selections, type CMD+ALT+N and then "a b c d"+ENTER, the characters are properly inserted but I lose my selections — only the last remains.

If instead I have four selections, type CMD+ALT+N and then "\i"+ENTER, however, the numbers {1,2,3,4} are inserted and my four selections are preserved.

Running Sublime Text 2 on MacBook Pro with OS X 10.7.

@ghost ghost assigned duydao Apr 22, 2013
@AllanLRH
Copy link

+1 to this.
Using Cmd + U (Undo Selection) removes the newly inserted text.

duydao added a commit that referenced this issue May 22, 2013
@duydao duydao closed this as completed May 22, 2013
@duydao
Copy link
Owner

duydao commented May 22, 2013

I've added a new setting ( keep_selection ), available under Preferences -> Package Settings -> Text Pastry. To activate the requested behaviour, your settings file could look like this:

{
    "clipboard_strip_newline": true,
    "repeat_words": false,
    "repeat_clipboard": false,
    "history_enabled": true,
    "keep_selection": true
}

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

No branches or pull requests

3 participants