mirror of
https://github.com/preservim/nerdtree.git
synced 2025-11-08 11:23:48 -05:00
add oPath#StrForCd
This commit is contained in:
@@ -1188,6 +1188,19 @@ function! s:oPath.StrAbs() dict
|
|||||||
return resolve(self.Str(1))
|
return resolve(self.Str(1))
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
"FUNCTION: oPath.StrForCd() {{{3
|
||||||
|
"
|
||||||
|
" returns a string that can be used with :cd
|
||||||
|
"
|
||||||
|
"Return:
|
||||||
|
"a string that can be used in the view to represent this path
|
||||||
|
function! s:oPath.StrForCd() dict
|
||||||
|
if s:running_windows
|
||||||
|
return self.StrForOS(0)
|
||||||
|
else
|
||||||
|
return self.StrForOS(1)
|
||||||
|
endif
|
||||||
|
endfunction
|
||||||
"FUNCTION: oPath.StrDisplay() {{{3
|
"FUNCTION: oPath.StrDisplay() {{{3
|
||||||
"
|
"
|
||||||
"Returns a string that specifies how the path should be represented as a
|
"Returns a string that specifies how the path should be represented as a
|
||||||
|
|||||||
Reference in New Issue
Block a user