간단한 플러그인을 사용하여이를 수행 할 수 있습니다.
import sublime
import sublime_plugin
class ChangeViewCommand(sublime_plugin.WindowCommand):
def run(self, reverse=False):
window = self.window
group, view_index = window.get_view_index(window.active_view())
if view_index >= 0:
views = window.views_in_group(group)
if reverse:
if view_index == 0:
view_index = len(views)
if reverse:
new_index = view_index - 1
else:
new_index = (view_index + 1) % len(views)
window.focus_view(views[new_index])
그런 다음 사용자 키 바인딩에 다음을 추가하십시오.
{ "keys": ["ctrl+tab"], "command": "change_view" },
{ "keys": ["ctrl+shift+tab"], "command": "change_view", "args": { "reverse": true } }
포커스 그룹의 경우, 이미 1 군으로 이동 명령이 있습니다 - 네,하지만 당신은 더 (단순히 키 바인딩 번호와 그룹 번호를 변경)
{ "keys": ["ctrl+1"], "command": "focus_group", "args": { "group": 0 } }
작품을 이동하려면 다음을 추가 할 수 있습니다 매력처럼! 고마워요. 오랫동안 복용하게되어서 유감입니다. 어떻게 든 대답을 알려주지 않았습니다. 역방향 인수 keybind를 추가하여 키 바인딩 부분을 편집했습니다. –
그리고이 방법은 - ST2와 ST3 모두에서 작동합니다. –