This commit is contained in:
rebornix 2016-08-23 02:13:40 -07:00
parent 33662993a7
commit d1e6dd50fd

View File

@ -1723,6 +1723,28 @@ class CommandCenterScroll extends BaseCommand {
}
}
@RegisterAction
class COmmandTopScroll extends BaseCommand {
modes = [ModeName.Normal];
keys = ["z", "t"];
public async exec(position: Position, vimState: VimState): Promise<VimState> {
await vscode.commands.executeCommand('revealLine', {lineNumber: 1, at: 'top'});
return vimState;
}
}
@RegisterAction
class CommandBottomScroll extends BaseCommand {
modes = [ModeName.Normal];
keys = ["z", "b"];
public async exec(position: Position, vimState: VimState): Promise<VimState> {
await vscode.commands.executeCommand('revealLine', {lineNumber: 10, at: 'bottom'});
return vimState;
}
}
@RegisterAction
class CommandGoToOtherEndOfHighlightedText extends BaseCommand {
modes = [ModeName.Visual, ModeName.VisualLine];