mirror of
https://github.com/kristoferssolo/solorice.git
synced 2026-02-04 06:32:03 +00:00
Update 2025-01-28
This commit is contained in:
@@ -30,8 +30,8 @@ hash = "395940d2b22941e0acb1232579c9d4cf"
|
||||
|
||||
[[plugin.deps]]
|
||||
use = "hankertrix/augment-command"
|
||||
rev = "c0fd61f"
|
||||
hash = "3e56e8b9ee07aabc0d08743c05835929"
|
||||
rev = "e337feb"
|
||||
hash = "feeb35edcf1677c7bafac2bc573670bb"
|
||||
|
||||
[[plugin.deps]]
|
||||
use = "imsi32/yatline"
|
||||
@@ -55,27 +55,27 @@ hash = "98e5f5af3efd3ba8bc2db0720187cc83"
|
||||
|
||||
[[plugin.deps]]
|
||||
use = "yazi-rs/plugins:chmod"
|
||||
rev = "6418698"
|
||||
rev = "f202fa8"
|
||||
hash = "4c7e8fd0266eedee7b619d966bd2d025"
|
||||
|
||||
[[plugin.deps]]
|
||||
use = "yazi-rs/plugins:full-border"
|
||||
rev = "6418698"
|
||||
rev = "f202fa8"
|
||||
hash = "882ed23839778f82dc137248979c8681"
|
||||
|
||||
[[plugin.deps]]
|
||||
use = "yazi-rs/plugins:git"
|
||||
rev = "6418698"
|
||||
hash = "e9cf1bfc03de7fee0f1d4260da0d1dfd"
|
||||
rev = "f202fa8"
|
||||
hash = "4d6a07559118975e2dee983d27474d70"
|
||||
|
||||
[[plugin.deps]]
|
||||
use = "yazi-rs/plugins:hide-preview"
|
||||
rev = "6418698"
|
||||
rev = "f202fa8"
|
||||
hash = "5be5885898ca9df783bdec0d402bf4b0"
|
||||
|
||||
[[plugin.deps]]
|
||||
use = "yazi-rs/plugins:max-preview"
|
||||
rev = "6418698"
|
||||
rev = "f202fa8"
|
||||
hash = "9bc26d10d2f6e2aa93b10905b1b76979"
|
||||
|
||||
[flavor]
|
||||
|
||||
@@ -175,8 +175,8 @@ local INPUT_OPTIONS_TABLE = {
|
||||
-- The extractor names
|
||||
---@enum ExtractorName
|
||||
local ExtractorName = {
|
||||
SevenZip = "7z",
|
||||
Tar = "tar",
|
||||
SevenZip = "7-Zip",
|
||||
Tar = "Tar",
|
||||
}
|
||||
|
||||
-- The extract behaviour flags
|
||||
@@ -270,7 +270,7 @@ function Extractor:extract(_)
|
||||
}
|
||||
end
|
||||
|
||||
-- The 7z extractor
|
||||
-- The 7-Zip extractor
|
||||
---@class SevenZip: Extractor
|
||||
---@field password string The password to the archive
|
||||
local SevenZip = Extractor:subclass({
|
||||
@@ -286,7 +286,7 @@ local SevenZip = Extractor:subclass({
|
||||
password = "",
|
||||
})
|
||||
|
||||
-- The tar extractor
|
||||
-- The Tar extractor
|
||||
---@class Tar: Extractor
|
||||
local Tar = Extractor:subclass({
|
||||
name = ExtractorName.Tar,
|
||||
@@ -303,7 +303,7 @@ local Tar = Extractor:subclass({
|
||||
},
|
||||
})
|
||||
|
||||
-- The default extractor, which is set to 7zip
|
||||
-- The default extractor, which is set to 7-Zip
|
||||
---@class DefaultExtractor: SevenZip
|
||||
local DefaultExtractor = SevenZip:subclass({})
|
||||
|
||||
|
||||
@@ -145,11 +145,11 @@ local function setup(st, opts)
|
||||
end
|
||||
|
||||
if not change or signs[change] == "" then
|
||||
return ui.Line("")
|
||||
return ""
|
||||
elseif self._file:is_hovered() then
|
||||
return ui.Line { ui.Span(" "), ui.Span(signs[change]) }
|
||||
return ui.Line { " ", signs[change] }
|
||||
else
|
||||
return ui.Line { ui.Span(" "), ui.Span(signs[change]):style(styles[change]) }
|
||||
return ui.Line { " ", ui.Span(signs[change]):style(styles[change]) }
|
||||
end
|
||||
end, opts.order)
|
||||
end
|
||||
@@ -159,7 +159,10 @@ local function fetch(_, job)
|
||||
local repo = root(cwd)
|
||||
if not repo then
|
||||
remove(tostring(cwd))
|
||||
return 1
|
||||
if not ya.__250127 then -- TODO: remove this
|
||||
return 1
|
||||
end
|
||||
return true
|
||||
end
|
||||
|
||||
local paths = {}
|
||||
@@ -175,8 +178,11 @@ local function fetch(_, job)
|
||||
:stdout(Command.PIPED)
|
||||
:output()
|
||||
if not output then
|
||||
ya.err("Cannot spawn git command, error: " .. err)
|
||||
return 0
|
||||
if not ya.__250127 then -- TODO: remove this
|
||||
ya.err("Cannot spawn git command, error: " .. err)
|
||||
return 0
|
||||
end
|
||||
return true, Err("Cannot spawn `git` command, error: %s", err)
|
||||
end
|
||||
|
||||
local changed, ignored = {}, {}
|
||||
@@ -202,7 +208,10 @@ local function fetch(_, job)
|
||||
end
|
||||
add(tostring(cwd), repo, changed)
|
||||
|
||||
return 3
|
||||
if not ya.__250127 then -- TODO: remove this
|
||||
return 3
|
||||
end
|
||||
return false
|
||||
end
|
||||
|
||||
return { setup = setup, fetch = fetch }
|
||||
|
||||
Reference in New Issue
Block a user