Teie kommentaarid

I made a plugin that lets you move tabs using the shortcuts Heinrich lists in his comment. I don't have time to polish this for ease of installation, but post it here for what it's worth: https://www.dropbox.com/s/i3fjcyu7ifrt3s7/Ola-SublimeText2-package.zip.


Now if only someone would fix the keybindings of arrow-keys in the find box...

Developer, what's the status of this feature request?

Just threw together something that gives you this functionality:

1) In Preferences -> Key Bindings (User), add this:

  { "keys": ["ctrl+shift+pagedown"], "command": "move_view", "args": {"direction": "right"} },
   { "keys": ["ctrl+shift+pageup"], "command": "move_view", "args": {"direction": "left"}

Inside of the top-level square brackets ([ ]) in the file.

2) Create a folder and file like so:

~/.config/sublime-text-2/Packages/Ola/move_view.py and fill with this contents:

import sublime, sublime_plugin
class MoveView(sublime_plugin.WindowCommand):
 def run(self, direction):
   pkg_name = "move_view"
   window = sublime.active_window()
   view = window.active_view()
   ret = window.get_view_index(view)
   if ret == -1:
     return
   (group, index) = ret
   if group < 0 or index < 0:
     return
   views = window.views_in_group(window.active_group())
   num_views = len(views)
   oldIndex = index
   if direction == "left":
     if index > 0:
       index -= 1
   elif direction == "right":
     if index < num_views - 1:
       index += 1
   else:
     print 'Unrecognized direction:',direction+'. Use left or right.'
   if oldIndex != index:
     window.set_view_index(view, group, index)

Guaranteed not bug free.

Hi Joel. Thanks, but exactly as you say, that's not what I'm after. In other words, I think we can safely say that the "word_separators" setting does not control the behavior I was describing.