Hi Shane,

I replied to you over at #6445 <https://github.com/vim/vim/issues/6445>. As 
for the two tickets linked, #8122 <https://github.com/vim/vim/issues/8122> 
is very different in terms of the issue described and a proposed solution. 
It's hard to compare them. A preview window is able to help in the limited 
case that #8122 describes but #6445 describes a desire to give windows a 
specific purpose. Vim already has terminal buffers, pop-ups, netrw folder 
views, etc but there's no great way to describe a specialty window that's 
meant to be transient, like a preview window, vs a special window/buffer 
that you want to keep around for long periods of time and don't want Vim 
pulling focus away by accident. The proposed solution from #6445 in my 
opinion answers this need very effectively.

> I changed :cnext and other commands to prefer the last 'nostickybuf' 
window. 

To clarify this point, I didn't change any of these commands directly. I 
simply changed the behavior of "find/save the previous window" to ignore 
windows that have 'stickybuf' applied. All other commands / logic is the 
same and 'switchbuf' remains unchanged. I was really pleasantly surprised 
at how well that works!

Hope this makes things more clear :)
Colin
On Thursday, December 28, 2023 at 6:37:53 AM UTC shane.qian wrote:

> > I hope this is the right place to ask a question to Vim maintainers. My
> > question is about this post: https://github.com/vim/vim/issues/6445
>
> not sure if it was right place, but i replied it in your ticket.
> or anyway, please refer 'https://github.com/vim/vim/issues/8122'
>
> i was struggle or try to suggest a similar idea about 'sticky window',
> but later i felt it maybe not a vim style, and realized 'preview window' 
> can help it in most cases.
>
> -- 
> shane.xb.qian
>

-- 
-- 
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/b0f76908-2f4d-45ee-94a7-940ac0b331dan%40googlegroups.com.

Raspunde prin e-mail lui