![]() Registered Member ![]()
|
Hello
I have a little problem with %URLS macro. I`m using Kate 3.2.4 on Kde 4.2.4 (on Sabayon) According to http://docs.kde.org/stable/en/kdesdk/ka ... ialog.html %URLS should give me "A space separated list of the URLs of all open documents" while used in script. My aim is to use Kate`s external tools to launch kompare of two opened (in Kate) files. So I wanted to do it by simply doing: kompare %URLS ![]() So there I am , having two saved files open and running tools->external tools -> kompare and watching kompare erroring like on next picture. ![]() It seems that %URLS macro has not been fired and substituted to paths to open files, or I`m doing something wrong? clarification and help much appreciated ![]() |
![]() Administrator ![]()
|
I checked some pre-existing scripts shipped with Kate on my trunk system and it appears the correct macro is "%filename".
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() Registered Member ![]()
|
hello bcooksley,
thanks for your answer, I would certainly use that macro if I wanted to perform operation on a single file. The point is I need to execute something like `kompare %filename1 %filename2` and I believe it should be done with "%URLS" macro as it should give me list of space separeted urls to files (according to The Kate Handbook Anders Lund Seth Rothberg Dominik Haumann Revision 3.1.1 (2008-09-03) ) So I think I should get the result of `kompare file:///tmp/test1.txt file:///tmp/test2.txt` if I have kate with files /tmp/test1.txt and /tmp/test2.txt opened and run external tool with script kompare %URLS But I don`t ;[ any other ideas? |
![]() Administrator ![]()
|
In this case, if listed in the documentation then it is likely a bug in Kate, which needs to be reported at bugs.kde.org. You may also wish to try it in a lowercase manner, since all others are lowercase
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() Registered Member ![]()
|
I tried lowercase/quoted variations before but still no luck. I`ll try to file a bug report. (https://bugs.kde.org/show_bug.cgi?id=206048)
Luckily I just found out that I can easily run kompare on selected files from Dolphin Thanks for your input. |
![]() Registered Member ![]()
|
According to https://bugs.kde.org/show_bug.cgi?id=206048 there is a typo in manual.
The proper macro is %URLs There can be no quotation marks in script. It should be kompare %URLs |
Registered users: abc72656, Bing [Bot], daret, Google [Bot], lockheed, Sogou [Bot], Yahoo [Bot]