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

[BUG] Floating window does not inherit name #549

Open
1 task done
BSiddharth opened this issue Mar 8, 2024 · 0 comments
Open
1 task done

[BUG] Floating window does not inherit name #549

BSiddharth opened this issue Mar 8, 2024 · 0 comments

Comments

@BSiddharth
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

image
At the botttom we can se name is provided but the term gets null

Expected Behavior

Floating terminal should have been named "Will it work?"

Steps To Reproduce

My config:

require("toggleterm").setup({
	size = function(term)
		if term.direction == "horizontal" then
			return 15
		elseif term.direction == "vertical" then
			return vim.o.columns * 0.4
		end
	end,
	open_mapping = "<A-v>",
	direction = "vertical"
})

vim.keymap.set("n", "<A-f>", ":ToggleTerm direction=float name='Will it work?'<CR>",
	{ desc = "Floating term" })

Just press Alt-F.

Environment

- OS:Windows
- neovim version: 0.9.4
- Shell: Powershell

Anything else?

This could be windows specific problem. A whille ago this config worked in linux tho I have not double checked

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant