voldikss / vim-floaterm

:computer: Terminal manager for (neo)vim
MIT License
2.48k stars 78 forks source link

floaterm_open_command at specific line #161

Closed fedoranvar closed 3 years ago

fedoranvar commented 4 years ago

Describe the bug

Adding as argument for floaterm_open_command line number

e.g. like in nvim

nvim +{number} {file}

maybe it will look like:

execute g:floaterm_open_command . ' ' . line_number . ' ' . fnameescape(filename)

To Reproduce

Enviroment

health#floaterm#check

health#nvim#check

Configuration

Performance

Remote Plugins

terminal

health#provider#check

Clipboard (optional)

Python 2 provider (optional)

Python 3 provider (optional)

Ruby provider (optional)

Node.js provider (optional)

Screenshots(Optional, GIF is better)

voldikss commented 3 years ago

Since there are no solutions for #184, this issue is also not possible to fix. Regreted so much.

Though it might be able to solve by modifying floaterm script but it is too much harder for me.

CabalCrow commented 4 months ago

If you are using nvr you could use a command like this: nvr --remote-send "<c-z>"; nvr --remote +100 test.log; In this case is bound to FloatermHide (you could also do kill). This would hide the terminal which would then open the file with the correct line in the buffer you opened the terminal from.