-
-
Notifications
You must be signed in to change notification settings - Fork 84
Fit interior range to content #715
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
Conversation
023cdf7
to
0b786e9
Compare
Performed git surgery. Original branch at https://github.com/cursorless-dev/cursorless/tree/bak/fitInteriorToContent; feel free to delete if this branch looks ok |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice direction; left some comments
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Stop using
CommonTargetParameters
for parameters toInteriorTarget
; instead usefullInteriorRange
and then constructcontentRange
before passing toBaseTarget
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Basically there! In addition to a few minor comments inline:
- Would be good to add a "change" test where the core is empty
- Would be good to add a "change" test where the core includes only whitespace
Co-authored-by: Pokey Rule <[email protected]>
Co-authored-by: Pokey Rule <[email protected]>
Fixes #713
Checklist