Hi,

On Wed, Feb 23, 2022 at 5:24 AM Sergey Vlasov <[email protected]>
wrote:

> *Is your feature request about something that is currently impossible or
> hard to do? Please describe the problem.*
>
> When working with multiple tab pages, it is impossible to tell if :tcd
> was used in a tab, without switching to that tab first.
>
> *Describe the solution you'd like*
> There could be t:cwd and w:cwd variables that would be synchronized with
> :tcd and :lcd.
>
> *Describe alternatives you've considered*
>
>    - getcwd(-1, <tabnr>) returns the working directory for specific tab
>    page but it is impossible to tell if the value is global or local.
>    - :verbose pwd can tell is the value is local or global but the
>    command works only for the current tab. One has to switch to another tab
>    and then parse the output from :verbose pwd.
>
>
> Did you try using the haslocaldir() function? This function will return 2
if a tabpage
has a  tab-local directory.

- 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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/CAAW7x7kp%3DKD6C9BsbMdYonotENOxmHqYvthnes7%2Bb5YUap0zSg%40mail.gmail.com.

Raspunde prin e-mail lui