Home Download Buy Blog Forum Support

EmacsKillRing for ST2

EmacsKillRing for ST2

Postby stiang on Wed Feb 09, 2011 5:52 pm

Hi,

I have adapted the original EmacsKillRing plugin so that it works with ST2.

You can find my ST2 version here: https://github.com/stiang/EmacsKillRing.

And to the original author: Thank you! I love being able to use the kill ring again after waiting years for TextMate to support setMark.
stiang
 
Posts: 39
Joined: Sat Jan 29, 2011 12:34 pm

Re: EmacsKillRing for ST2

Postby oxman on Sun Feb 13, 2011 9:10 pm

I don't understand what's the interest in this feature ?
Could you explain me with some example ?
oxman
 
Posts: 66
Joined: Sun Aug 29, 2010 10:00 am

Re: EmacsKillRing for ST2

Postby SteveCooperOrg on Mon Feb 14, 2011 11:29 am

@stiang: no problem! glad to see it's been updated. A very quick test has it working for me.

@oxman: emacs doesn't use the conventional idea of copy and paste, or selecting text by using the mouse or shift-and-arrow-keys. Instead, it has an internal clipboard called the 'kill ring'. One keypress (ctrl+k) allows you to add a line to the kill ring. So you go to the start of the text you want to cut or paste and do ctrl+k, ctrl+k, ctrl+k, ctrl+k until you've 'eaten' all the text you are interested in. Then you paste all of it. It's just a different way of implementing cut and paste. In this plugin, instead of using an internal clipboard, we just use the OS's clipboard.

Also, it deals with selections differently. The start of the selection is known as the *mark*. You move the cursor to the place you want to start selecting, then set the mark. Now you can move the cursor anywhere else in the file and hit 'kill'. All the text between the mark and the current cursor position is sent to the clipboard. Again, it's just a different method for implementing text selection.

The real benefit of this method is that it can be easier to make precise selections of text using only the keyboard. Setting a mark and then moving means you can make selections without having to hold down the shift key. Killing line-by-line is a nice shortcut to making a 'proper' selection.
Maybe what you're looking for is at the http://www.sublimetextwiki.com
SteveCooperOrg
 
Posts: 193
Joined: Thu Mar 20, 2008 9:53 am


Return to Plugin Announcements

Who is online

Users browsing this forum: Google [Bot] and 4 guests