2016-07-09 15:04:09 +03:00
|
|
|
/**
|
|
|
|
* Tae Won Ha - http://taewon.de - @hataewon
|
|
|
|
* See LICENSE
|
|
|
|
*/
|
|
|
|
|
2016-08-03 22:43:05 +03:00
|
|
|
@import Cocoa;
|
2016-07-09 15:04:09 +03:00
|
|
|
|
|
|
|
|
2016-07-09 23:52:59 +03:00
|
|
|
@protocol NeoVimUiBridgeProtocol;
|
2016-08-12 15:32:42 +03:00
|
|
|
@class NeoVimBuffer;
|
2016-07-09 23:52:59 +03:00
|
|
|
|
|
|
|
|
2016-07-09 15:04:09 +03:00
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
|
|
|
@interface NeoVimAgent : NSObject
|
|
|
|
|
2016-07-09 23:52:59 +03:00
|
|
|
@property (nonatomic, weak) id <NeoVimUiBridgeProtocol> bridge;
|
|
|
|
|
2016-07-09 15:04:09 +03:00
|
|
|
- (instancetype)initWithUuid:(NSString *)uuid;
|
2016-08-12 19:00:05 +03:00
|
|
|
- (void)quit;
|
2016-08-18 18:40:30 +03:00
|
|
|
|
|
|
|
- (void)runLocalServerAndNeoVimWithPath:(NSString *)path;
|
2016-07-09 23:52:59 +03:00
|
|
|
|
2016-08-04 21:01:03 +03:00
|
|
|
- (void)vimCommand:(NSString *)string;
|
|
|
|
|
2016-07-09 23:52:59 +03:00
|
|
|
- (void)vimInput:(NSString *)string;
|
|
|
|
- (void)vimInputMarkedText:(NSString *_Nonnull)markedText;
|
|
|
|
- (void)deleteCharacters:(NSInteger)count;
|
2016-08-09 22:54:56 +03:00
|
|
|
|
2016-07-09 23:52:59 +03:00
|
|
|
- (void)resizeToWidth:(int)width height:(int)height;
|
2016-07-09 15:04:09 +03:00
|
|
|
|
2016-07-18 21:16:56 +03:00
|
|
|
- (bool)hasDirtyDocs;
|
2016-08-13 12:20:03 +03:00
|
|
|
- (NSArray<NSString *> *)escapedFileNames:(NSArray<NSString *> *)fileNames;
|
|
|
|
- (NSArray<NeoVimBuffer *> *)buffers;
|
2016-07-18 21:16:56 +03:00
|
|
|
|
2016-07-09 15:04:09 +03:00
|
|
|
@end
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_END
|