fixing some yazi and working on server
This commit is contained in:
parent
f2e2a045d8
commit
3ed1509126
6 changed files with 43 additions and 15 deletions
|
@ -76,7 +76,7 @@
|
|||
vlc
|
||||
discord
|
||||
slack
|
||||
signal-desktop
|
||||
signal-desktop-bin
|
||||
libreoffice
|
||||
hyphenDicts.en_US
|
||||
plex-mpv-shim
|
||||
|
|
|
@ -44,7 +44,7 @@
|
|||
owner = "boydaihungst";
|
||||
repo = "restore.yazi";
|
||||
rev = "HEAD";
|
||||
sha256 = "sha256-OJJPgpSaUHYz8a9opVLCds+VZsK1B6T+pSRJyVgYNy8=";
|
||||
sha256 = "sha256-3Z8P25u9bffdjrPjxLRWUQn6MdBS+vyElUBkgV4EUwY=";
|
||||
};
|
||||
lazygit = pkgs.fetchFromGitHub {
|
||||
owner = "Lil-Dank";
|
||||
|
@ -116,8 +116,8 @@
|
|||
{ on = ["d" "d"]; run = "remove"; desc = "Delete files/folders"; }
|
||||
{ on = ["d" "u"]; run = "plugin restore"; desc = "Restore last deleted files/folders"; }
|
||||
|
||||
{ on = "f"; run = "filter --smart"; desc = "Find file"; }
|
||||
{ on = "F"; run = "find --smart"; desc = "Find file"; }
|
||||
{ on = "F"; run = "filter --smart"; desc = "Find file"; }
|
||||
{ on = "f"; run = "find --smart"; desc = "Find file"; }
|
||||
|
||||
{ on = "z"; run = "plugin zoxide"; }
|
||||
{ on = "Z"; run = "plugin fzf"; }
|
||||
|
|
|
@ -1,6 +1,18 @@
|
|||
require("git"):setup()
|
||||
require("dir-rules"):setup()
|
||||
|
||||
require("restore"):setup({
|
||||
-- Set the position for confirm and overwrite dialogs.
|
||||
-- don't forget to set height: `h = xx`
|
||||
-- https://yazi-rs.github.io/docs/plugins/utils/#ya.input
|
||||
position = { "center", w = 70, h = 40 }, -- Optional
|
||||
|
||||
-- Show confirm dialog before restore.
|
||||
-- NOTE: even if set this to false, overwrite dialog still pop up
|
||||
show_confirm = true, -- Optional
|
||||
})
|
||||
|
||||
|
||||
Status:children_add(function()
|
||||
local h = cx.active.current.hovered
|
||||
if h == nil or ya.target_family() ~= "unix" then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue