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

Improve window navigation

Open carbon-steel opened this issue 6 months ago • 0 comments

This issue is inspired by this comment from @kandodev

@carbon-steel what's the best way to select the popup when it's in a split? h and l move me left and right but I can't navigate to the popup (I can use the w to cycle but would like to direct navigate to it). Alternatively, is there a way to focus on the popup immediately after creating the split? The only time I want to create a split is to create the split and then close the popup. Would be great if there's a way to do that through a keybind.

My thoughts on the issue:

  • I do find myself cycling through windows with <c-w>w a lot and it is annoying. This is a problem that does need to be addressed.
  • For the same reason why I am not eager to introduce, into the plugin, buffer management like "open a popup with the same buffer as a previously closed popup, I am also wary of introducing window management. I think there should be plugins that improve window management and this plugin should work synergize with them.
  • I think what we should do is recommend an optional plugin (in this plugin's README) to use with the detour plugin that will provide the window navigation features it's missing.

I'll need time to look through the options and find a suitable recommendation.

carbon-steel avatar Aug 08 '24 19:08 carbon-steel