Repository navigation
[idea] Document split ids in pane.layout, or include each split's path #6001
ian-pascoe
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
idea / problem
pane.layoutreturns each split with anidlikesplit_0_rootorsplit_2_01, andlayout.set_split_ratiotakes apathof booleans. Neither the id format nor how it relates to the path is in the socket API docs. From reading the source and testing, the id is the split's pre-order index followed by its path bits, but nothing says that's stable.requested change
Either document the split id format as stable, or add the split's
pathas a field on each split inpane.layout, so a client can calllayout.set_split_ratioon a split it found in the layout without decoding the id.why you want this
neopane (repo) resizes herdr panes to match Neovim's windows. To find the right split it currently decodes the ids and cross-checks every split's rect against them, and refuses to resize if anything doesn't match. That works on 0.9.5, but a documented path would let it drop the guesswork.
All reactions