Skip to content

Commit

Permalink
plain-text: Reorganize operations slightly
Browse files Browse the repository at this point in the history
  • Loading branch information
eliandoran committed Jul 11, 2024
1 parent 80f1f84 commit 26dd74a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/routes/plain-text/+page.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export function load() {

return {
textOperations: {
"Line operations": {
"Line operations": {
operations: [
{
label: "Sort ascending",
Expand All @@ -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)."
Expand All @@ -59,7 +59,8 @@ export function load() {
]
},

"Whitespace removal": {
"Line removal": {
columns: "always",
operations: [
{
label: "Trim leading",
Expand Down

0 comments on commit 26dd74a

Please sign in to comment.