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", texoutputext = "pdf",
textopdf = "pdflatex -synctex=1 -halt-on-error -interaction=batchmode %docroot%", textopdf = "pdflatex -synctex=1 -halt-on-error -interaction=batchmode %docroot%",
textopdfviewerlaunch = 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", textopdfviewerrefresh = "none",
textopdfforwardjump = "zathura --synctex-forward=%line%:%column%:%srcfile% %outputfile%", textopdfforwardjump = "zathura --synctex-forward=%line%:%column%:%srcfile% %outputfile%",
-- markdown -- markdown
mdoutputext = "html", mdoutputext = "pdf",
mdtopdf = "pandoc %docroot% -o %outputfile%", mdtopdf = "pandoc %docroot% -o %outputfile%",
mdtopdfviewerlaunch = "zathura %outputfile%", mdtopdfviewerlaunch = "zathura ./%outputfile%",
mdtohtml = "pandoc --standalone %docroot% -o %outputfile%", mdtohtml = "pandoc --standalone %docroot% -o %outputfile%",
mdtohtmlviewerlaunch = "firefox --kiosk --new-window %outputfile%", mdtohtmlviewerlaunch = "firefox --kiosk --new-window %outputfile%",
mdtohtmlviewerrefresh = "none", mdtohtmlviewerrefresh = "none",

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

Loading…
Cancel
Save