iamcco / markdown-preview.nvim

markdown preview plugin for (neo)vim
MIT License
6.82k stars 284 forks source link

Design bug: Preview takes focus *away* from terminal #686

Open EdmundsEcho opened 4 months ago

EdmundsEcho commented 4 months ago

Thank you for this productive plugin.

I have the plugin activate on BufRead. When I fire up my markdown in Neovim, the browser opens up - Great! But, in doing so, it takes the focus away from my terminal. This behavior interrupts my workflow... and often has me (dare I say it) using the mouse to reactive my terminal! :))

Perhaps when the plugin fires-up the browser it does so without taking focus away from the terminal.

In case this isn't a universal problem, here are my specifics: Browser: Firefox OS: Mac 14.5

EdmundsEcho commented 2 days ago

If anyone has an idea how to control the focus in the source code of the plugin, I could try to introduce an option to configure the focus behavior. I just need a pointer to get started.