From 44a5b664a0f807c96faefd1bc080a7828b75ab69 Mon Sep 17 00:00:00 2001 From: Leon Mika Date: Mon, 4 May 2026 21:34:39 +1000 Subject: [PATCH] Removed UCL processors --- textfilters.go | 32 -------------------------------- 1 file changed, 32 deletions(-) diff --git a/textfilters.go b/textfilters.go index cfaabaf..fcd047f 100644 --- a/textfilters.go +++ b/textfilters.go @@ -265,22 +265,6 @@ var TextFilters = map[string]TextProcessor{ }, }, - "ucl-evaluate": { - Label: "UCL: Evaluate", - Description: "Evaluates the input as a UCL expression and displays the result in the status bar.", - Analyze: func(ctx context.Context, input string) (result string, err error) { - res, err := uclInstFromContext(ctx).EvalString(ctx, input) - if err != nil { - if errors.Is(err, ucl.ErrNotConvertable) { - return "Evaluated successfully. No result.", err - } - return "", err - } - - return fmt.Sprintf("Result: %v", res), nil - }, - }, - "sort-lines-asc": { Label: "Lines: Sort A-Z", Filter: func(ctx context.Context, input string) (resp TextFilterResponse, err error) { @@ -356,22 +340,6 @@ var TextFilters = map[string]TextProcessor{ }, }, }, - - "ucl-replace": { - Label: "UCL: Replace", - Description: "Evaluates the input as a UCL expression and replaces it with the result.", - Filter: func(ctx context.Context, input string) (resp TextFilterResponse, err error) { - res, err := uclInstFromContext(ctx).EvalString(ctx, input) - if err != nil { - if errors.Is(err, ucl.ErrNotConvertable) { - return TextFilterResponse{}, err - } - return TextFilterResponse{}, err - } - - return TextFilterResponse{Output: fmt.Sprint(res)}, nil - }, - }, } type strPseudoVar struct {