Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Macros #1234

Merged
merged 8 commits into from
Dec 12, 2021
Merged

Macros #1234

Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Default to @ register for macros
  • Loading branch information
Omnikar committed Dec 8, 2021
commit 6cd343f9fdf03ed6f8d1b9966b5669d106877493
4 changes: 2 additions & 2 deletions helix-term/src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5876,15 5876,15 @@ fn record_macro(cx: &mut Context) {
cx.editor
.set_status(format!("Recorded to register {}", reg));
} else {
let reg = cx.register.take().unwrap_or('"');
let reg = cx.register.take().unwrap_or('@');
cx.editor.macro_recording = Some((reg, Vec::new()));
cx.editor
.set_status(format!("Recording to register {}", reg));
}
}

fn play_macro(cx: &mut Context) {
let reg = cx.register.unwrap_or('"');
let reg = cx.register.unwrap_or('@');
let keys = match cx
.editor
.registers
Expand Down