mirror of
https://github.com/preservim/nerdtree.git
synced 2024-10-18 22:00:21 +03:00
comment Path#str()
This commit is contained in:
parent
cbb0a8698f
commit
a854feeb1e
@ -2191,7 +2191,24 @@ endfunction
|
|||||||
|
|
||||||
"FUNCTION: Path.str() {{{3
|
"FUNCTION: Path.str() {{{3
|
||||||
"
|
"
|
||||||
"Gets the actual string path that this obj represents.
|
"Returns a string representation of this Path
|
||||||
|
"
|
||||||
|
"Takes an optional dictionary param to specify how the output should be
|
||||||
|
"formatted.
|
||||||
|
"
|
||||||
|
"The dict may have the following keys:
|
||||||
|
" 'format'
|
||||||
|
" 'escape'
|
||||||
|
"
|
||||||
|
"The 'format' key may have a value of:
|
||||||
|
" 'Cd' - a string to be used with the :cd command
|
||||||
|
" 'Edit' - a string to be used with :e :sp :new :tabedit etc
|
||||||
|
" 'OS' - a string to be used with shell commands
|
||||||
|
"
|
||||||
|
"If not specified, a generic unix style path string will be returned
|
||||||
|
"
|
||||||
|
"The 'escape' key, if specified will cause the output to be escaped with
|
||||||
|
"shellescape()
|
||||||
function! s:Path.str(...)
|
function! s:Path.str(...)
|
||||||
let options = a:0 ? a:1 : {}
|
let options = a:0 ? a:1 : {}
|
||||||
let toReturn = ""
|
let toReturn = ""
|
||||||
|
Loading…
Reference in New Issue
Block a user