vim-docker-tools icon indicating copy to clipboard operation
vim-docker-tools copied to clipboard

Keep last lines of command output (after send command to image) visible in window

Open vlcinsky opened this issue 6 years ago • 2 comments

Currently, when a command is sent to a docker image (e.g. ping google.com, or find ., only first lines of the output are shown in vim window and after the window gets filled, new lines appended to the end are not visible (unless you move there cursor manually).

Expected behaviour is to keep the last line always visible, similarly as when you run such command in neovim :terminal window.

Note, that if #20 (follow mode for logs) are to be implemented, the same shall apply to them too.

vlcinsky avatar Jul 30 '18 18:07 vlcinsky

Would you mind providing screenshot? Thanks.

kkvh avatar Jul 31 '18 01:07 kkvh

Sure. Sending command find . to running ubuntu image.

After I run it: javl t810 192 168 8 170 - byobu_023

Then I :set number to show line numbers: javl t810 192 168 8 170 - byobu_024

and use G to jump to the bottom: javl t810 192 168 8 170 - byobu_025

using:

                                                                                                     
:version
NVIM v0.3.1-1-g489d32f2b

vlcinsky avatar Jul 31 '18 08:07 vlcinsky