akinsho / akinsho/toggleterm.nvim

Toggleterm adds cursor line number when using count modifier to set the id

Abierto
#569 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Lua
Estrellas
5.6k
Forks
206
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

I get this weird behavior when trying to manage multiple terminal instances using keymaps.

```lua
vim.keymap.set("n", "", ":ToggleTerm size=20 direction=vertical", {noremap = true})
```

It opens the terminal#1, all fine. It works perfectly with no count modifier.
But when i tap `4` while the cursor is in line 30, it opens the terminal#34 instead of terminal#4.
The only way back is moving the cursor to line 1.

Using the keymap without the return i noticed the value being passed to the command is this:

```lua
.,.+4ToggleTerm size=20 direction=vertical
```

I guess this points to the current line number.

How can i avoid this?
Any help with this will be really appreciated!
Thanks

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.