Inverse search of a compiled file with -syntex=1 option is trivial: you just choose Configure -> Editor -> Kate option from Okular -> Settings menu, then use Shift-Click on your favorite line of the pdf file.
What about the forward search? How am I supposed to make Okular show a screen with a particular line pointed to in the Kate editor? Or in an abstract source editor, for that matter. No amount of search shows any clue.
It just works in some LaTeX IDEs, of course, but what is under the hood?
okular --unique '%absolute_target'. Obviously,okularis Okular. The--unique [target]... – cfr May 10 '17 at 21:55okularexpecting the information in that format. (--uniquestops it opening a new instance of an open PDF.) But the%absolute_targetis something Kile will replace with the appropriate reference. So your editor has to expose this information to you in the form of a suitable variable. Kate may well do this or you may be able to make it do this, given that Kile is basically a wrapper for Kate. But Kile obviously makes this easy because its whole point as a wrapper is to provide the bells and whistles TeX users are apt to find useful. – cfr May 10 '17 at 21:58synctexis not a problem. Neither is executing a shell commandokular --unique...from wherever you please by whatever shortcut/menu item you please. The huge problem is to get any information about that[target], or even a hint of its existence. Yes, in full it isokular --unique 'file.pdf#src:linenumber file.tex'. It took a huge amount of inventive googling. No manner of Okular docs,man okularor whatever, ever mention it. Where are KDE programmer guides? – Alexey Orlov May 11 '17 at 04:48