summaryrefslogtreecommitdiffstatshomepage
path: root/runtime/lua/vim/treesitter/_select.lua
AgeCommit message (Collapse)AuthorFiles
2026-04-22feat(treesitter): expand selection to sibling node #38938altermo1
Problem: Can't expand treesitter-incremental-selection to the next and previous sibling nodes. Solution: Pressing `]N` in visual mode will expand the selection to the next sibling node, and `[N` will do the same with the previous node.
2026-04-16fix(treesitter): TSNode:id() with NUL byte causes unreliable select() #39134altermo1
Problem: `TSNode:id()` returns the underlying c pointer as a string, which may include NUL bytes. In PUC Lua, `('%s'):format('\0a\0')` returns `''` and not `'\0a\0'` (i.e. treats the string as a c-string (which terminates at the NUL byte)). This resulted in two different nodes being able to have the same id. Solution: Use concatenation `..` instead of `string.format()`.
2026-04-02fix(treesitter): select reset to "v" visualmode()altermo1
2026-03-31fix(treesitter): select with node ending with unicode char (#38557)altermo1
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
2026-03-25refactor(treesitter): use same visual-select as lsp #38475altermo1
Problem treesitter select over-complicates visual selection. Solution make it use same visual selection logic as lsp.
2026-03-14refactor(treesitter): move range related functionsaltermo1
2026-03-08feat(treesitter): incremental selectionaltermo1
Co-authored-by: György Andorka <gyorgy.andorka@protonmail.com>