<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ejohansson.se &#187; kde</title>
	<atom:link href="http://ejohansson.se/tags/kde/feed/" rel="self" type="application/rss+xml" />
	<link>http://ejohansson.se</link>
	<description>Random bits about Linux, programming, computers and occasionally other stuff.</description>
	<lastBuildDate>Sun, 18 Apr 2010 20:23:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>&#8220;Emacs kill line and yank in kde&#160;editors&#8221;-plugin</title>
		<link>http://ejohansson.se/archives/2006/04/25/emacs-kill-line-and-yank-in-kde-editors-plugin/</link>
		<comments>http://ejohansson.se/archives/2006/04/25/emacs-kill-line-and-yank-in-kde-editors-plugin/#comments</comments>
		<pubDate>Mon, 24 Apr 2006 22:33:32 +0000</pubDate>
		<dc:creator>Erik Johansson</dc:creator>
				<category><![CDATA[software]]></category>
		<category><![CDATA[emacs]]></category>
		<category><![CDATA[kde]]></category>

		<guid isPermaLink="false">http://ejohansson.se/archives/2006/04/25/emacs-kill-line-and-yank-in-kde-editors-plugin/</guid>
		<description><![CDATA[I&#8217;m pleased to announce the first public version of my plugin for KDE text editors: ktexteditor-yankbuffer. It gives you emacs-like kill line (C-k) and yank (C-y) behaviour. For non-emacs users: this means that you can delete (kill) lines and then paste (yank) them in at another place in the document (or in another document). The [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_176" class="wp-caption alignright" style="width: 74px"><a href="http://www.kde.org/"><img src="http://files.ejohansson.se/wp-content/uploads/2008/08/kdelogo.png" alt="KDE" title="KDE" width="64" height="64" class="size-full wp-image-176" /></a><p class="wp-caption-text">KDE</p></div>
<p>I&#8217;m pleased to announce the first public version of my plugin for KDE text editors: ktexteditor-yankbuffer. It gives you emacs-like kill line (C-k) and yank (C-y) behaviour. For non-emacs users: this means that you can delete (kill) lines and then paste (yank) them in at another place in the document (or in another document). The default keybindings for kill line is Ctrl+Alt+K and for yank Ctrl+Alt+Y, but they can of course be reconfigured to suit your needs.</p>
<p>As an extra feature the plugin supports multiple yank buffers. By pressing Ctrl+Alt+Shift+K you create a new yank buffer (that all future kill line and yank operations will use) and then moves the current line to that buffer. If you press Ctrl+Alt+Shift+Y the current buffer is first inserted in the document, then removed and the previous buffer is made current. (The buffers are ordered as a stack with the &#8220;non-shift&#8221; operations operating on the top buffer and the &#8220;shift&#8221; operations pushing and poping a buffer on the stack.)</p>
<p>The kill line feature works as it does in emacs: it deletes the current line starting at the cursor and only includes the end of line (\n) if the cursor is at the end of the line. And if you kill a text segment, all lines are saved in the same buffer.</p>
<p><a href="http://eddie.ejohansson.se/debian/pool/main/k/ktexteditor-yankbuffer/ktexteditor-yankbuffer_0.2-1.tar.gz">Download ktextedior-yankbuffer v0.2</a> and install it the usual way.</p>
<pre>
./configure --prefix=/usr
make
make install
</pre>
<p>If you are using debian unstable you can install the plugin by adding the following to your sources.list and apt-getting ktexteditor-yankbuffer.</p>
<pre>
deb http://eddie.ejohansson.se/debian/ sid main
deb-src http://eddie.ejohansson.se/debian/ sid main
</pre>
<p>If you like to be on the bleeding edge, the source is also available from my subversion repository.</p>
<pre>
svn co http://svn.ejohansson.se/repos/src/projects/ktexteditor-yankbuffer
</pre>
<p>To end this rather long post, I&#8217;d like to give two examples on how to configure the keybindings. Me, I use these settings (C = Ctrl, S = Shift):</p>
<div class="box-type1">
C-k: kill line<br />
C-S-k: kill line to new buffer<br />
C-y: insert kill line and pop buffer<br />
C-S-y: insert kill line
</div>
<p>This is what I would call an explicit push but an implicit pop.</p>
<p>A friend of mine instead uses these settings:</p>
<div class="box-type1">
C-k: kill line to new buffer<br />
C-S-k: clear all buffers<br />
C-y: insert kill line and pop buffer<br />
C-S-y: insert kill line
</div>
<p>Which would then be implicit push and pop.</p>
<p>If you like to see the stack depth you can turn on the Yank Buffer Toolbar in the Settings menu.</p>
<p>I know I said I would end this post which the examples, but I&#8217;d like to add this as well: if you have any problems, suggestions, etc. leave a comment or drop me a mail. Now, that was the last thing. I promise.</p>
]]></content:encoded>
			<wfw:commentRss>http://ejohansson.se/archives/2006/04/25/emacs-kill-line-and-yank-in-kde-editors-plugin/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
