Am Dienstag, 23. Juli 2019, 16:30:30 CEST schrieb Jürgen Spitzmüller:
> Am Dienstag, den 23.07.2019, 14:42 +0200 schrieb Kornel Benko:
> > $ okular --version
> > Qt: 4.8.7
> > KDE Development Platform: 4.14.22
> > Okular: 0.25.0
> 
> OK, that's an old version. I have
> 
> okular 1.7.3 (KDE Applications 19.04.3)
> 
> Jürgen
> 

Unfortunately I cannot compile okular myself (too many missing dependences).
But looking into the source of okular (1.9), it should be possible.
Configuring editors in okular, see conf/dlgeditor.cpp:28, there should be a 
dialog
    m_dlg->kcfg_ExternalEditor->addItem( i18nc( "Text editor", "Custom Text 
Editor" ) );
    m_dlg->kcfg_ExternalEditor->addItem( i18nc( "Text editor", "Kate" ), 1 );
    m_dlg->kcfg_ExternalEditor->addItem( i18nc( "Text editor", "Kile" ), 2 );
    m_dlg->kcfg_ExternalEditor->addItem( i18nc( "Text editor", "SciTE" ), 3 );
    m_dlg->kcfg_ExternalEditor->addItem( i18nc( "Text editor", "Emacs client" 
), 4 );
    m_dlg->kcfg_ExternalEditor->addItem( i18nc( "Text editor", "Lyx client" ), 
5 );
    m_dlg->kcfg_ExternalEditor->addItem( i18nc( "Text editor", "TeXstudio" ), 6 
);

And in core/texteditors_p.h:24
    editors.insert( SettingsCore::EnumExternalEditor::Kate,
        QStringLiteral( "kate --line %l --column %c" ) );
    editors.insert( SettingsCore::EnumExternalEditor::Kile,
        QStringLiteral( "kile --line %l" ) );
    editors.insert( SettingsCore::EnumExternalEditor::Scite,
        QStringLiteral( "scite %f \"-goto:%l,%c\"" ) );
    editors.insert( SettingsCore::EnumExternalEditor::Emacsclient,
        QStringLiteral( "emacsclient -a emacs --no-wait +%l %f" ) );
    editors.insert( SettingsCore::EnumExternalEditor::Lyxclient,
        QStringLiteral( "lyxclient -g %f %l" ) );
    editors.insert( SettingsCore::EnumExternalEditor::Texstudio,
        QStringLiteral( "texstudio --line %l" ) );

The entry for Lyx client is "lyxclient -g %f %l", which is the same as for 
okular 4.7
(Settings->Configure Okular...->Editor->
        Editor: Lyx client
        command: lyxclient -g %f %l
)

Configuring for "Custom Text Editor" works too, for instance if we want to use 
lyxclient2.4.

        Kornel

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to