1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-12-29 16:56:40 +03:00
vimr/SwiftNeoVim/NeoVimAgent.h

68 lines
1.6 KiB
C
Raw Normal View History

/**
* Tae Won Ha - http://taewon.de - @hataewon
* See LICENSE
*/
@import Cocoa;
#import "NeoVimUiBridgeProtocol.h"
2016-08-12 15:32:42 +03:00
@class NeoVimBuffer;
2016-10-22 23:20:22 +03:00
@class NeoVimTab;
@class NeoVimWindow;
2016-07-09 23:52:59 +03:00
NS_ASSUME_NONNULL_BEGIN
@interface NeoVimAgent : NSObject
2016-09-24 17:31:14 +03:00
@property (nonatomic) bool useInteractiveZsh;
@property (nonatomic) NSURL *cwd;
@property (nonatomic, nullable) NSArray<NSString *> *nvimArgs;
@property (readonly) bool neoVimIsQuitting;
2016-07-09 23:52:59 +03:00
@property (nonatomic, weak) id <NeoVimUiBridgeProtocol> bridge;
@property (readonly) bool neoVimHasQuit;
@property (readonly) NSCondition *neoVimQuitCondition;
- (instancetype)initWithUuid:(NSString *)uuid;
2017-01-07 15:55:53 +03:00
- (void)debug;
- (void)forceQuit;
- (void)quit;
2016-08-18 18:40:30 +03:00
- (bool)runLocalServerAndNeoVimWithWidth:(NSInteger)width height:(NSInteger)height;
2016-07-09 23:52:59 +03:00
- (NSURL *)pwd;
- (void)vimCommand:(NSString *)string;
2016-07-09 23:52:59 +03:00
- (void)vimInput:(NSString *)string;
- (void)vimInputMarkedText:(NSString *)markedText;
2016-07-09 23:52:59 +03:00
- (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;
2017-01-07 17:12:07 +03:00
- (void)cursorGoToRow:(int)row column:(int)column;
- (bool)hasDirtyDocs;
- (NSString * _Nullable)escapedFileName:(NSString *)fileName;
2016-08-13 12:20:03 +03:00
- (NSArray<NSString *> *)escapedFileNames:(NSArray<NSString *> *)fileNames;
- (NSArray<NeoVimBuffer *> *)buffers;
2016-10-22 23:20:22 +03:00
- (NSArray<NeoVimTab*> *)tabs;
2017-05-30 23:13:52 +03:00
- (void)scrollHorizontal:(NSInteger)horiz vertical:(NSInteger)vert at:(Position)position;
- (void)selectWindow:(NeoVimWindow *)window;
// WAITS
- (NSString * _Nullable)vimCommandOutput:(NSString *)string;
- (NSNumber * _Nullable)boolOption:(NSString *)option;
- (void)setBoolOption:(NSString *)option to:(bool)value;
- (void)focusGained:(bool)gained;
@end
NS_ASSUME_NONNULL_END