Skip to content

Add nonWhitespaceSequence scope type #330

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

Closed
pokey opened this issue Nov 24, 2021 · 0 comments · Fixed by #480
Closed

Add nonWhitespaceSequence scope type #330

pokey opened this issue Nov 24, 2021 · 0 comments · Fixed by #480
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@pokey
Copy link
Member

pokey commented Nov 24, 2021

We can call it "paint", and it will expand to include all non-whitespace characters adjacent to selection. Can proceed by:

  1. Get line containing end of selection
  2. Move end forward until just before the first whitespace character you encounter
  3. Get line containing start of selection
  4. Move start back until just after the first whitespace character you encounter

Question: what to do if one of the endpoints is in the middle of whitespace? Which of the following do we do:

  • Leave the endpoint untouched
  • Move it forward until the end of the next non-whitespace block
  • Move it backward to the end of the preceding non-whitespace block
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants