Skip to content

Conversation

saep
Copy link

@saep saep commented Oct 11, 2025

Before this change, if you were to press cit while inside the tag.with.dot
tag somewhere inside the properties tag in the example below, it would delete
all other tags and leave an empty properties tag.

Example:

<properties>
  <a>tag is deleted</a>
  <tag.with.dot>I only want to change this</tag.with.dot>
</properties>

Before this change:

<properties></properties>

Before this change:

<properties>
  <a>tag is deleted</a>
  <tag.with.dot></tag.with.dot>
</properties>

Before this change, if you were to press `cit` while inside the `tag.with.dot`
tag somewhere inside the `properties` tag in the example below, it would
delete all other tags and leave an empty `properties` tag.

Example:

``` xml
<properties>
  <a>tag is deleted</a>
  <tag.with.dot>I only want to change this</tag.with.dot>
</properties>
```

Before this change:

``` xml
<properties></properties>
```

Before this change:

``` xml
<properties>
  <a>tag is deleted</a>
  <tag.with.dot></tag.with.dot>
</properties>
```
@saep saep force-pushed the dot-in-tag-object branch from f6e51ea to 27ae0e0 Compare October 11, 2025 16:49
@echasnovski
Copy link
Member

Thanks for the PR!

This discussed in several issues: #314, #474. They also contain more feature-rich implementations.

The current behavior is intentional, in part to limit the use of Lua pattern based "tag" textobject in cases where it can be set up via tree-sitter.

Closing as not planned.

@echasnovski echasnovski added mini.ai not-planned The behavior is not planned to be implemented labels Oct 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mini.ai not-planned The behavior is not planned to be implemented

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants