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

When something is selected, use indent mode instead of smart mode #33

Open
oakmac opened this issue Aug 17, 2018 · 1 comment
Open

When something is selected, use indent mode instead of smart mode #33

oakmac opened this issue Aug 17, 2018 · 1 comment
Assignees

Comments

@oakmac
Copy link
Owner

oakmac commented Aug 17, 2018

Shaun says:

screenshot_2018-08-17_14-35-17

screenshot_2018-08-17_14-43-38

screenshot_2018-08-17_14-43-52

screenshot_2018-08-17_14-44-03

screenshot_2018-08-17_14-45-12

This might be related to Issue #28

@oakmac oakmac self-assigned this Aug 17, 2018
@shaunlebron
Copy link
Collaborator

This is automatically done by the library:
https://github.com/shaunlebron/parinfer/blob/master/lib/parinfer.js#L1543

The API just needs to know if any text is selected or not, which it receives via the options.selectionStartLine.

The API also uses this option for tab stops, but it just needs to be non-null if any selection is made.

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

2 participants