windows.nvim icon indicating copy to clipboard operation
windows.nvim copied to clipboard

Terminal emulator enters normal mode but parses commands to terminal

Open Skosulor opened this issue 3 years ago • 9 comments

When entering terminal mode :term the mode is set to normal instead of terminal but commands are parsed to the terminal. For example if ss is bound to function_x() the text function_x() is parsed to the terminal as text instead of executing the command. Changing to insert mode does not work as i is instead parsed to the terminal. Same goes for commands.

Temporary solution is to have a splitview and mouse click the other buffer to change buffer. After that it is possible to swap back to the terminal and use it as normal.

Setup:

   require('windows').setup({
        autowidth = {
            enable = true,
            winwidth = 30,
        },
        ignore = {
            buftype = { "quickfix", "term", "temrinal", "fish", "nvim_terminal_emulator" , "Terminal"},
            filetype = { "NvimTree", "neo-tree", "undotree", "gundo", "Telescope", "telescope" }
        },
        animation = {
            enable = true,
            duration = 300,
            fps = 60,
            easing = "in_out_sine"
        }
    })

Skosulor avatar Oct 27 '22 08:10 Skosulor

I meet same problem

pwqbot avatar Nov 15 '22 09:11 pwqbot

Fixed it by disabling animation

Skosulor avatar Nov 15 '22 09:11 Skosulor

Fixed it by disabling animation

thanks

pwqbot avatar Nov 15 '22 09:11 pwqbot

Confirm the problem, but ignore option works for me:

   require('windows').setup({
        ignore = {
            buftype = { "quickfix", "temrinal" }
        },
    })

P.S.: No need to write everything you want into ignore.buftype. Only values that are listed in :help 'buftype'.

anuvyklack avatar Nov 16 '22 08:11 anuvyklack

Very strange. I had this problem last night, but today it is gone. I'm on the Neovim nightly.

anuvyklack avatar Nov 16 '22 08:11 anuvyklack

Very strange. I had this problem last night, but today it is gone. I'm on the Neovim nightly.

I still have the same problem after set ignore and updating to neovim nightly, and neovim may stick and consume 100% CPU. Only removing animation.nvim solves that.

pwqbot avatar Nov 16 '22 11:11 pwqbot

I'll take care of it as soon as I have it again. What setup do you use? What OS and terminal?

anuvyklack avatar Nov 16 '22 12:11 anuvyklack

I'll take care of it as soon as I have it again. What setup do you use? What OS and terminal?

I use wezterm at WSL and macOS and ssh to my server with nvim v0.8.1 installed, both have this problem

pwqbot avatar Nov 17 '22 12:11 pwqbot

Any update on this? The animation feature is great with this plugin.

pwqbot avatar Mar 18 '23 07:03 pwqbot