Skip to content

Commit

Permalink
fix: macro aliases corrupt macro entrie search
Browse files Browse the repository at this point in the history
  • Loading branch information
luxluth committed Dec 19, 2024
1 parent e7f435e commit 1ec43fe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ fn activate(config: conf::Config, app: &Application) {
move |e| {
let entry = e.text().to_string();
if IN_MACRO_MODE.load(Ordering::Relaxed) {
if let Some(def) = config.macros.get(macro_hint.text().as_str()) {
// TODO: find a better way to store current macro tag other than
// the css class name
if let Some(def) = config.macros.get(macro_hint.css_classes()[0].as_str()) {
let MacroDef(_, command) = def;
let shell_cmd = command
.replace("{ENTRY}", &entry)
Expand Down

0 comments on commit 1ec43fe

Please sign in to comment.