@Bram wondering if there has been any more thoughts on focusable popup windows? Wouldn't a focusable flag and support for win_gotoid(windid) be enough?
On Tuesday, October 6, 2020 at 11:29:13 AM UTC-7 [email protected] wrote: > Here are the different phases I think we need to have based on my priority. > > 1. Focus (useful for fuzzy finders as well as peeking into > docs/diagnostics error that are long or big) > a. "focusable" flag > b. win_gotoid(winid) to move focus to popup > > 2. All insert mode for popup (useful for fuzzy finders) > > 3. Cycle with Ctrl+W P > > If we have #1 we don't need to worry about #3 or how to get out of popup > though having a unified approach would make it consistent across different > plugins. > > I'm currently primarily interested in #1 and #2 only. > > > On Tuesday, October 6, 2020 at 8:09:30 AM UTC-7 Bram Moolenaar wrote: > >> >> 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/0da9347f-66d1-44ea-a833-af1b8bda8928n%40googlegroups.com.
