feat: split media_types option into video_types, audio_types, and image_types

This commit is contained in:
tomasklaen
2023-01-30 11:44:15 +01:00
parent 188a579ebf
commit 54bb9d6a77
4 changed files with 23 additions and 15 deletions

View File

@@ -361,7 +361,7 @@ end
---@param delta number
function navigate_directory(delta)
if not state.path or is_protocol(state.path) then return false end
local paths, current_index = get_adjacent_files(state.path, config.media_types)
local paths, current_index = get_adjacent_files(state.path, config.types.media)
if paths and current_index then
local _, path = decide_navigation_in_list(paths, current_index, delta)
if path then mp.commandv('loadfile', path) return true end