From 6ff02041895f339503928291be3b599eff41131f Mon Sep 17 00:00:00 2001 From: Arthur Roberts Date: Tue, 19 Aug 2025 23:45:49 +0100 Subject: [PATCH] Added comment to possibly explain why rofi -e is exiting early When double clicking --- scryfall_deser/scripts/search_with_rofi.sh | 2 ++ scryfall_deser/src/db.rs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/scryfall_deser/scripts/search_with_rofi.sh b/scryfall_deser/scripts/search_with_rofi.sh index d2b60f8..d545328 100755 --- a/scryfall_deser/scripts/search_with_rofi.sh +++ b/scryfall_deser/scripts/search_with_rofi.sh @@ -10,6 +10,8 @@ EOF CARD_OUTPUT=$(/home/arthurr/code/mini_projects/scryfall_deser/target/debug/scryfall_deser --exact $SELECTION) # If you double check the first rofi selection it seems to prevent the error window from popping up +# I think this is because it registers the second click as a click outside the window which exits +# the rofi -e message sleep 0.05 rofi -e "$CARD_OUTPUT" diff --git a/scryfall_deser/src/db.rs b/scryfall_deser/src/db.rs index 9b392e7..a9565e8 100644 --- a/scryfall_deser/src/db.rs +++ b/scryfall_deser/src/db.rs @@ -99,7 +99,7 @@ impl fmt::Display for DbCard { Some(l) => writeln!(f, "Starting Loyalty: {}", l)?, None => (), } - writeln!(f, "{}", self.scryfall_uri)?; + writeln!(f, "Scryfall URI: {}", self.scryfall_uri)?; Ok(()) } }