mirror of
https://github.com/VSCodeVim/Vim.git
synced 2024-09-19 16:18:45 +03:00
zb, zt
This commit is contained in:
parent
33662993a7
commit
d1e6dd50fd
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user