Skip to content

Commit efb1b9d

Browse files
committed
make QuickSnippets two actions not to be shown in result list.
1 parent ea43863 commit efb1b9d

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

QuickSnippetsPaste.m

+9
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ @interface QuickSnippetsPaste : HGSAction
1414
@implementation QuickSnippetsPaste
1515

1616
- (BOOL)performWithInfo:(NSDictionary*)info {
17+
HGSLogDebug(@"QuickSnippetsPaste:performWithInfo");
1718
HGSResultArray *directObjects = [info objectForKey:kHGSActionDirectObjectsKey];
1819
BOOL success = NO;
1920

@@ -45,4 +46,12 @@ - (BOOL)performWithInfo:(NSDictionary*)info {
4546
return success;
4647
}
4748

49+
- (BOOL)appliesToResult:(HGSResult *)result {
50+
return NO;
51+
}
52+
53+
- (BOOL)appliesToResults:(HGSResultArray *)results {
54+
return NO;
55+
}
56+
4857
@end

QuickSnippetsRegist.m

+8
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,12 @@ - (BOOL)performWithInfo:(NSDictionary*)info {
5050
return success;
5151
}
5252

53+
- (BOOL)appliesToResult:(HGSResult *)result {
54+
return NO;
55+
}
56+
57+
- (BOOL)appliesToResults:(HGSResultArray *)results {
58+
return NO;
59+
}
60+
5361
@end

0 commit comments

Comments
 (0)