Skip to content

The name of the Command Palette Item is not right #6591

@lifei

Description

@lifei

What Operating System(s) are you seeing this problem on?

Windows

Which Wayland compositor or X11 Window manager(s) are you using?

No response

WezTerm version

20240203-110809-5046fc22

Did you try the latest nightly build to see if the issue is better (or worse!) than your current version?

Yes, and I updated the version box above to show the version of the nightly that I tried

Describe the bug

Image

To Reproduce

Use the following configuration, then press Ctrl+Shift+P

Configuration

local wezterm = require("wezterm")
local act = wezterm.action

wezterm.on("augment-command-palette", function(_, _)
return {
{
brief = "Tab: Rename Current Tab",
icon = "md_rename_box",
doc = "Tab: Rename the title of the current tab.",

		action = act.PromptInputLine({
			description = "Enter new name for tab",
			initial_value = "My Tab Name",
			action = wezterm.action_callback(function(window, _, line)
				if line then
					window:active_tab():set_title(line)
				end
			end),
		}),
	},
}

end)

Expected Behavior

Use the brief or doc

Logs

No response

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions