* fix: bookmark filter include marked-directory's children * fix(perf): add path_type to filter functions * fix: replace undefined type * fix: correct Node.fs_stat type * fix: file info popup check fs_stat not nil * refactor: add stat to should_filter, Node constructor * perf: early return if bookmark is empty --------- Co-authored-by: Alexander Courtis <alex@courtis.org>
35 lines
803 B
Lua
35 lines
803 B
Lua
---@meta
|
|
|
|
---@class ParentNode
|
|
---@field name string
|
|
|
|
---@class BaseNode
|
|
---@field absolute_path string
|
|
---@field executable boolean
|
|
---@field fs_stat uv.fs_stat.result|nil
|
|
---@field git_status GitStatus|nil
|
|
---@field hidden boolean
|
|
---@field name string
|
|
---@field parent DirNode
|
|
---@field type string
|
|
---@field watcher function|nil
|
|
---@field diag_status DiagStatus|nil
|
|
|
|
---@class DirNode: BaseNode
|
|
---@field has_children boolean
|
|
---@field group_next Node|nil
|
|
---@field nodes Node[]
|
|
---@field open boolean
|
|
|
|
---@class FileNode: BaseNode
|
|
---@field extension string
|
|
|
|
---@class SymlinkDirNode: DirNode
|
|
---@field link_to string
|
|
|
|
---@class SymlinkFileNode: FileNode
|
|
---@field link_to string
|
|
|
|
---@alias SymlinkNode SymlinkDirNode|SymlinkFileNode
|
|
---@alias Node ParentNode|DirNode|FileNode|SymlinkNode|Explorer
|