1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-11-28 11:35:35 +03:00

Add function for cursor shape name

This commit is contained in:
Tae Won Ha 2017-05-27 11:08:40 +02:00
parent b2f70895cc
commit f1820bba03
No known key found for this signature in database
GPG Key ID: E40743465B5B8B44
3 changed files with 33 additions and 0 deletions

View File

@ -31,6 +31,8 @@ typedef NS_ENUM(NSUInteger, CursorModeShape) {
CursorModeShapeCount = 18, CursorModeShapeCount = 18,
}; };
extern NSString * __nonnull cursorModeShapeName(CursorModeShape mode);
typedef NS_ENUM(NSUInteger, FontTrait) { typedef NS_ENUM(NSUInteger, FontTrait) {
FontTraitNone = 0, FontTraitNone = 0,
FontTraitItalic = (1 << 0), FontTraitItalic = (1 << 0),

View File

@ -0,0 +1,27 @@
@import Foundation;
#import "NeoVimUiBridgeProtocol.h"
extern NSString * __nonnull cursorModeShapeName(CursorModeShape mode) {
switch (mode) {
case CursorModeShapeNormal: return @"Normal";
case CursorModeShapeVisual: return @"Visual";
case CursorModeShapeInsert: return @"Insert";
case CursorModeShapeReplace: return @"Replace";
case CursorModeShapeCmdline: return @"Cmdline";
case CursorModeShapeCmdlineInsert: return @"CmdlineInsert";
case CursorModeShapeCmdlineReplace: return @"CmdlineReplace";
case CursorModeShapeOperatorPending: return @"OperatorPending";
case CursorModeShapeVisualExclusive: return @"VisualExclusive";
case CursorModeShapeOnCmdline: return @"OnCmdline";
case CursorModeShapeOnStatusLine: return @"OnStatusLine";
case CursorModeShapeDraggingStatusLine: return @"DraggingStatusLine";
case CursorModeShapeOnVerticalSepLine: return @"OnVerticalSepLine";
case CursorModeShapeDraggingVerticalSepLine: return @"DraggingVerticalSepLine";
case CursorModeShapeMore: return @"More";
case CursorModeShapeMoreLastLine: return @"MoreLastLine";
case CursorModeShapeShowingMatchingParen: return @"ShowingMatchingParen";
case CursorModeShapeTermFocus: return @"TermFocus";
case CursorModeShapeCount: return @"Count";
default: return @"NON_EXISTING_MODE";
}
}

View File

@ -148,6 +148,7 @@
4B91FFF41DEB772200447068 /* CocoaFontAwesome.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 4B337FBA1DEB76F20020ADD2 /* CocoaFontAwesome.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 4B91FFF41DEB772200447068 /* CocoaFontAwesome.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 4B337FBA1DEB76F20020ADD2 /* CocoaFontAwesome.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
4B91FFF61DEB772B00447068 /* CocoaFontAwesome.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 4B337FBA1DEB76F20020ADD2 /* CocoaFontAwesome.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 4B91FFF61DEB772B00447068 /* CocoaFontAwesome.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 4B337FBA1DEB76F20020ADD2 /* CocoaFontAwesome.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
4B96384C1ED9793B001C556F /* NeoVimAutoCommandEvent.generated.m in Sources */ = {isa = PBXBuildFile; fileRef = 4B96384B1ED9793B001C556F /* NeoVimAutoCommandEvent.generated.m */; }; 4B96384C1ED9793B001C556F /* NeoVimAutoCommandEvent.generated.m in Sources */ = {isa = PBXBuildFile; fileRef = 4B96384B1ED9793B001C556F /* NeoVimAutoCommandEvent.generated.m */; };
4B96384E1ED9797F001C556F /* NeoVimUiBridgeProtocol.m in Sources */ = {isa = PBXBuildFile; fileRef = 4B96384D1ED9797F001C556F /* NeoVimUiBridgeProtocol.m */; };
4B96FB3B1EBBC56F00E4E164 /* FileItemIgnorePattern.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1929B69499B2569793350CEC /* FileItemIgnorePattern.swift */; }; 4B96FB3B1EBBC56F00E4E164 /* FileItemIgnorePattern.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1929B69499B2569793350CEC /* FileItemIgnorePattern.swift */; };
4B96FB3C1EBBC56F00E4E164 /* FileUtils.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1929BA8AC40B901B20F20B71 /* FileUtils.swift */; }; 4B96FB3C1EBBC56F00E4E164 /* FileUtils.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1929BA8AC40B901B20F20B71 /* FileUtils.swift */; };
4B96FB3D1EBBC56F00E4E164 /* Matcher.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1929BEEB33113B0E33C3830F /* Matcher.swift */; }; 4B96FB3D1EBBC56F00E4E164 /* Matcher.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1929BEEB33113B0E33C3830F /* Matcher.swift */; };
@ -482,6 +483,7 @@
4B854A1C1D31447C00E08DE1 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; }; 4B854A1C1D31447C00E08DE1 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
4B8AC0431DBCB3A1007CCC9B /* NeoVimObjectsExtensions.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = NeoVimObjectsExtensions.swift; sourceTree = "<group>"; }; 4B8AC0431DBCB3A1007CCC9B /* NeoVimObjectsExtensions.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = NeoVimObjectsExtensions.swift; sourceTree = "<group>"; };
4B96384B1ED9793B001C556F /* NeoVimAutoCommandEvent.generated.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = NeoVimAutoCommandEvent.generated.m; sourceTree = "<group>"; }; 4B96384B1ED9793B001C556F /* NeoVimAutoCommandEvent.generated.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = NeoVimAutoCommandEvent.generated.m; sourceTree = "<group>"; };
4B96384D1ED9797F001C556F /* NeoVimUiBridgeProtocol.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = NeoVimUiBridgeProtocol.m; sourceTree = "<group>"; };
4B97E2CD1D33F53D00FC0660 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MainWindow.xib; sourceTree = "<group>"; }; 4B97E2CD1D33F53D00FC0660 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MainWindow.xib; sourceTree = "<group>"; };
4BB1BEA81D48773200463C29 /* RxSwiftCommons.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RxSwiftCommons.swift; sourceTree = "<group>"; }; 4BB1BEA81D48773200463C29 /* RxSwiftCommons.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RxSwiftCommons.swift; sourceTree = "<group>"; };
4BB409E61DD68CCC005F39A2 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/FileBrowserMenu.xib; sourceTree = "<group>"; }; 4BB409E61DD68CCC005F39A2 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/FileBrowserMenu.xib; sourceTree = "<group>"; };
@ -1016,6 +1018,7 @@
4B183E1A1E08748B0079E8A8 /* NeoVimAutoCommandEvent.generated.h */, 4B183E1A1E08748B0079E8A8 /* NeoVimAutoCommandEvent.generated.h */,
4B96384B1ED9793B001C556F /* NeoVimAutoCommandEvent.generated.m */, 4B96384B1ED9793B001C556F /* NeoVimAutoCommandEvent.generated.m */,
4B2A2C061D0352CB0074CE9A /* NeoVimUiBridgeProtocol.h */, 4B2A2C061D0352CB0074CE9A /* NeoVimUiBridgeProtocol.h */,
4B96384D1ED9797F001C556F /* NeoVimUiBridgeProtocol.m */,
); );
name = NeoVimView; name = NeoVimView;
sourceTree = "<group>"; sourceTree = "<group>";
@ -1417,6 +1420,7 @@
4BDD058C1DBBC50000D1B405 /* NeoVimWindow.m in Sources */, 4BDD058C1DBBC50000D1B405 /* NeoVimWindow.m in Sources */,
1929BEB90DCDAF7A2B68C886 /* ColorUtils.swift in Sources */, 1929BEB90DCDAF7A2B68C886 /* ColorUtils.swift in Sources */,
4B8AC0441DBCB3A2007CCC9B /* NeoVimObjectsExtensions.swift in Sources */, 4B8AC0441DBCB3A2007CCC9B /* NeoVimObjectsExtensions.swift in Sources */,
4B96384E1ED9797F001C556F /* NeoVimUiBridgeProtocol.m in Sources */,
4B4192181D0C52D700A0BEB2 /* Grid.swift in Sources */, 4B4192181D0C52D700A0BEB2 /* Grid.swift in Sources */,
); );
runOnlyForDeploymentPostprocessing = 0; runOnlyForDeploymentPostprocessing = 0;