scripts: remove issu & add luks-mount & ya pkg upgrade

This commit is contained in:
2026-01-10 08:57:14 +01:00
parent 490ce1f819
commit cff586109c
9 changed files with 122 additions and 58 deletions
+5 -5
View File
@@ -1,11 +1,11 @@
[[plugin.deps]]
use = "yazi-rs/plugins:git"
rev = "398796d"
hash = "73788c7dc5827ef4677c502c3ea8fa19"
rev = "68f7d48"
hash = "36a484acf6a0a0219c543ccb4cee218f"
[[plugin.deps]]
use = "yazi-rs/plugins:smart-enter"
rev = "398796d"
rev = "68f7d48"
hash = "56fdabc96fc1f4d53c96eb884b02a5be"
[[plugin.deps]]
@@ -15,8 +15,8 @@ hash = "699fe07e0d2d1b4af8dafb84168eeb04"
[[plugin.deps]]
use = "KKV9/compress"
rev = "c264639"
hash = "e17c11b605d989568a1d1741ca17c584"
rev = "e2ae983"
hash = "36b570e2164f6ad2317cfb839e42ef4"
[[plugin.deps]]
use = "llanosrocas/yaziline"
@@ -243,7 +243,7 @@ return {
is_level = true
end
end
elseif arg:match("^%w[%w\\.]*$") then
elseif arg:match("^[%w%.]+$") then
-- Handle default extension (e.g., 7z, zip)
if archive_commands["%." .. arg .. "$"] then
default_extension = arg
@@ -265,7 +265,7 @@ return {
ya.input(
{
title = "Create archive:",
position = {"top-center", y = 3, w = 40}
pos = {"top-center", y = 3, w = 40}
}
)
if event ~= 1 then
@@ -362,7 +362,7 @@ return {
{
title = "Enter password:",
obscure = true,
position = {"top-center", y = 3, w = 40}
pos = {"top-center", y = 3, w = 40}
}
)
if event ~= 1 then
@@ -388,7 +388,7 @@ return {
ya.input(
{
title = string.format("Enter compression level (%s - %s)", archive_level_min, archive_level_max),
position = {"top-center", y = 3, w = 40}
pos = {"top-center", y = 3, w = 40}
}
)
if event ~= 1 then
@@ -476,7 +476,7 @@ return {
-- Move the final file from the temporary directory to the output directory
local final_output_url, temp_url_processed = combine_url(output_dir, original_name), combine_url(temp_dir, original_name)
final_output_url, _ = tostring(fs.unique_name(Url(final_output_url)))
local move_status, move_err = os.rename(temp_url_processed, final_output_url)
local move_status, move_err = fs.rename(Url(temp_url_processed), Url(final_output_url))
if not move_status then
-- Notify the user if the move operation fails and clean up the temporary directory
notify_error(string.format("Failed to move %s to %s, error: %s", temp_url_processed, final_output_url, move_err), "error")
@@ -494,3 +494,4 @@ return {
end
end
}
@@ -170,12 +170,12 @@ local function setup(st, opts)
[CODES.updated] = t.updated and ui.Style(t.updated) or ui.Style():fg("yellow"),
}
local signs = {
[CODES.ignored] = t.ignored_sign or "",
[CODES.untracked] = t.untracked_sign or "?",
[CODES.modified] = t.modified_sign or "",
[CODES.added] = t.added_sign or "",
[CODES.deleted] = t.deleted_sign or "",
[CODES.updated] = t.updated_sign or "",
[CODES.ignored] = t.ignored_sign or " ",
[CODES.untracked] = t.untracked_sign or "? ",
[CODES.modified] = t.modified_sign or " ",
[CODES.added] = t.added_sign or " ",
[CODES.deleted] = t.deleted_sign or " ",
[CODES.updated] = t.updated_sign or " ",
}
Linemode:children_add(function(self)