Great! Somebody knowlegeable in bash-completion and the lyx command line should look to the lyx-completion-script currently, if it detects "-e" it tries to complete with a filename terminated in one of 'pdf PDF ps PS xhtml XHTML pdf1 pdf2 pdf3 pdf4 PDF1 PDF2 PDF3 PDF4' but what it is required is something in the list of formats (from man page for lyx) -e [--export] fmt where fmt is the export format of choice (latex, pdflatex, luatex, xetex, xhtml, text, lyx, ps, pdf, ...).
a line for the option "-e|--export" --export|-e) COMPREPLY=( $(compgen -W 'latex pdflatex luatex' -- $cur) );; works. I do not use lyx in the form: lyx my.lyx -e pdflatex that produces my.pdf using pdflatex, but if the completion line is there, it should do the correct thing lyx my.lyx -e <space><tab><tab> returns with the suggested change latex pdflatex luatex and lyx my.lyx -e p<space><tab><tab> returns "pdflatex" thanks Hernán El Sat, 26 Mar 2022 11:38:33 +0100 Pavel Sanda <sa...@lyx.org> escribió: > On Fri, Mar 25, 2022 at 01:53:53PM -0300, Hernán Gustavo Solari wrote: > > I work as well as the other. > > The fix was committed to upstream and will be fixed in 2.4. > Pavel -- Hernán G Solari http://users.df.uba.ar/solari/ -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel