@@ -103,14 +103,15 @@ end
103
103
--- Sends update requests to the different parsers.
104
104
--- @async
105
105
--- @param moving_adjacent ? number | boolean
106
- local function update_list (moving_adjacent )
106
+ --- @param parse_properties ? ParseProperties
107
+ local function update_list (moving_adjacent , parse_properties )
107
108
msg .verbose (' opening directory: ' .. g .state .directory )
108
109
109
110
g .state .selected = 1
110
111
g .state .selection = {}
111
112
112
113
local directory = g .state .directory
113
- local list , opts = parse_directory (g .state .directory , { source = " browser" })
114
+ local list , opts = parse_directory (g .state .directory , { source = " browser" , properties = parse_properties })
114
115
115
116
-- if the running coroutine isn't the one stored in the state variable, then the user
116
117
-- changed directories while the coroutine was paused, and this operation should be aborted
@@ -124,7 +125,7 @@ local function update_list(moving_adjacent)
124
125
if not list then
125
126
-- opens the root instead
126
127
msg .warn (" could not read directory" , g .state .directory , " redirecting to root" )
127
- list , opts = parse_directory (" " , { source = " browser" })
128
+ list , opts = parse_directory (" " , { source = " browser" , properties = parse_properties })
128
129
129
130
if not list then error ((' fatal error - failed to read the root directory' )) end
130
131
161
162
--- rescans the folder and updates the list.
162
163
--- @param moving_adjacent ? number | boolean
163
164
--- @param cb ? function
165
+ --- @param parse_properties ? ParseProperties
164
166
--- @return thread # The coroutine for the triggered parse operation. May be aborted early if directory is in the cache.
165
- local function rescan (moving_adjacent , cb )
167
+ local function rescan (moving_adjacent , cb , parse_properties )
166
168
if moving_adjacent == nil then moving_adjacent = 0 end
167
169
168
170
-- we can only make assumptions about the directory label when moving from adjacent directories
@@ -177,7 +179,7 @@ local function rescan(moving_adjacent, cb)
177
179
-- pause execution for asynchronous operations
178
180
--- @async
179
181
local co = fb_utils .coroutine .queue (function ()
180
- update_list (moving_adjacent )
182
+ update_list (moving_adjacent , parse_properties )
181
183
if g .state .empty_text == " ~" then g .state .empty_text = " empty directory" end
182
184
183
185
ass .update_ass ()
0 commit comments