I created a new command like this:
\newcommand{\longref}[1]{{\ref{#1} (\nameref{#1})}}
it works as expected - it prints the chapter number and it's name. Great.
Now I'm using Texstudio, and it always showed me a list of available labels when I was typing in a \ref
-command. With my own command, it doesn't do that anymore.
Is there any way I get auto-completion with my own command?