chore: bump the minimum required Yazi version to 25.2.7
This commit is contained in:
@@ -65,12 +65,12 @@ Add following keybindings to your `~/.config/yazi/keymap.toml` to enable it:
|
||||
```toml
|
||||
[[manager.prepend_keymap]]
|
||||
on = [ "b", "a" ]
|
||||
run = 'plugin mactag --args="add"'
|
||||
run = "plugin mactag add"
|
||||
desc = "Tag selected files"
|
||||
|
||||
[[manager.prepend_keymap]]
|
||||
on = [ "b", "r" ]
|
||||
run = 'plugin mactag --args="remove"'
|
||||
run = "plugin mactag remove"
|
||||
desc = "Untag selected files"
|
||||
```
|
||||
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
--- @since 25.2.7
|
||||
|
||||
local update = ya.sync(function(st, tags)
|
||||
for path, tag in pairs(tags) do
|
||||
st.tags[path] = #tag > 0 and tag or nil
|
||||
@@ -43,10 +45,6 @@ local function fetch(_, job)
|
||||
|
||||
local output, err = Command("tag"):args(paths):stdout(Command.PIPED):output()
|
||||
if not output then
|
||||
if not ya.__250127 then -- TODO: remove this
|
||||
ya.err("Cannot spawn tag command, error: " .. err)
|
||||
return 0
|
||||
end
|
||||
return true, Err("Cannot spawn `tag` command, error: %s", err)
|
||||
end
|
||||
|
||||
@@ -65,9 +63,6 @@ local function fetch(_, job)
|
||||
end
|
||||
|
||||
update(tags)
|
||||
if not ya.__250127 then -- TODO: remove this
|
||||
return 1
|
||||
end
|
||||
return true
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user