Skip to content

Commit

Permalink
Exclude currently active window
Browse files Browse the repository at this point in the history
  • Loading branch information
deathaxe committed Jan 5, 2023
1 parent fd253fb commit 8bc6045
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions switch_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ def list_items(self):
kind_project = [sublime.KIND_ID_NAMESPACE, "P", "Project"]
kind_file = [sublime.KIND_ID_NAVIGATION, "F", "File"]

active_window = sublime.active_window()
for window in sublime.windows():
if window == active_window:
continue

active_file_location = None
active_file_name = "untitled"
view = window.active_view()
Expand Down

0 comments on commit 8bc6045

Please sign in to comment.