getAbsPositionNode determines the selected screen cursor's location in the file tree, returning the selected FileNode. func (controller *FileTree) getAbsPositionNode() (node *filetree.FileNode) { return controller.vm.getAbsPositionNode(filterRegex()) } ToggleCollapse will collapse/expand the select
()
| 284 | |
| 285 | // ToggleCollapse will collapse/expand the selected FileNode. |
| 286 | func (v *FileTree) toggleCollapse() error { |
| 287 | err := v.vm.ToggleCollapse(v.filterRegex) |
| 288 | if err != nil { |
| 289 | return err |
| 290 | } |
| 291 | _ = v.Update() |
| 292 | return v.Render() |
| 293 | } |
| 294 | |
| 295 | // ToggleCollapseAll will collapse/expand the all directories. |
| 296 | func (v *FileTree) toggleCollapseAll() error { |
nothing calls this directly
no test coverage detected