Christian wrote:

> On Mo, 05 Okt 2020, Blay263 wrote:
> > On Monday, October 5, 2020 at 10:28:08 AM UTC-4 Bram Moolenaar wrote:
> >>     I have been thinking of this, but it raises many questions:
> >> 
> >>     - How to focus a popup? I imagine in most cases you want to switch
> >>     between the current window and the popup, back and forth. This
> >>     matters especially if you already have a dozen split windows, you
> >>     don't want to cycle through all of them to reach the popup, and
> >>     you don't want to cycle through all windows to end up in the one
> >>     you were coming from.
> 
> Can't we amend CTRL-W_P to this? E.g. if there exists a popup window, go 
> to that one, else if there exists a preview window go to that one else 
> error. I would imagine, that the preview window is not of that much use 
> now with popup windows. 

Yeah, that could work.  To remain backwards compatible CTRL-W P would
cycle through any preview and focusable popup windows.  After the last
one back to the current window.  Also, we can make Esc in Normal mode go
back to the current window, as it functions as a "get out of here" key.

I was thinking of a "focusable" flag for popups.  That would require
another command to go to non-focusable popup windows (if you really want
to).  Another way could be to have some kind of priority.  Or let it
depend on the buffer type.  Anyway, still lot of choices to get right.

-- 
Just remember...if the world didn't suck, we'd all fall off.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/202010061509.096F9Ljv2698952%40masaka.moolenaar.net.

Raspunde prin e-mail lui