Source

aurum / test / cmd-move,track,junk-subdir.in

:command -bar CS :execute 'Run AuStatus' | bwipeout!
:command -bar WTax :WTA template g:template showfiles showrenames showcopies
:command -nargs=1 SR :R silent <args>
:let g:subdir='directory/subdir'
:let g:template="$rev\n*$changes\n@$description\n>$renames\n+$copies\n$empty"
:W{{{1 Track directory
:R call mkdir(g:subdir)
:R call writefile(['Dummy string'], g:subdir.'/subfile')
:R call writefile(['Second dummy string'], g:subdir.'/subfile2')
:SR AuTrack directory/
:CS
:SR AuCommit message Added\ directory/subdir/subfile{,2} **
:WTax
:W{{{1 Move directory to unexistent directory
:SR AuMove directory/ unexistentdir
:CS
:SR AuCommit message Moved\ directory/\ to\ unexistentdir/ **
:WTax
:W{{{1 Move directory to an existing directory
:R call mkdir(g:subdir, 'p')
:R call writefile(['Dummy string'], g:subdir.'/subfile')
:SR AuTrack directory/
:SR AuCommit message Recreated\ directory/subdir/subfile **
:WTax
:SR AuMove unexistentdir directory
:CS
:SR AuCommit message Moved\ unexistentdir to\ directory **
:WTax
:W{{{1 Junk directory
:SR AuJunk directory
:CS
:SR AuCommit message Removed\ directory **
:WTax
:source addmessages.vim
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.