feat: yazi plugins [glow, projects, custom_scripts-set_wallpaper]

This commit is contained in:
2025-04-13 12:25:36 +02:00
parent 5d779b0b66
commit 80f1083683
11 changed files with 172 additions and 26 deletions

View File

@ -0,0 +1,41 @@
return {
-- Matches: a URL in parens: (URL)
{
regex = "\\((\\w+://\\S+)\\)",
format = "$1",
highlight = 1,
},
-- Matches: a URL in brackets: [URL]
{
regex = "\\[(\\w+://\\S+)\\]",
format = "$1",
highlight = 1,
},
-- Matches: a URL in curly braces: {URL}
{
regex = "\\{(\\w+://\\S+)\\}",
format = "$1",
highlight = 1,
},
-- Matches: a URL in angle brackets: <URL>
{
regex = "<(\\w+://\\S+)>",
format = "$1",
highlight = 1,
},
-- Then handle URLs not wrapped in brackets
{
-- Before
--regex = '\\b\\w+://\\S+[)/a-zA-Z0-9-]+',
--format = '$0',
-- After
regex = "[^(]\\b(\\w+://\\S+[)/a-zA-Z0-9-]+)",
format = "$1",
highlight = 1,
},
-- implicit mailto link
{
regex = "\\b\\w+@[\\w-]+(\\.[\\w-]+)+\\b",
format = "mailto:$0",
},
}

View File

@ -2,7 +2,7 @@ local wezterm = require("wezterm")
local act = wezterm.action
return {
leader = { key = "a", mods = "CTRL", timeout_milliseconds = 1002 },
leader = { key = "z", mods = "CTRL", timeout_milliseconds = 1002 },
keys = {
{

View File

@ -14,7 +14,7 @@ local config = {
font = wezterm.font("JetBrains Mono", { weight = "Medium" }),
font_size = 12,
line_height = 1.0,
window_background_opacity = 0.8,
window_background_opacity = 0.97,
-- tab bar
use_fancy_tab_bar = true,
tab_bar_at_bottom = false,
@ -38,6 +38,7 @@ local config = {
keys = mappings.keys,
key_tables = mappings.key_tables,
hyperlink_rules = hyperlinks,
audible_bell = "Disabled",
}
-- sessions.apply_to_config(config) -- optional, this adds default keybindings