mirror of
https://github.com/rydesun/dotfiles.git
synced 2025-12-26 22:55:00 +08:00
Fix mpv script autoload_series
This commit is contained in:
parent
6653c9b9e9
commit
f745fc0961
1 changed files with 3 additions and 1 deletions
|
|
@ -73,7 +73,9 @@ local function autoload_series()
|
|||
end
|
||||
|
||||
local files = similar_files(dir, filename)
|
||||
table.sort(files)
|
||||
table.sort(files, function(s1, s2)
|
||||
if #s1 ~= #s2 then return #s1 < #s2 else return s1 < s2 end
|
||||
end)
|
||||
for i = 1, #files do
|
||||
if files[i] ~= filename then
|
||||
mp.commandv("loadfile", dir..'/'..files[i], "append")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue