ToggleCollapseAll will collapse/expand the all directories.
()
| 294 | |
| 295 | // ToggleCollapseAll will collapse/expand the all directories. |
| 296 | func (v *FileTree) toggleCollapseAll() error { |
| 297 | err := v.vm.ToggleCollapseAll() |
| 298 | if err != nil { |
| 299 | return err |
| 300 | } |
| 301 | if v.vm.CollapseAll { |
| 302 | v.resetCursor() |
| 303 | } |
| 304 | _ = v.Update() |
| 305 | return v.Render() |
| 306 | } |
| 307 | |
| 308 | func (v *FileTree) toggleSortOrder() error { |
| 309 | err := v.vm.ToggleSortOrder() |
nothing calls this directly
no test coverage detected