forked from atombender/keywurl
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathKeywordMapper.h
28 lines (24 loc) · 949 Bytes
/
KeywordMapper.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#import <Cocoa/Cocoa.h>
#import "KeywordMapping.h"
extern const NSString* KeywordMapperMappingsDidChangeNotification;
@interface KeywordMapper : NSObject {
NSMutableArray* mappings;
NSMutableDictionary* cache;
}
- (id) init;
- (KeywordMapping*) mappingForKeyword: (NSString*) keyword;
- (NSString*) mapKeywordInput: (NSString*) input;
- (NSString*) mapKeywordInput: (NSString*) input withDefault: (BOOL) withDefault;
- (void) reloadMappings;
- (void) loadMappingsFromFile: (NSString*) path;
- (void) saveMappings;
- (void) saveMappingsToFile: (NSString*) path;
- (void) addKeyword: (KeywordMapping*) mapping;
- (void) addKeyword: (NSString*) keyword expansion: (NSString*) expansion;
- (void) addKeyword: (NSString*) keyword expansion: (NSString*) expansion
dontUseUnicode: (BOOL) theDontUseUnicode
encodeSpaces: (BOOL) theEncodeSpaces;
- (void) removeKeyword: (NSString*) keyword;
- (NSArray*) mappings;
- (void) modified;
@end