Skip to content

Commit

Permalink
Add messages
Browse files Browse the repository at this point in the history
  • Loading branch information
whitphx committed Jan 13, 2024
1 parent 17668e5 commit fc755f5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/commands/registers.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import * as vscode from "vscode";
import { IEmacsController } from "../emulator";
import { MessageManager } from "../message";
import { EmacsCommand, ITextEditorInterruptionHandler } from ".";
import { getNonEmptySelections, makeSelectionsEmpty } from "./helpers/selection";

Expand All @@ -13,6 +14,8 @@ export class StartRegisterCopyCommand extends EmacsCommand implements ITextEdito
this.acceptingRegisterCopyCommand = true;
vscode.commands.executeCommand("setContext", "emacs-mcx.acceptingRectCommand", false);
vscode.commands.executeCommand("setContext", "emacs-mcx.inRegisterCopyMode", true);

MessageManager.showMessage("Copy to register: ");
}

private stopRegisterCopyCommand(): void {
Expand Down Expand Up @@ -41,6 +44,8 @@ export class StartRegisterInsertCommand extends EmacsCommand implements ITextEdi
this.acceptingRegisterInsertCommand = true;
vscode.commands.executeCommand("setContext", "emacs-mcx.acceptingRectCommand", false);
vscode.commands.executeCommand("setContext", "emacs-mcx.inRegisterInsertMode", true);

MessageManager.showMessage("Insert from register: ");
}

private stopRegisterInsertCommand(): void {
Expand Down

0 comments on commit fc755f5

Please sign in to comment.