flutter-tools.nvim icon indicating copy to clipboard operation
flutter-tools.nvim copied to clipboard

__FLUTTER_DEV_LOG__ "tail -f" mode

Open amitkot opened this issue 3 years ago • 4 comments

I noticed sometimes the __FLUTTER_DEV_LOG__ buffer does not follow the latest debug lines in a "tail -f" manner, and sometimes it does.

This is something that could be useful to toggle for me. Probably - if not scrolled to the bottom - do not follow latest debug lines. If scrolled to the bottom - always show latest lines in "tail -f" mode.

It can also be a toggle switch I can map to some key if the above design is too complicated :)

If other people think this could be useful I might be inclined to do the actual coding.

amitkot avatar Sep 28 '22 07:09 amitkot

@amitkot I exclusively use this plugin with DAP nowadays so I'm not really very bothered by how it works in non-dap mode. Feel free to explore this as an option in the config that causes it to behave in the way you describe. I would suggest the simplest solution other than trying to do anything too fancy. Not sure if other users will chime in but if you raise a PR tag me and I'll have a look

akinsho avatar Sep 28 '22 07:09 akinsho

@akinsho I'll try DAP as well first, thanks!

amitkot avatar Sep 29 '22 07:09 amitkot

@akinsho I noticed that entering edit mode in the REPL window in DAP achieves what I was aiming for. Is there a way to have the REPL window follow last log line without being in edit mode in it?

amitkot avatar Sep 29 '22 10:09 amitkot

@amitkot dap's functionality is not under the control of this plugin, you can configure it using the docs from that repo or can ask the author of that plugin for the desired functionality, but generally this plugin defers to dap when it comes to handling of these sorts of things

akinsho avatar Sep 29 '22 10:09 akinsho

Thanks again @akinsho for the work you put into this plugin! Closing this issue.

amitkot avatar Nov 02 '22 12:11 amitkot