Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lifei opened this issue Jan 22, 2025 · 0 comments
Open

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

lifei opened this issue Jan 22, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@lifei
Copy link

lifei commented Jan 22, 2025

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

@lifei lifei added the bug Something isn't working label Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant