Skip to content

Conversation

@kareltucek
Copy link
Collaborator

@kareltucek kareltucek commented Jan 30, 2026

Summary

  • Macros are now validated in general context (without arguments), not just when bound to keys
  • Commands containing macroArg are skipped during general context validation since they require binding-specific arguments
  • Added StrContains() utility function to str_utils for substring search

Test plan

  • Run validateMacros command and verify unbound macros are now validated
  • Verify macros with macroArg don't produce false errors when validated in general context

🤖 Generated with Claude Code

Previously, macros were only validated in their binding site contexts,
meaning macros that weren't bound to any key were never validated.

Now Macros_ValidateAllMacros() also loops through all macros and
validates them with argumentOffset=0 (general context). Commands
containing "macroArg" are skipped during general context validation
since they require binding-specific arguments.

Added StrContains() utility function to str_utils for substring search.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@kareltucek kareltucek merged commit 9ee52a2 into master Jan 30, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants