question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Is your feature request related to a problem? Instead of <<replace>> + <<include>> or <<replace>> + rewriting the original content, a macro that lets you “re-run”/re-wikify a target HTML element, similar to Harlowe’s (rerun:) macro makes a lot of sense.

Not sure about the name <<rerun>>. I feel like <<update>> makes more sense, but Harlowe already named the feature, so I think it’s best to stick to that.

Describe the solution you’d like.

@@#target;$cash@@ 

<<link "Spend money">>
  <<set $cash -= 10>>
  <<rerun "#target">>
<</link>> 

Describe alternatives you’ve considered. Just a convenience option. Replacing via DOM macros is simple enough for the same effect but always requires a bit of rewriting that could be easily eliminated for such a common construction.

Additional context. I plan to add this to my macro collection, but I actually think it would make sense as a standard library macro, so I figured I’d ask about it here first.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:17 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
tmedwardscommented, Oct 7, 2022

As the commit message notes, it’s in.

<<do [tag tags] [element tag]>>…<</do>>
<<refresh [tags]>>

The documentation feels like a train wreck though. For example, the description of tags for both macros are awkward. 🫤

PS: The docs can finally be built using only NPM packages. No need for an external binary now.

1reaction
tmedwardscommented, Oct 6, 2022

The longer I mull it over, the more I sour on <<redo>> due to the undo/redo angle. I do think I’ll switch to <<refresh>> for the update macro.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Run a Macro in Excel - A Complete Step-by-Step Guide
Run a Macro from the Ribbon (Developer Tab) ; Go to the Developer Tab –> Code –> Macros. How to Run a Macro...
Read more >
Rerun Excel macro when data gets updated - Stack Overflow
I have found a macro from another forum to use that will hide the rows (below) but it will only hide rows the...
Read more >
How to Run a Macro in Excel (Run a VBA Code) - Excel Champs
1. Run a Macro from the List · Click on the macro button from the “Developer Tab” and open the list of macros....
Read more >
How to run macro in Excel and create a macro button - Ablebits
Run a macro with custom keyboard shortcut · On the Developer tab, in the Code group, click Macros. · In the Macro dialog...
Read more >
How to Run a Macro in Excel
Run a Macro using a Keyboard Shortcut · Bring up the Macro List (View > Macros, or ALT+F8) · Select the macro you...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found