nvim/vifm: improved handling of pdf files with semicolons and other special characters

master
tiyn 10 months ago
parent e8a7b8d896
commit 50f5b2e2c7

@ -9,13 +9,13 @@ return {
texoutputext = "pdf",
textopdf = "pdflatex -synctex=1 -halt-on-error -interaction=batchmode %docroot%",
textopdfviewerlaunch =
"zathura --synctex-editor-command 'nvim --headless -es --cmd \"lua require('\"'\"'knaphelper'\"'\"').relayjump('\"'\"'%servername%'\"'\"','\"'\"'%{input}'\"'\"',%{line},0)\"' %outputfile%",
"zathura --synctex-editor-command 'nvim --headless -es --cmd \"lua require('\"'\"'knaphelper'\"'\"').relayjump('\"'\"'%servername%'\"'\"','\"'\"'%{input}'\"'\"',%{line},0)\"' ./%outputfile%",
textopdfviewerrefresh = "none",
textopdfforwardjump = "zathura --synctex-forward=%line%:%column%:%srcfile% %outputfile%",
-- markdown
mdoutputext = "html",
mdoutputext = "pdf",
mdtopdf = "pandoc %docroot% -o %outputfile%",
mdtopdfviewerlaunch = "zathura %outputfile%",
mdtopdfviewerlaunch = "zathura ./%outputfile%",
mdtohtml = "pandoc --standalone %docroot% -o %outputfile%",
mdtohtmlviewerlaunch = "firefox --kiosk --new-window %outputfile%",
mdtohtmlviewerrefresh = "none",

@ -171,7 +171,7 @@ command! reload :write | restart
" program.
" PDF
filextype *.pdf zathura %c %i &, apvlv %c, xpdf %c
filextype *.pdf zathura ./%c %i &, apvlv %c, xpdf %c
fileviewer *.pdf
\ vifmimg pdf %px %py %pw %ph %c
\ %pc
@ -183,14 +183,14 @@ filetype *.csv,*.xlsx,*.sc sc-im %f
" PostScript
filextype *.ps,*.eps,*.ps.gz
\ {View in zathura}
\ zathura %f,
\ zathura ./%f,
\ {View in gv}
\ gv %c %i &,
" Djvu
filextype *.djvu
\ {View in zathura}
\ zathura %f,
\ zathura ./%f,
\ {View in apvlv}
\ apvlv %f,
fileviewer *.djvu
@ -201,7 +201,7 @@ fileviewer *.djvu
" epub
filextype *.epub
\ {View in zathura}
\ zathura %f,
\ zathura ./%f,
fileviewer *.epub
\ vifmimg epub %px %py %pw %ph %c
\ %pc

Loading…
Cancel
Save