Skip to content

Conversation

@Doekeb
Copy link

@Doekeb Doekeb commented Nov 21, 2025

Description

Pickers that list items in a tree structure (including explore, treesitter, undo, and lsp_symbols) use box-drawing characters to indicate tree hierarchy:

tree = {
vertical = "",
middle = "├╴",
last = "└╴",
},

The vertical and middle characters exhibit vertical symmetry, but the last character does not. This means that whenever a picker is opened using a layout with reverse = true (e.g. telescope), the last icon points in the wrong direction (see screenshots).

This change addresses this issue by using an optional icons.tree.last_r icon for the last sibling when it is available and the layout has reverse = true. It also adds the appropriate last_r icons to the default config and the undo picker config.

Screenshots

These screenshots show both preserved "good" behavior for non-reversed layouts and fixed "bad" behavior for reversed layouts.

Before After
image image
image image

@github-actions github-actions bot added picker size/s Small PR (<10 lines changed) labels Nov 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

picker size/s Small PR (<10 lines changed)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant