From 26dd74a7873118cd4e5960795e9adffc2533de5b Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Thu, 11 Jul 2024 21:49:03 +0300 Subject: [PATCH] plain-text: Reorganize operations slightly --- src/routes/plain-text/+page.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/routes/plain-text/+page.js b/src/routes/plain-text/+page.js index 026cedb..4995131 100644 --- a/src/routes/plain-text/+page.js +++ b/src/routes/plain-text/+page.js @@ -20,7 +20,7 @@ export function load() { return { textOperations: { - "Line operations": { + "Line operations": { operations: [ { label: "Sort ascending", @@ -44,7 +44,7 @@ export function load() { }, { - label: "Reverse lines", + label: "Reverse line order", run: (text) => text.split("\n").reverse().join("\n"), icon: SwapVertical, description: "Reverses the order of all the lines (i.e. the last one becomes the first and so on)." @@ -59,7 +59,8 @@ export function load() { ] }, - "Whitespace removal": { + "Line removal": { + columns: "always", operations: [ { label: "Trim leading",