mirror of
https://github.com/rivo/tview.git
synced 2026-04-26 05:15:55 +03:00
[GH-ISSUE #187] How to visit the children(files) of a node? #149
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#149
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @thedevsaddam on GitHub (Nov 20, 2018).
Original GitHub issue: https://github.com/rivo/tview/issues/187
I really appreciate your work 👍 . Using the package to build a terminal GUI app.
Need to visit all the directory and files inside the directory. Basically, I want to take action against the directory or file. How can I open a modal on a file or directory using a Keyboard shortcut like (left arrow to Collapse, right arrow to Expand, Up/Down for up-down tree view, key A to take action etc)?
Thanks again for your work 👍
@rivo commented on GitHub (Nov 26, 2018):
As you've probably seen in the demo code, the Up/Down arrow keys as well as the Enter key are already implemented. Up/Left will navigate up, Down/Right will navigate down. Enter will fire the "Selected" event.
If you want to change the meaning of the keys or add your own shortcuts, you'll want to use
SetInputCapture(). AsTreeViewinherits fromBox, it will work there as well.Let me know if this is what you are looking for.
@thedevsaddam commented on GitHub (Nov 26, 2018):
Yeah it works 👍 Thank you