From b07a68ce3b1123c7430de0e608adaac21fecce93 Mon Sep 17 00:00:00 2001 From: Kuba Birecki Date: Tue, 7 Jul 2015 23:10:07 +0200 Subject: [PATCH 1/5] Fixed issues with multiple views of the same file --- ace_jump.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ace_jump.py b/ace_jump.py index 01ed0db..6dfadf6 100644 --- a/ace_jump.py +++ b/ace_jump.py @@ -115,18 +115,22 @@ def add_labels(self, regex): global last_index, hints - self.breakpoints = [] - last_index = 0 hints = [] self.views = self.views_to_label() self.changed_views = [] + self.breakpoints = [] + changed_files = [] for view in self.views[:]: + if view.file_name() in changed_files: + continue + view.run_command("add_ace_jump_labels", {"regex": regex}) self.breakpoints.append(last_index) self.changed_views.append(view) + changed_files.append(view.file_name()) if next_search: break From 6f1a06979a8fa0e2927958a90f72555c0afd74a9 Mon Sep 17 00:00:00 2001 From: Kuba Birecki Date: Wed, 8 Jul 2015 21:41:34 +0200 Subject: [PATCH 2/5] Updated README.md --- README.md | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 8a59b0e..2524ac3 100644 --- a/README.md +++ b/README.md @@ -39,6 +39,21 @@ Labels all non-empty lines and lets you jump to one of them. - ```Ctrl/Super + Shift + l``` - ```