How to select a column of text in Sublime Text 3?

5,407

Although the use of Ctrl+Alt+ and Ctrl+Alt+ are currently suggested for column selection in Sublime Text 3 for Linux,

Suggested keys

they don't work. Instead, one has to use alt+shift and the appropriate arrow key according to this technical support response.

To get these keybindings to work in Lubuntu 18.04, I commented out the following lines in ~/.config/openbox/lubuntu-rc.xml:

<keybind key="S-A-Left">
  <action name="SendToDesktop">
    <to>left</to>
    <wrap>no</wrap>
  </action>
</keybind>
<keybind key="S-A-Right">
  <action name="SendToDesktop">
    <to>right</to>
    <wrap>no</wrap>
  </action>
</keybind>
<keybind key="S-A-Up">
  <action name="SendToDesktop">
    <to>up</to>
    <wrap>no</wrap>
  </action>
</keybind>
<keybind key="S-A-Down">
  <action name="SendToDesktop">
    <to>down</to>
    <wrap>no</wrap>
  </action>
</keybind>

saved the file, ran openbox --reconfigure and now I can use Shift+Alt together with the appropriate arrow keys to select a column of text in Sublime Text v 3.2.1.


Note: openbox --reconfigure does two things:

  • It parses your rc.xml or menu.xml files for errors and
  • it "reloads" the edited (and saved) file so you don't have to log out and log back in for the changes to take effect.

Note: If you have LXDE the file to modify is ~/.config/openbox/lxde-rc.xml instead.

Share:
5,407

Related videos on Youtube

wk.
Author by

wk.

Estonian, mostly live in Tallinn, but heart belongs to my countryside. I share my time between: family (2 daughters and a son) programming (Perl and Javascript) DIY (woodworking, restoration, building, some electronics, etc) gaming (HOMM3 and Fallout 4 as favorites) movies and such (last worth mentioning Kives Out) reading (last suggestion Relic (the original Norwegian title more like The End of the Circle) by Tom Egeland) 20200712

Updated on September 18, 2022

Comments

  • wk.
    wk. over 1 year

    In Sublime Text 3 column selection shortcuts are Ctrl+ALT+Up and Ctrl+ALT+Down. Same shortcuts are defined In Lubuntu (/Openbox) as GoToDesktop Up or Down, respectively. I commented those shortcuts out in ~/.config/openbox/lubuntu-rc.xml and now they don't work anymore (they don't switch to related Desktop), but they still don't work in Sublime Text 3 too.

    How could I determine, what is eating those shortcuts away, so they don't reach to Sublime?

    • vanadium
      vanadium almost 5 years
      You logged out and then back in?
    • wk.
      wk. almost 5 years
      @vanadium actually, it is old story, I disabled those shortcuts already some Lubuntu versions ago, but reached out for help just now
    • wk.
      wk. almost 5 years
      @DKBose i have offcial repo in /etc/apt/sources.list.d/
    • wk.
      wk. almost 5 years
      @DKBose No, it goes silently
    • wk.
      wk. almost 5 years
      @DKBose i did not find them also in keybinding, but shortcuts are documented here sublimetext.com/docs/3/column_selection.html Because I don't know Sublime internal command for column selection, I can't redifine them in user settings
    • wk.
      wk. almost 5 years
      @DKBose I use mouse as few as possible and this situation is one of those so far. With mouse it is not so big trouble, but using laptop's touchpad or nipple are so clumsy for such kind of operation, it gives me a lot of stress always ;)
    • DK Bose
      DK Bose almost 5 years
      Please note that I could get things to work with Shift+Alt+Arrow. Using Ctrl+Alt+Arrow now does nothing.
  • wk.
    wk. almost 5 years
    And it works! You just happen to try Shift+Alt? Thank you, very much!
  • wk.
    wk. almost 5 years
    And special thanks for openbox --reconfigure too, i was not aware of this!
  • DK Bose
    DK Bose almost 5 years
    You're welcome! openbox --reconfigure does two things. It parses your rc.xml or menu.xml files for errors and it "reloads" the edited (and saved) file so you don't have to log out and log back in for the changes to take effect. BTW, I will edit my answer to only comment out the lines with Shift+Alt because those are the keybindings that conflict. That way, you can still use Ctrl+Alt to change desktops.