refactor: prepare plugin for Obsidian community submission

- Fix command name from "Clean Up Freewriting" to "Clean up text" to follow Obsidian guidelines (no plugin name in command)
- Replace inline JavaScript styles with CSS classes for better theme compatibility
- Add proper CSS styles in styles.css for textarea and description elements
- Correct license information in README from MIT to GPL v3 to match actual LICENSE file
- Update README documentation to reflect new command name

These changes address common Obsidian plugin review feedback:
- Avoid assigning styles via JavaScript
- Command names should not include plugin name
- Maintain consistency between documentation and actual license

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Jarvis committed 2025-09-20 12:34:09 +02:00
1 parent aa4193410c
commit 809fce9c89
4 files changed
+27 -21

No files matched your search

+18 -5
View File
@@ -1,8 +1,21 @@
/*
/* Freewriting Cleanup Plugin Styles */
This CSS file will be included with your plugin, and
available in the app when your plugin is enabled.
/* Settings page textarea styling */
.freewriting-cleanup-textarea {
width: 100% !important;
min-height: 100px !important;
}
If your plugin does not need CSS, delete this file.
.freewriting-cleanup-textarea-small {
width: 100% !important;
min-height: 80px !important;
}
*/
/* Commentary style description box */
.freewriting-cleanup-description {
margin-left: 0 !important;
padding: 10px !important;
background-color: var(--background-secondary) !important;
border-radius: 5px !important;
font-size: 0.9em !important;
}