niklas-vimmate 0.8.0.1 → 0.8.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/bin/vimmate +3 -1
- data/lib/active_window/active_tree_store.rb +13 -0
- data/lib/active_window/filtered_active_tree_store.rb +1 -1
- data/lib/file_tree_store.rb +1 -1
- data/vimmate.gemspec +1 -1
- metadata +1 -1
data/bin/vimmate
CHANGED
@@ -6,8 +6,21 @@ module ActiveWindow
|
|
6
6
|
define_callbacks :after_add
|
7
7
|
|
8
8
|
def initialize(opts={})
|
9
|
+
@initial_add_in_progress = false
|
9
10
|
super(*self.class.column_classes)
|
10
11
|
end
|
11
12
|
|
13
|
+
# disables some heavy calculations
|
14
|
+
def initial_adding
|
15
|
+
old_progress = initial_add_in_progress?
|
16
|
+
@initial_add_in_progress = true
|
17
|
+
yield
|
18
|
+
@initial_add_in_progress = old_progress
|
19
|
+
end
|
20
|
+
|
21
|
+
def initial_add_in_progress?
|
22
|
+
@initial_add_in_progress
|
23
|
+
end
|
24
|
+
|
12
25
|
end
|
13
26
|
end
|
@@ -22,7 +22,7 @@ module ActiveWindow
|
|
22
22
|
def add_with_filter_visibility(file, *args)
|
23
23
|
iter = add_without_filter_visibility(file, *args)
|
24
24
|
filtered_model.set_visibility_for(iter)
|
25
|
-
filtered_model.refilter
|
25
|
+
filtered_model.refilter unless initial_add_in_progress?
|
26
26
|
iter
|
27
27
|
end
|
28
28
|
alias_method_chain :add, :filter_visibility
|
data/lib/file_tree_store.rb
CHANGED
data/vimmate.gemspec
CHANGED