codewindow.nvim icon indicating copy to clipboard operation
codewindow.nvim copied to clipboard

Feature request: Add open & focus in one keybinding

Open rbuchberger opened this issue 7 months ago • 0 comments

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!

rbuchberger avatar Jul 10 '24 10:07 rbuchberger