Hi,

On Sat, Apr 13, 2019 at 5:06 AM Justin M. Keyes
<[email protected]> wrote:
>
> Something I don't like in the Neovim implementation: creating a new tabpage
> (:tabnew, :tabedit) "inherits" the tab-local dir of the current tabpage.
> Example:
>
> :tcd /
> :tabnew
> :echo getcwd()  " => /
>
> What is the behavior of this PR is that respect?
>

The behavior of the current implementation is the same as that of the
neovim behavior. When a new tabpage is created, it inherits the
directory state of the previous tabpage and window. If the previous
tabpage had a tab-local directory set, then the new tabpage also has the
same tab-local directory set.  If the previous window had a window-local
directory, then the new window in the new tabpage also has a
window-local directory.

>
> This is annoying. We did it this way to mimic window-local directories, but I
> don't think it's necessary. If someone wants "sticky" behavior they can use
> :lcd. Tab-local directories are more useful as an "alternative global CWD"
> for only a particular tab.
>

Are you suggesting that we use the tab-local directory (if set) of the
previous tabpage for the new window in the new tabpage? If it is not
set, then use the global directory. This will not be backward compatible
though.

Regards,
Yegappan

-- 
-- 
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].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui