make "OS" the default format for Path#str()

remove the old "OS" format option and introduce "UI" (which is the old
default)
This commit is contained in:
marty
2009-09-03 15:09:34 +12:00
parent a854feeb1e
commit effb5d4de0
4 changed files with 36 additions and 36 deletions

View File

@@ -30,7 +30,7 @@ function! NERDTreeExecFile()
let treenode = g:NERDTreeFileNode.GetSelected()
echo "==========================================================\n"
echo "Complete the command to execute (add arguments etc):\n"
let cmd = treenode.path.str({'format': 'OS', 'escape': 1})
let cmd = treenode.path.str({'escape': 1})
let cmd = input(':!', cmd . ' ')
if cmd != ''

View File

@@ -85,7 +85,7 @@ function! NERDTreeMoveNode()
let newNodePath = input("Rename the current node\n" .
\ "==========================================================\n" .
\ "Enter the new path for the node: \n" .
\ "", curNode.path.str({'format': 'OS'})
\ "", curNode.path.str()
if newNodePath ==# ''
call s:echo("Node Renaming Aborted.")

View File

@@ -66,11 +66,11 @@ endfunction
function! NERDTreeGitMove()
let node = g:NERDTreeFileNode.GetSelected()
let path = node.path
let p = path.str({'format': 'OS', 'escape': 1})
let p = path.str({'escape': 1})
let newPath = input("==========================================================\n" .
\ "Enter the new path for the file: \n" .
\ "", node.path.str({'format': 'OS'}))
\ "", node.path.str())
if newPath ==# ''
call s:echo("git mv aborted.")
return
@@ -82,19 +82,19 @@ endfunction
function! NERDTreeGitAdd()
let node = g:NERDTreeFileNode.GetSelected()
let path = node.path
call s:execGitCmd('add ' . path.str({'format': 'OS', 'escape': 1}))
call s:execGitCmd('add ' . path.str({'escape': 1}))
endfunction
function! NERDTreeGitRemove()
let node = g:NERDTreeFileNode.GetSelected()
let path = node.path
call s:execGitCmd('rm ' . path.str({'format': 'OS', 'escape': 1}))
call s:execGitCmd('rm ' . path.str({'escape': 1}))
endfunction
function! NERDTreeGitCheckout()
let node = g:NERDTreeFileNode.GetSelected()
let path = node.path
call s:execGitCmd('checkout ' . path.str({'format': 'OS', 'escape': 1}))
call s:execGitCmd('checkout ' . path.str({'escape': 1}))
endfunction
function! s:execGitCmd(sub_cmd)