Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent output to terminal for 1 file w/ N graphs. #20

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions ftplugin/dot.vim
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,14 @@ if !exists('g:WMGraphviz_viewer')
endif
endif

" Now using -O option, which automatically outputs to
" filepath.input_ext[".counter"]".output_exe" and we ignore all ".counter"s.
" They represent rendered graphs past the first one in the input file. This
" fixes the plugin issue that rendered graphs past the first one are output to
" the terminal window.
" Tested with graphviz 2.40.1 on Linux.
if !exists('g:WMGraphviz_shelloptions')
let g:WMGraphviz_shelloptions = ''
let g:WMGraphviz_shelloptions = '-O'
endif

if !exists('g:WMGraphviz_dot2tex')
Expand All @@ -75,7 +81,7 @@ if !exists('g:WMGraphviz_tool')
endif

fu! GraphvizOutputFile(output)
return expand('%:p:r') . '.' . a:output
return expand('%:p') . '.' . a:output
endfu

fu! GraphvizLogFile()
Expand Down