fix: bookmark filter shows marked directory children (#2719)
* 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>
This commit is contained in:
@@ -6,6 +6,14 @@ local M = {}
|
||||
---@return table
|
||||
local function get_formatted_lines(node)
|
||||
local stats = node.fs_stat
|
||||
if stats == nil then
|
||||
return {
|
||||
"",
|
||||
" Can't retrieve file information",
|
||||
"",
|
||||
}
|
||||
end
|
||||
|
||||
local fpath = " fullpath: " .. node.absolute_path
|
||||
local created_at = " created: " .. os.date("%x %X", stats.birthtime.sec)
|
||||
local modified_at = " modified: " .. os.date("%x %X", stats.mtime.sec)
|
||||
|
||||
Reference in New Issue
Block a user