Skip to content

Commit

Permalink
Merge branch 'master' into use-users-cursor-style
Browse files Browse the repository at this point in the history
  • Loading branch information
xconverge committed Mar 25, 2017
2 parents f0e2a3f + e02363e commit 7d78a28
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions src/actions/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2785,6 +2785,7 @@ class CommandUndo extends BaseCommand {
modes = [ModeName.Normal];
keys = ["u"];
runsOnceForEveryCursor() { return false; }
mustBeFirstKey = true;

public async exec(position: Position, vimState: VimState): Promise<VimState> {
const newPositions = await vimState.historyTracker.goBackHistoryStep();
Expand Down Expand Up @@ -5131,6 +5132,34 @@ class MoveFormat extends BaseMovement {
}
}

// Used for gUU
@RegisterAction
class MoveUpercaseLine extends BaseMovement {
modes = [ModeName.Normal];
keys = ["U"];

public async execAction(position: Position, vimState: VimState): Promise<IMovement> {
return {
start : position.getLineBegin(),
stop : position.getLineEnd(),
};
}
}

// Used for guu
@RegisterAction
class MoveLowercaseLine extends BaseMovement {
modes = [ModeName.Normal];
keys = ["u"];

public async execAction(position: Position, vimState: VimState): Promise<IMovement> {
return {
start : position.getLineBegin(),
stop : position.getLineEnd(),
};
}
}

@RegisterAction
class ActionDeleteLineVisualMode extends BaseCommand {
modes = [ModeName.Visual, ModeName.VisualLine];
Expand Down

0 comments on commit 7d78a28

Please sign in to comment.