Simple lualine-like status line for yazi.
Read more about features and configuration here.
- yazi version >= 0.3.0
- Font with symbol support. For example Nerd Fonts.
ya pack -a llanosrocas/yaziline
Or manually copy init.lua
to the ~/.config/yazi/plugins/yaziline.yazi/init.lua
Add this to your ~/.config/yazi/init.lua
:
require("yaziline"):setup()
Optionally, configure line:
require("yaziline"):setup({
separator_style = "angly" -- "angly" | "curvy" | "liney" | "empty"
separator_open = "",
separator_close = "",
separator_open_thin = "",
separator_close_thin = "",
select_symbol = "",
yank_symbol = "",
filename_max_length = 24, -- trim when filename > 24
filename_trim_length = 6 -- trim 6 chars from both ends
})
Choose your style:
You can provide your own symbols for separators combined with preconfigured separators. For example:
require("yaziline"):setup({
-- Optinal config
separator_style = "angly", -- preconfigured style
separator_open = "", -- instead of
separator_close = "", -- instead of
separator_open_thin = "", -- change to anything
separator_close_thin = "", -- change to anything
})
You can find more symbols here
You can provide your own symbols for select
and yank
. For example:
require("yaziline"):setup({
-- Optinal config
select_symbol = "", -- "S" by default
yank_symbol = "", -- "Y" by default
})
You can find more symbols here
You can change background and font weight in your yazi/flavors/flavor.toml
.
mode_normal = { bg = "#98c379", bold = false }
For example, here is how my line looks like:
Displays the number of selected ('S') and yanked ('Y') files on the left. If files are cut, the yank counter changes color, since its yank --cut
under the hood.
Displays the trimmed filename on the left, which is useful for smaller screens or long filenames. By default, it's 24 characters with trimming to 12. Adjust in the setup
.
require("yaziline"):setup({
filename_max_length = 24, -- trim when filename > 24
filename_trim_length = 6 -- trim 6 chars from both ends
})
On the right, you'll find the date and time the file was modified, formatted in an ISO-like string for universal date representation. Adjust in the Status:date
function.