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.—
Reply to this email directly, view it on GitHub.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.![]()
it is impossible to tell if the value is global or local.
:echo haslocaldir(-1, tabno)
—
Reply to this email directly, view it on GitHub.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.![]()
Thank you. Couldn't figure it out myself.
—
Reply to this email directly, view it on GitHub.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.![]()
Closed #9832.
—
Reply to this email directly, view it on GitHub.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.![]()
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
:tcdwas used in a tab, without switching to that tab first.Describe the solution you'd like
There could bet:cwdandw:cwdvariables that would be synchronized with:tcdand: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 pwdcan 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.
—
Reply to this email directly, view it on GitHub.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.![]()
Yes, haslocaldir() solves the problem.
—
Reply to this email directly, view it on GitHub.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you commented.![]()