## #468 Make all the files TXS can handle, opened by hyperliinks from the embedded viewer, be opened in TXS

open
nobody
None
1
2013-05-25
2013-05-23
Denis Bitouzé
No

At least on Linux with TeXstudio 2.6.0 beta (SVN 4017M), if the following MCE:

\documentclass{minimal}
\usepackage{filecontents}
\begin{filecontents*}{otherfile.tex}
Content of otherfile.tex
\end{filecontents*}
\begin{filecontents*}{otherfile.cfg}
Content of otherfile.cfg
\end{filecontents*}
\usepackage{hyperref}
\begin{document}
\href{otherfile.tex}{Go to \texttt{otherfile.tex}}

\href{otherfile.cfg}{Go to \texttt{otherfile.cfg}}
\end{document}


is run with pdflatex and viewed with the embedded TXS viewer,

1. clicking on the first link "Go to otherfile.tex" opens the corresponding file in TXS,
2. clicking on the second link "Go to otherfile.cfg" doesn't open the file corresponding in TXS, whereas TXS deals with .cfg files.

It could be nice to make .cfg files, and more generally all the files TXS can handle, opened in TXS as well.

BTW, in the previous example, the \begin{filecontents*} commands is recognized by TXS, but not the \end{filecontents*} ones.

## Discussion

• Tim Hoffmann
2013-05-25

For links, TeXstudio asks the OS to open the file with the default program for it. I think this policy is better than forcing opening in TXS. You can associate .cfg files with TXS in your OS. Maybe we could add an option for this in the installer.

• Denis Bitouzé
2013-05-25

For links, TeXstudio asks the OS to open the file with the default program for it. I think this policy is better than forcing opening in TXS.

If TXS would force .cfg files to be open with it from any PDF viewer, I would agree. But, for links from the TXS embedded viewer, it is harmless IMHO.

You can associate .cfg files with TXS in your OS.

I know but, once again, my point is to make it easy for newbies.

Maybe we could add an option for this in the installer.

I strongly agree!