Skip to content

Conversation

AndreasArvidsson
Copy link
Member

@AndreasArvidsson AndreasArvidsson commented Aug 14, 2025

Today if you don't specify a scope after head/tail we default to the line bounded by optional surrounding pair interior. This change makes it so we use any interior. I gotten really used to head/tail being bounded by interior, but lately I've been doing a lot of jsx and I keep trying to use head and tail inside of a jsx element and accidentally removing half the line.

@AndreasArvidsson AndreasArvidsson requested a review from a team as a code owner August 14, 2025 02:00
@AndreasArvidsson AndreasArvidsson added this pull request to the merge queue Aug 14, 2025
Merged via the queue into main with commit 2298c73 Aug 14, 2025
18 of 19 checks passed
@AndreasArvidsson AndreasArvidsson deleted the headTailInterior branch August 14, 2025 12:49
@jaresty
Copy link
Contributor

jaresty commented Aug 14, 2025

This is very useful! Didn't know it worked that way. Do "start of" and "end of" also default to bounded contexts?

@AndreasArvidsson
Copy link
Member Author

Very useful! :)
No this is a feature of head/tail only.

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

Successfully merging this pull request may close these issues.

3 participants