I have a question analogous to this one, but for listings instead of figures.
In my TeX file, I have multiple listings defined as follows:
\begin{lstlisting}[caption={A really, really, really, really, really long caption}]
<code>
\end{lstlisting}
Now, my List of Listings uses the entire caption, which looks slightly silly. Is there a way to define a short caption for the LoL just like the \caption[short caption]{long caption}
command for the LoF?