From 6747585322a03e2608acc135e376ecbc70820134 Mon Sep 17 00:00:00 2001 From: Austen Adler Date: Tue, 12 Sep 2023 23:01:34 -0400 Subject: [PATCH] Default to ^ register for set operations --- src/xlookup.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/xlookup.rs b/src/xlookup.rs index fff4790..ea25c71 100644 --- a/src/xlookup.rs +++ b/src/xlookup.rs @@ -10,11 +10,13 @@ use std::{ #[derive(clap::Args, Debug)] pub struct Options { - #[clap(help = "Register with the lookup table", default_value = "\"")] + #[clap(help = "Register with the lookup table", default_value = "^")] register: Register, } pub fn xlookup(options: &Options) -> Result { - let lookup_table = build_lookuptable(kakplugin::reg(options.register, None)?)?; + eprintln!("Getting registers for {options:?}"); + let lookup_table = build_lookuptable(kakplugin::get_register_selections(options.register)?)?; + // let lookup_table = build_lookuptable(kakplugin::reg(options.register, None)?)?; let selections = get_selections(None)?;