This forum has been archived. All content is frozen. Please use KDE Discuss instead.

kate 3.2.4 %URLS macro problem

Tags: None
(comma "," separated)
fac3k
Registered Member
Posts
10
Karma
0
OS

kate 3.2.4 %URLS macro problem

Mon Aug 31, 2009 8:17 pm
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

Image

So there I am , having two saved files open and running tools->external tools -> kompare and watching kompare erroring like on next picture.

Image

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 :)
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: kate 3.2.4 %URLS macro problem

Tue Sep 01, 2009 6:35 am
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]
fac3k
Registered Member
Posts
10
Karma
0
OS

Re: kate 3.2.4 %URLS macro problem

Tue Sep 01, 2009 6:25 pm
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?
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: kate 3.2.4 %URLS macro problem

Wed Sep 02, 2009 7:09 am
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]
fac3k
Registered Member
Posts
10
Karma
0
OS
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.
fac3k
Registered Member
Posts
10
Karma
0
OS

Re: kate 3.2.4 %URLS macro problem

Thu Sep 10, 2009 7:28 pm
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


Bookmarks



Who is online

Registered users: abc72656, Bing [Bot], daret, Google [Bot], lockheed, Sogou [Bot], Yahoo [Bot]