Merge pull request #1 from valentineus/codex/fix-command-naming-and-improve-ux

Fix command naming and expose settings
This commit is contained in:
2025-06-09 23:14:56 +04:00
committed by GitHub
6 changed files with 33 additions and 6 deletions

View File

@@ -1,6 +1,11 @@
[ [
{ {
"caption": "Clear Text", "caption": "TextCleaner: Clean Text",
"command": "text_cleaner" "command": "text_cleaner"
},
{
"caption": "TextCleaner: Settings",
"command": "open_file",
"args": {"file": "${packages}/TextCleaner/TextCleaner.sublime-settings"}
} }
] ]

18
Main.sublime-menu Normal file
View File

@@ -0,0 +1,18 @@
[
{
"id": "preferences",
"children": [
{
"id": "package-settings",
"children": [
{
"caption": "TextCleaner: Settings",
"command": "open_file",
"args": {"file": "${packages}/TextCleaner/TextCleaner.sublime-settings"}
}
]
}
]
}
]

View File

@@ -2,6 +2,10 @@
TextCleaner is a Sublime Text 4 plugin that cleans up your document by performing several text transformations. It converts tabs to spaces, replaces invisible characters, standardizes quotes, trims extra whitespace, collapses multiple spaces, removes duplicate empty lines, and cleans up empty lines around brackets. TextCleaner is a Sublime Text 4 plugin that cleans up your document by performing several text transformations. It converts tabs to spaces, replaces invisible characters, standardizes quotes, trims extra whitespace, collapses multiple spaces, removes duplicate empty lines, and cleans up empty lines around brackets.
## Usage
Run the **TextCleaner: Clean Text** command from the Command Palette to tidy up the current file. You can open the plugin settings via the same palette or through the **Preferences → Package Settings → TextCleaner** menu.
## Settings ## Settings
You can customize which transformations are applied through the configuration file ([TextCleaner.sublime-settings](/TextCleaner.sublime-settings)). Below is a description of each setting: You can customize which transformations are applied through the configuration file ([TextCleaner.sublime-settings](/TextCleaner.sublime-settings)). Below is a description of each setting: