Conforms to NSObject
Declared in ViKeyManager.h

Overview

Protocol defining methods for the target of a key manager.

Tasks

Instance Methods

keyManager:evaluateCommand:

Evaluate a generated command.

- (BOOL)keyManager:(ViKeyManager *)keyManager evaluateCommand:(ViCommand *)command

Parameters

keyManager

The key manager that handled the event.

command

The generated ViCommand.

Return Value

YES if the command succeded, otherwise NO.

Discussion

Only normal editor actions are passed to this method. Macros and Nu expressions are evaluated automatically by the key manager.

Declared In

ViKeyManager.h

keyManager:partialKeyString:

Notify about partial keys.

- (void)keyManager:(ViKeyManager *)keyManager partialKeyString:(NSString *)keyString

Parameters

keyManager

The key manager handling the event.

keyString

A string of partial keys.

Discussion

This method can be used to present partial vi commands.

Declared In

ViKeyManager.h

keyManager:presentError:

Present errors from key parsing.

- (void)keyManager:(ViKeyManager *)aKeyManager presentError:(NSError *)error

Parameters

aKeyManager

The key manager handling the event.

error

An error from the vi key parser or map.

Declared In

ViKeyManager.h

keyManager:shouldParseKey:inScope:

Intercept keys before parsing.

- (NSNumber *)keyManager:(ViKeyManager *)aKeyManager shouldParseKey:(NSNumber *)keyCode inScope:(ViScope *)scope

Parameters

aKeyManager

The key manager handling the event.

keyCode

The key code that is being parsed.

scope

The active scope.

Return Value

A NSNumber with a boolean YES if the key should be parsed, otherwise NO.

Declared In

ViKeyManager.h