yazi config changes
This commit is contained in:
parent
69d8a71911
commit
e185f30421
5 changed files with 37 additions and 10 deletions
18
flake.lock
generated
18
flake.lock
generated
|
@ -69,11 +69,11 @@
|
||||||
"nixpkgs-stable": "nixpkgs-stable"
|
"nixpkgs-stable": "nixpkgs-stable"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1739784040,
|
"lastModified": 1739811682,
|
||||||
"narHash": "sha256-ClWxBsyfs3NrJzrEuHbTMDvOdwldSKPIM3BqN9/Kw9E=",
|
"narHash": "sha256-uKHJ7eUG6fLnFYPd9i7xOXbk2oiFE4RGvrh0Y0mhHZA=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "emacs-overlay",
|
"repo": "emacs-overlay",
|
||||||
"rev": "783cff85c13e857ab95b441020621ea64e7a9843",
|
"rev": "f46d961b45787fd1bd9b46226d094ef7dbc5a2ac",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -612,11 +612,11 @@
|
||||||
"uv2nix": "uv2nix"
|
"uv2nix": "uv2nix"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1739737907,
|
"lastModified": 1739810027,
|
||||||
"narHash": "sha256-b5wH4NiFBqQSKRHnAkYrhJBugnr/czUHJdH73dAXWzg=",
|
"narHash": "sha256-sp/xGtMWHOHUvlID7hasOf6fxVzURW5MfJAsd2e4cjY=",
|
||||||
"owner": "isd-project",
|
"owner": "isd-project",
|
||||||
"repo": "isd",
|
"repo": "isd",
|
||||||
"rev": "73df766d2014b9190fe3bc7456bd8b8269886049",
|
"rev": "ec2453952c246ac2d1fcfc0626118e3ff1c8d7dd",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -992,11 +992,11 @@
|
||||||
},
|
},
|
||||||
"nixpkgs_3": {
|
"nixpkgs_3": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1739580444,
|
"lastModified": 1739736696,
|
||||||
"narHash": "sha256-+/bSz4EAVbqz8/HsIGLroF8aNaO8bLRL7WfACN+24g4=",
|
"narHash": "sha256-zON2GNBkzsIyALlOCFiEBcIjI4w38GYOb+P+R4S8Jsw=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "8bb37161a0488b89830168b81c48aed11569cb93",
|
"rev": "d74a2335ac9c133d6bbec9fc98d91a77f1604c1f",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
@ -1,6 +1,11 @@
|
||||||
require("git"):setup()
|
require("git"):setup()
|
||||||
require("yatline-symlink"):setup()
|
require("yatline-symlink"):setup()
|
||||||
require("dir-rules"):setup()
|
require("dir-rules"):setup()
|
||||||
|
|
||||||
|
require("smart-enter"):setup {
|
||||||
|
open_multi = true,
|
||||||
|
}
|
||||||
|
|
||||||
require("yatline"):setup({
|
require("yatline"):setup({
|
||||||
--theme = my_theme,
|
--theme = my_theme,
|
||||||
section_separator = { open = "", close = "" },
|
section_separator = { open = "", close = "" },
|
||||||
|
|
|
@ -0,0 +1,11 @@
|
||||||
|
--- @since 25.2.7
|
||||||
|
--- @sync entry
|
||||||
|
|
||||||
|
local function setup(self, opts) self.open_multi = opts.open_multi end
|
||||||
|
|
||||||
|
local function entry(self)
|
||||||
|
local h = cx.active.current.hovered
|
||||||
|
ya.manager_emit(h and h.cha.is_dir and "enter" or "open", { hovered = not self.open_multi })
|
||||||
|
end
|
||||||
|
|
||||||
|
return { entry = entry, setup = setup }
|
|
@ -0,0 +1,7 @@
|
||||||
|
--- @sync entry
|
||||||
|
return {
|
||||||
|
entry = function()
|
||||||
|
local h = cx.active.current.hovered
|
||||||
|
ya.manager_emit("tab_create", h and h.cha.is_dir and { h.url } or { current = true })
|
||||||
|
end,
|
||||||
|
}
|
|
@ -26,7 +26,11 @@
|
||||||
{ on = "j"; run = "plugin arrow 1"; desc = "down"; }
|
{ on = "j"; run = "plugin arrow 1"; desc = "down"; }
|
||||||
{ on = "<Up>"; run = "plugin arrow -1"; desc = "up"; }
|
{ on = "<Up>"; run = "plugin arrow -1"; desc = "up"; }
|
||||||
{ on = "<Down>"; run = "plugin arrow 1"; desc = "down"; }
|
{ on = "<Down>"; run = "plugin arrow 1"; desc = "down"; }
|
||||||
{ on = "C"; run = "plugin ouch --args=zip"; }
|
{ on = "C"; run = "plugin ouch zip"; }
|
||||||
|
{ on = "T"; run = "plugin smart-tab"; desc = "Create a tab and enter the hovered directory"; }
|
||||||
|
{ on = "l"; run = "plugin smart-enter"; desc = "Enter the child directory, or open the file"; }
|
||||||
|
{ on = "<Enter>"; run = "plugin smart-enter"; desc = "Enter the child directory, or open the file"; }
|
||||||
|
{ on = "<Right>"; run = "plugin smart-enter"; desc = "Enter the child directory, or open the file"; }
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
settings = {
|
settings = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue