diff --git a/evaluator.go b/evaluator.go index 9c7a8448a..1da005de1 100644 --- a/evaluator.go +++ b/evaluator.go @@ -152,6 +152,10 @@ func Evaluate(ctx context.Context, tape string, out io.Writer, opts ...Evaluator // // We should remove if isSetting statement. isSetting := cmd.Type == token.SET && cmd.Options != "TypingSpeed" + + if isSetting { + fmt.Println(ErrorStyle.Render(fmt.Sprintf("WARN: 'Set %s %s' has been ignored. Move the directive to the top of the file.\nLearn more: https://github.com/charmbracelet/vhs#settings", cmd.Options, cmd.Args))) + } if isSetting || cmd.Type == token.REQUIRE { fmt.Fprintln(out, Highlight(cmd, true)) continue