gorbit99 / codewindow.nvim

MIT License
431 stars 16 forks source link

Feature request: Add open & focus in one keybinding #78

Open rbuchberger opened 2 months ago

rbuchberger commented 2 months ago

Hi! I really love this plugin, thanks for making it.

My preferred workflow is to have one keybinding which both toggles and focuses codewindow. Basically this:

local codewindow = require("codewindow")

if require("codewindow.window").is_minimap_open() then
 codewindow.close_minimap()
else
  codewindow.open_minimap()
  codewindow.toggle_focus()
end

It would be nice not to have to script this myself; perhaps it could be added? Or could toggle_focus open codewindow if necessary?

Thanks!