Skip to content

Commit d6c25a1

Browse files
committed
Merge branch 'develop'; Version 2.0.1
2 parents e1abbdb + 04f6ca6 commit d6c25a1

13 files changed

+517
-300
lines changed

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
## Changelog
22

3+
#### 2.0.1 - 2014/04/25
4+
**A minor update with small bugfixes and improvements, including:**
5+
6+
* Replaced letter- and prefix- caches with simple cached results stack
7+
thus making backspacing much faster (Issue #29)
8+
* Previous/Next completion shortcuts now work properly (Issue #36)
9+
* Completion List now automatically shows for one letter (Issue #37)
10+
* Hide Inline Preview more reliably when disabled in settings
11+
* Moved FuzzyAutocomplete menu item into Editor menu
12+
* Added option to disable plugin in settings
13+
* Fixed alphabetical sorting of results when using parallel scoring
14+
* Reliability++
15+
* Performance++
16+
17+
318
#### 2.0.0 - 2014/04/16
419
**A major update introducing many fixes and improvements, including:**
520

FuzzyAutocomplete/DVTTextCompletionInlinePreviewController+FuzzyAutocomplete.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010

1111
@interface DVTTextCompletionInlinePreviewController (FuzzyAutocomplete)
1212

13+
/// Swizzles methods to enable/disable the plugin
14+
+ (void) fa_swizzleMethods;
15+
1316
/// Matched ranges mapped to preview space.
1417
@property (nonatomic, retain) NSArray * fa_matchedRanges;
1518

FuzzyAutocomplete/DVTTextCompletionInlinePreviewController+FuzzyAutocomplete.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
@implementation DVTTextCompletionInlinePreviewController (FuzzyAutocomplete)
1717

18-
+ (void) load {
18+
+ (void) fa_swizzleMethods {
1919
[self jr_swizzleMethod: @selector(ghostComplementRange)
2020
withMethod: @selector(_fa_ghostComplementRange)
2121
error: NULL];

FuzzyAutocomplete/DVTTextCompletionListWindowController+FuzzyAutocomplete.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,7 @@
1010

1111
@interface DVTTextCompletionListWindowController (FuzzyAutocomplete)
1212

13+
/// Swizzles methods to enable/disable the plugin
14+
+ (void) fa_swizzleMethods;
15+
1316
@end

FuzzyAutocomplete/DVTTextCompletionListWindowController+FuzzyAutocomplete.m

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
@implementation DVTTextCompletionListWindowController (FuzzyAutocomplete)
2222

23-
+ (void) load {
23+
+ (void) fa_swizzleMethods {
2424
[self jr_swizzleMethod: @selector(tableView:willDisplayCell:forTableColumn:row:)
2525
withMethod: @selector(_fa_tableView:willDisplayCell:forTableColumn:row:)
2626
error: NULL];
@@ -209,15 +209,19 @@ - (void) _fa_hackModifyRowHeight {
209209
NSTableView * tableView = [self valueForKey: @"_completionsTableView"];
210210
FATextCompletionListHeaderView * header = (FATextCompletionListHeaderView *) tableView.headerView;
211211
NSInteger rows = MIN(8, [self.session.filteredCompletionsAlpha count]);
212-
double delta = header && rows ? (header.frame.size.height + 1) / rows : 0;
213212

214-
tableView.rowHeight += delta;
213+
if (header && rows) {
214+
tableView.rowHeight += (header.frame.size.height + 1) / rows;
215+
}
215216
}
216217

217218
// Restore the original row height.
218219
- (void) _fa_hackRestoreRowHeight {
219220
NSTableView * tableView = [self valueForKey: @"_completionsTableView"];
220-
tableView.rowHeight = [objc_getAssociatedObject(self, &kRowHeightKey) doubleValue];
221+
double rowHeight = [objc_getAssociatedObject(self, &kRowHeightKey) doubleValue];
222+
if (rowHeight > 0) {
223+
tableView.rowHeight = rowHeight;
224+
}
221225
}
222226

223227
@end

FuzzyAutocomplete/DVTTextCompletionSession+FuzzyAutocomplete.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515

1616
@interface DVTTextCompletionSession (FuzzyAutocomplete)
1717

18+
/// Swizzles methods to enable/disable the plugin
19+
+ (void) fa_swizzleMethods;
20+
1821
/// Current filtering query.
1922
- (NSString *) fa_filteringQuery;
2023

0 commit comments

Comments
 (0)