<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Extending Kate with Scripts</title>
	<atom:link href="http://kate-editor.org/2009/10/29/extending-kate-with-scripts/feed/" rel="self" type="application/rss+xml" />
	<link>http://kate-editor.org/2009/10/29/extending-kate-with-scripts/</link>
	<description>The Kate Editor Homepage</description>
	<lastBuildDate>Thu, 17 May 2012 03:14:41 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Alex</title>
		<link>http://kate-editor.org/2009/10/29/extending-kate-with-scripts/#comment-45</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Sat, 19 Jun 2010 18:40:50 +0000</pubDate>
		<guid isPermaLink="false">http://kate-editor.org/2009/10/29/extending-kate-with-scripts/#comment-45</guid>
		<description>Okay, then perhaps there is a Perl, Python, or Javascript package that can handle DBUS&#039;s data-types. Then a small script can be written in one of those languages and add that to External Tools?&lt;br /&gt;&lt;br /&gt;There&#039;s got to be something besides C++ that can talk to DBUS properly!</description>
		<content:encoded><![CDATA[<p>Okay, then perhaps there is a Perl, Python, or Javascript package that can handle DBUS&#39;s data-types. Then a small script can be written in one of those languages and add that to External Tools?</p>
<p>There&#39;s got to be something besides C++ that can talk to DBUS properly!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dhaumann</title>
		<link>http://kate-editor.org/2009/10/29/extending-kate-with-scripts/#comment-44</link>
		<dc:creator>dhaumann</dc:creator>
		<pubDate>Sat, 19 Jun 2010 17:58:18 +0000</pubDate>
		<guid isPermaLink="false">http://kate-editor.org/2009/10/29/extending-kate-with-scripts/#comment-44</guid>
		<description>@Alex: no, it&#039;s not possible at the moment...</description>
		<content:encoded><![CDATA[<p>@Alex: no, it&#39;s not possible at the moment&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://kate-editor.org/2009/10/29/extending-kate-with-scripts/#comment-42</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Sat, 19 Jun 2010 17:39:41 +0000</pubDate>
		<guid isPermaLink="false">http://kate-editor.org/2009/10/29/extending-kate-with-scripts/#comment-42</guid>
		<description>Is there a way to make Kate execute a command-line script from qdbus or dbus-send? Because if there is, that&#039;s all you need for menu, toolbar, and keyboard shortcuts linking directly to command-line scripts without changing Kate at all.&lt;br /&gt;&lt;br /&gt;If you can send a dbus command to org.kde.kate-$KATE_PID telling it to run a script, then you can put that command into a shell script in the External Tools menu.&lt;br /&gt;&lt;br /&gt;Alternatively, even if the command-line functionality isn&#039;t exposed to dbus, you could write anything you want directly to the current document. The only problem is that if you want to insert content rather than replace everything, you have to give dbus argument specifying the location in the document. This is just a glorified array of (line #, col #) but it has to be a QPoint data-type for some reason and neither of the stupid command-line tools seem to be able to send these two simple pieces of data in that format.&lt;br /&gt;&lt;br /&gt;Imagine the scripting possibilities if only this one little technical problem were solved (or if my ignorance of an existing solution was dispelled).</description>
		<content:encoded><![CDATA[<p>Is there a way to make Kate execute a command-line script from qdbus or dbus-send? Because if there is, that&#39;s all you need for menu, toolbar, and keyboard shortcuts linking directly to command-line scripts without changing Kate at all.</p>
<p>If you can send a dbus command to org.kde.kate-$KATE_PID telling it to run a script, then you can put that command into a shell script in the External Tools menu.</p>
<p>Alternatively, even if the command-line functionality isn&#39;t exposed to dbus, you could write anything you want directly to the current document. The only problem is that if you want to insert content rather than replace everything, you have to give dbus argument specifying the location in the document. This is just a glorified array of (line #, col #) but it has to be a QPoint data-type for some reason and neither of the stupid command-line tools seem to be able to send these two simple pieces of data in that format.</p>
<p>Imagine the scripting possibilities if only this one little technical problem were solved (or if my ignorance of an existing solution was dispelled).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dhaumann</title>
		<link>http://kate-editor.org/2009/10/29/extending-kate-with-scripts/#comment-39</link>
		<dc:creator>dhaumann</dc:creator>
		<pubDate>Wed, 16 Jun 2010 18:07:28 +0000</pubDate>
		<guid isPermaLink="false">http://kate-editor.org/2009/10/29/extending-kate-with-scripts/#comment-39</guid>
		<description>Hi Kevin,&lt;br /&gt;&lt;br /&gt;binding scripts to shortcuts is indeed on the todo list for a long time now.&lt;br /&gt;To me it&#039;s still unclear how to do that best. My current idea is that you can create an action for a command line in the settings dialog. All actions are listed in the configure-shortcuts dialog, so it would appear there then.&lt;br /&gt;&lt;br /&gt;As a side note: There are also commands that need parameters (such as goto #line). So we need more than just bind an action+execute. We probably have to ask the script whether it needs parameters and then open the command line with the preprinted command in it. Is that a good idea?&lt;br /&gt;&lt;br /&gt;...thoughts welcome.&lt;br /&gt;&lt;br /&gt;Greetings&lt;br /&gt;Dominik&lt;br /&gt;&lt;br /&gt;PS: yes, I remember you posting a patch. I don&#039;t know why it wasn&#039;t accepted anymore, maybe no one took the time to review + commit :(</description>
		<content:encoded><![CDATA[<p>Hi Kevin,</p>
<p>binding scripts to shortcuts is indeed on the todo list for a long time now.<br />To me it&#39;s still unclear how to do that best. My current idea is that you can create an action for a command line in the settings dialog. All actions are listed in the configure-shortcuts dialog, so it would appear there then.</p>
<p>As a side note: There are also commands that need parameters (such as goto #line). So we need more than just bind an action+execute. We probably have to ask the script whether it needs parameters and then open the command line with the preprinted command in it. Is that a good idea?</p>
<p>&#8230;thoughts welcome.</p>
<p>Greetings<br />Dominik</p>
<p>PS: yes, I remember you posting a patch. I don&#39;t know why it wasn&#39;t accepted anymore, maybe no one took the time to review + commit <img src='http://kate-editor.org/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kevincolyer</title>
		<link>http://kate-editor.org/2009/10/29/extending-kate-with-scripts/#comment-38</link>
		<dc:creator>kevincolyer</dc:creator>
		<pubDate>Wed, 16 Jun 2010 13:12:14 +0000</pubDate>
		<guid isPermaLink="false">http://kate-editor.org/2009/10/29/extending-kate-with-scripts/#comment-38</guid>
		<description>I would love to have the key-binding for scripts. One of the things I miss so much is an easy way to raise or lower a paragraph over another (á la ALT-CTRL up and down). &lt;br /&gt;&lt;br /&gt;I made a patch once for Kate but that was not pursued. I would happily write a script but no key bindings make this a lost cause. &lt;br /&gt;&lt;br /&gt;So I would be most grateful to anyone who can add key-bindings.&lt;br /&gt;&lt;br /&gt;I use Kate a lot and love it! This for me would be the icing on the cake.&lt;br /&gt;&lt;br /&gt;Cheers,&lt;br /&gt;&lt;br /&gt;Kevin</description>
		<content:encoded><![CDATA[<p>I would love to have the key-binding for scripts. One of the things I miss so much is an easy way to raise or lower a paragraph over another (á la ALT-CTRL up and down). </p>
<p>I made a patch once for Kate but that was not pursued. I would happily write a script but no key bindings make this a lost cause. </p>
<p>So I would be most grateful to anyone who can add key-bindings.</p>
<p>I use Kate a lot and love it! This for me would be the icing on the cake.</p>
<p>Cheers,</p>
<p>Kevin</p>
]]></content:encoded>
	</item>
</channel>
</rss>

