akinsho / toggleterm.nvim

A neovim lua plugin to help easily manage multiple terminal windows
GNU General Public License v3.0
4.06k stars 170 forks source link

[BUG] Floating window does not inherit name #549

Open BSiddharth opened 5 months ago

BSiddharth commented 5 months ago

Is there an existing issue for this?

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