We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Presently there is no way to add a new tree node except as the last node, accordingly:
Would you accept an optional indexhere?
index
textual/src/textual/widgets/_tree.py
Lines 320 to 327 in ce96219
If set it would change this from append to insert and pass index:
append
insert
Line 344 in ce96219
The text was updated successfully, but these errors were encountered:
We found the following entries in the FAQ which you may find helpful:
Feel free to close this issue if you found an answer in the FAQ. Otherwise, please give us a little time to review.
This is an automated reply, generated by FAQtory
Sorry, something went wrong.
Would that cover all use-cases? What if you want to insert before another item, or at the start.
The mount method has a before and after parameter. Maybe we need something similar.
mount
@willmcgugan it would, but the caller would be responsible for figuring out the index.
No branches or pull requests
Presently there is no way to add a new tree node except as the last node, accordingly:
Would you accept an optional
index
here?textual/src/textual/widgets/_tree.py
Lines 320 to 327 in ce96219
If set it would change this from
append
toinsert
and passindex
:textual/src/textual/widgets/_tree.py
Line 344 in ce96219
The text was updated successfully, but these errors were encountered: