feat: add Clean Paste (Dán sạch) text normalization - #344
Open
khaphanspace wants to merge 1 commit into
Open
Conversation
khaphanspace
force-pushed
the
feat/clean-paste-text-normalization
branch
from
March 16, 2026 09:14
14c4088 to
fb8f202
Compare
Hotkey-triggered clipboard text cleaning with platform-aware markdown conversion. Cmd+Shift+V (configurable) reads clipboard, normalizes text, and pastes the cleaned version. Features: - Char replacement: smart quotes, em dash, bullets, zero-width chars - Format normalization: collapse blank lines, compact nested bullets, join after colon/heading, trim spaces, strip backslash escapes - Platform-aware markdown: auto-detects target app and converts headings/tables/links/bold/italic for Discord, Slack, Telegram, Zalo, Facebook, iMessage, etc. - Strip **bold** from heading text (Google Docs/Notion export compat) - Simplify redundant links [url](url) → url - Customizable char mapping table + configurable hotkey - Preserve nested bullet indent levels - 53 unit tests, all existing 970+ tests pass
khaphanspace
force-pushed
the
feat/clean-paste-text-normalization
branch
from
March 16, 2026 15:57
fb8f202 to
b870398
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Changes
core/src/clean_text.rscore/src/lib.rsime_clean_textplatforms/macos/AdvancedSettingsView.swiftplatforms/macos/MainSettingsView.swiftCleanPasteMappingmodel + AppStateplatforms/macos/RustBridge.swiftplatforms/macos/AppMetadata.swiftTest plan