removed gnome

This commit is contained in:
Matt Nish-Lapidus 2025-05-21 15:51:19 -04:00
parent e26f4e6826
commit 849d8ad8d0
4 changed files with 73 additions and 82 deletions

View file

@ -6,80 +6,30 @@
package = inputs.yazi.packages.x86_64-linux.default;
initLua = ./yazi/init.lua;
plugins = let
officialPluginsNames = [
"chmod"
"diff"
"git"
"mount"
"smart-paste"
"toggle-pane"
];
plugins = with pkgs.yaziPlugins; {
git = git;
chmod = chmod;
diff = diff;
mount = mount;
smart-paste = smart-paste;
toggle-pane = toggle-pane;
restore = restore;
lazygit = lazygit;
ouch = ouch;
rich-preview = rich-preview;
mediainfo= mediainfo;
starship = starship;
officialPluginsSrc = pkgs.fetchgit {
url = "https://github.com/yazi-rs/plugins.git";
sparseCheckout = map (p: "${p}.yazi") officialPluginsNames;
hash = "sha256-bre666Z5qEqkt3c2wLfX5tI2+JMoeRdP4721bJeanKs=";
office = pkgs.fetchFromGitHub {
owner = "macydnah";
repo = "office.yazi";
rev = "HEAD";
sha256 = "sha256-ORcexu1f7hb7G4IyzQIfGlCkH3OWlk4w5FtZrbXkR40=";
};
officialPlugins =
lib.lists.fold (
a: b:
{
${a} = "${officialPluginsSrc}/${a}.yazi";
}
// b
)
{}
officialPluginsNames;
in
officialPlugins // {
restore = pkgs.fetchFromGitHub {
owner = "boydaihungst";
repo = "restore.yazi";
rev = "HEAD";
sha256 = "sha256-3Z8P25u9bffdjrPjxLRWUQn6MdBS+vyElUBkgV4EUwY=";
};
lazygit = pkgs.fetchFromGitHub {
owner = "Lil-Dank";
repo = "lazygit.yazi";
rev = "HEAD";
sha256 = "sha256-OJJPgpSaUHYz8a9opVLCds+VZsK1B6T+pSRJyVgYNy8=";
};
ouch = pkgs.fetchFromGitHub {
owner = "ndtoan96";
repo = "ouch.yazi";
rev = "HEAD";
sha256 = "sha256-7X8uAiJ8vBXYBXOgyKhVVikOnTBGrdCcXOJemjQNolI=";
};
rich-preview = pkgs.fetchFromGitHub {
owner = "AnirudhG07";
repo = "rich-preview.yazi";
rev = "HEAD";
sha256 = "sha256-dW2gAAv173MTcQdqMV32urzfrsEX6STR+oCJoRVGGpA=";
};
mediainfo= pkgs.fetchFromGitHub {
owner = "boydaihungst";
repo = "mediainfo.yazi";
rev = "HEAD";
sha256 = "sha256-U6rr3TrFTtnibrwJdJ4rN2Xco4Bt4QbwEVUTNXlWRps=";
};
starship = pkgs.fetchFromGitHub {
owner = "Rolv-Apneseth";
repo = "starship.yazi";
rev = "HEAD";
sha256 = "sha256-+CSdghcIl50z0MXmFwbJ0koIkWIksm3XxYvTAwoRlDY=";
};
office = pkgs.fetchFromGitHub {
owner = "macydnah";
repo = "office.yazi";
rev = "HEAD";
sha256 = "sha256-ORcexu1f7hb7G4IyzQIfGlCkH3OWlk4w5FtZrbXkR40=";
};
dir-rules = ./yazi/plugins/dir-rules.yazi;
smart-tab = ./yazi/plugins/smart-tab.yazi;
};
dir-rules = ./yazi/plugins/dir-rules.yazi;
smart-tab = ./yazi/plugins/smart-tab.yazi;
};
keymap = {
manager.prepend_keymap = [

View file

@ -12,6 +12,39 @@ require("restore"):setup({
show_confirm = true,
})
Status:children_add(function()
local h = cx.active.current.hovered
local elements = {}
local btime_formatted = nil
if h and h.cha and h.cha.btime then
local timestamp_num = tonumber(h.cha.btime)
if timestamp_num and timestamp_num > 0 then
btime_formatted = os.date("%Y-%m-%d %H:%M", math.floor(timestamp_num))
end
end
local mtime_formatted = nil
if h and h.cha and h.cha.mtime then
local timestamp_num = tonumber(h.cha.mtime)
if timestamp_num and timestamp_num > 0 then
mtime_formatted = os.date("%Y-%m-%d %H:%M", math.floor(timestamp_num))
end
end
if btime_formatted then
table.insert(elements, ui.Span("B:"):fg("cyan"))
table.insert(elements, ui.Span(btime_formatted.. " "):fg("blue"))
end
if mtime_formatted then
table.insert(elements, ui.Span("M:"):fg("cyan"))
table.insert(elements, ui.Span(mtime_formatted.. " "):fg("blue"))
end
return ui.Line(elements)
end, 500, Status.RIGHT)
Status:children_add(function()
local h = cx.active.current.hovered
if h == nil or ya.target_family() ~= "unix" then