mirror of
https://github.com/acedanger/dotfiles.git
synced 2025-12-06 06:40:11 -08:00
46 lines
1.1 KiB
Lua
46 lines
1.1 KiB
Lua
---@module "events.augment-command-palette"
|
|
---@author sravioli
|
|
---@license GNU-GPLv3
|
|
|
|
---@diagnostic disable: undefined-field
|
|
local wt = require "wezterm"
|
|
local act = wt.action
|
|
|
|
wt.on("augment-command-palette", function(_, _)
|
|
return {
|
|
{
|
|
brief = "Rename tab",
|
|
icon = "md_rename_box",
|
|
|
|
action = act.PromptInputLine {
|
|
description = "Enter new name for tab",
|
|
action = wt.action_callback(function(inner_window, _, line)
|
|
if line then
|
|
inner_window:active_tab():set_title(line)
|
|
end
|
|
end),
|
|
},
|
|
},
|
|
{
|
|
brief = "Colorscheme picker",
|
|
icon = "md_palette",
|
|
action = require("picker.colorscheme"):pick(),
|
|
},
|
|
{
|
|
brief = "Font picker",
|
|
icon = "md_format_font",
|
|
action = require("picker.font"):pick(),
|
|
},
|
|
{
|
|
brief = "Font size picker",
|
|
icon = "md_format_font_size_decrease",
|
|
action = require("picker.font-size"):pick(),
|
|
},
|
|
{
|
|
brief = "Font leading picker",
|
|
icon = "fa_text_height",
|
|
action = require("picker.font-leading"):pick(),
|
|
},
|
|
}
|
|
end)
|