Sublime Forum

Is there a command like Textmate's Text > Move Column Left?

#1

Hi there,
Is there a command like Textmate’s Text > Move Column Left or Move Column Right?
Essentially, the functionality I’m looking for is to just have a selection highlighted and pressing CMD+CTRL+Left or Right (or Up or Down) and having the selected characters move in the direction of the arrow.

Is this doable out of the box or with a plugin? And if with a plugin, is there any hints on which API calls I should access?

Thanks in advance,

0 Likes

#2

Hi there,
Thanks for the response :smile:
In TM, it will move the current characters, but offset any existing characters.

So if I have the string “Hello world, my name is Foo Bar” and I select ‘B’ and ctrl+cmd+right, then Bar will look like aBr. If I select ‘my name i’ and ctrl+cmd+left 3 times, the whole sentence would look like:
“Hello worlmy name id, s Foo Bar”.

I never realized quite how often I use this day to day since trying the conversion from TM to Sublime, so I wasn’t sure if there’s a way to get the functionality.

You mentioned the command history api and z-indexes? Is this documented anywhere or is it so new? (Of course, I’ll be googling as soon as I press Submit, so I appreciate the mention).
Also, do you know if there are any examples around using a similar technique that I could look at?

Thanks again,

0 Likes

#3

Good implementation sublimator, I just saw that and it’s AWESOME!

0 Likes

#4

Wow! This is amazing. Thanks so much for writing this up. Sorry about the delay in the response to it (I was on vacation w/o internet for the past 10 days), but seriously, thank you so much. This is really awesome :smile:

0 Likes

#5

CMD+CTRL+Left or Right - not working, what is problem?

0 Likes