Skip to content

Commit

Permalink
zb, zt
Browse files Browse the repository at this point in the history
  • Loading branch information
rebornix committed Sep 14, 2016
1 parent 3366299 commit d1e6dd5
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/actions/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit d1e6dd5

Please sign in to comment.