neue Dateien
This commit is contained in:
53
.config/yazi/init.lua
Normal file
53
.config/yazi/init.lua
Normal file
@@ -0,0 +1,53 @@
|
||||
-- Zeitstempel in Statusbar anzeigen
|
||||
Status:children_add(function()
|
||||
local h = cx.active.current.hovered
|
||||
return ui.Line({
|
||||
ui.Span(os.date("%d.%m.%Y %H:%M", tostring(h.cha.mtime):sub(1, 10))):fg("green"),
|
||||
ui.Span(" "),
|
||||
})
|
||||
end, 500, Status.RIGHT)
|
||||
|
||||
-- Benutzer und Gruppe in Statusbar anzeigen
|
||||
-- Status:children_add(function()
|
||||
-- local h = cx.active.current.hovered
|
||||
-- if h == nil or ya.target_family() ~= "unix" then
|
||||
-- return ""
|
||||
-- end
|
||||
|
||||
-- return ui.Line {
|
||||
-- ui.Span(ya.user_name(h.cha.uid) or tostring(h.cha.uid)):fg("magenta"),
|
||||
-- ":",
|
||||
-- ui.Span(ya.group_name(h.cha.gid) or tostring(h.cha.gid)):fg("magenta"),
|
||||
-- " ",
|
||||
-- }
|
||||
-- end, 500, Status.RIGHT)
|
||||
|
||||
-- kompletten Rahmen anzeigen
|
||||
require("full-border"):setup {
|
||||
-- Available values: ui.Border.PLAIN, ui.Border.ROUNDED
|
||||
type = ui.Border.PLAIN,
|
||||
}
|
||||
|
||||
-- Einstellungn für Plugin Project
|
||||
require("projects"):setup({
|
||||
save = {
|
||||
method = "lua", -- yazi | lua
|
||||
--lua_save_path = "~/.config/yazi/projects.json", -- comment out to get the default value
|
||||
-- windows: "%APPDATA%/yazi/state/projects.json"
|
||||
-- unix: "~/.local/state/yazi/projects.json"
|
||||
},
|
||||
last = {
|
||||
update_after_save = true,
|
||||
update_after_load = true,
|
||||
load_after_start = true,
|
||||
},
|
||||
merge = {
|
||||
quit_after_merge = false,
|
||||
},
|
||||
notify = {
|
||||
enable = true,
|
||||
title = "Projects",
|
||||
timeout = 3,
|
||||
level = "info",
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user