Skip to content

Commit

Permalink
Fix VSCodeVim#338 - add gt, gT support
Browse files Browse the repository at this point in the history
  • Loading branch information
arussellk committed Jul 20, 2016
1 parent 4807373 commit 73b952c
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/actions/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1488,6 +1488,30 @@ class MoveToLeftPane extends BaseCommand {
}
}

class BaseTabCommand extends BaseCommand {
modes = [ModeName.Normal, ModeName.Visual, ModeName.VisualLine];
}

@RegisterAction
class CommandTabNext extends BaseTabCommand {
keys = ["g", "t"];

public async exec(position: Position, vimState: VimState): Promise<VimState> {
await vscode.commands.executeCommand("workbench.action.nextEditor");
return vimState;
}
}

@RegisterAction
class CommandTabPrevious extends BaseTabCommand {
keys = ["g", "T"];

public async exec(position: Position, vimState: VimState): Promise<VimState> {
await vscode.commands.executeCommand("workbench.action.previousEditor");
return vimState;
}
}

@RegisterAction
class MoveDownNonBlank extends BaseMovement {
modes = [ModeName.Normal, ModeName.Visual, ModeName.VisualLine];
Expand Down

0 comments on commit 73b952c

Please sign in to comment.