Commit Graph

14 Commits

Author SHA1 Message Date
schihei 834451f33b Add enhanced Markdown to LinkedIn conversion and X thread splitter 2026-04-29 23:28:28 +02:00
schihei a7db8ef418 Fix line case in command names, type-safety in applyInlineMarkdown, and versions.json 2026-04-29 23:01:08 +02:00
schihei 783278058b Revert Unicode formatted text back to Markdown syntax in cleanText
- Add UNICODE_TO_STYLE reverse map to classify Unicode chars by font style
- Rewrite cleanText to group same-style runs and wrap in Markdown (**bold**, _italic_, **_bold-italic_**)
2026-04-29 22:51:48 +02:00
schihei e5c3417a83 Revert editorCheckCallback — broke command palette visibility
- Remove editorCheckCallback from all 8 commands
- Remove MarkdownView import and editorCheck helper function
- fixup e8e5760
2026-04-29 22:41:25 +02:00
schihei e8e5760f99 Add editorCheckCallback to all commands and remove empty onunload
- Add editorCheckCallback to hide commands when no Markdown editor is active
- Remove no-op onunload override (base Plugin class provides default)
2026-04-29 22:20:49 +02:00
schihei 85d20b896a Fix plugin ID, package metadata, and formatter consistency issues
- Correct plugin ID in manifest.json to match folder name (obsidian-unicode-formatter)
- Update package.json name and description from sample template defaults
- Make markdownToLinkedIn handle both '- ' and '* ' list markers
- Enhance cleanText to also strip em-dash, arrow, and numbered-list prefixes
2026-04-29 22:17:21 +02:00
schihei 0ecf6835c9 Add Markdown to Post Format command and fix non-breaking space before period
- New markdownToLinkedIn() function converts Markdown to LinkedIn/Facebook-ready text:
  ## headings → Unicode bold, **bold** → Unicode bold, _italic_ → Unicode italic,
  - list items → em-dash bullets; blank lines and heading spacing handled correctly
- New "Convert Markdown to Post Format" command registered in commands.ts
- Fix space-before-period cleanup to also strip U+00A0 (non-breaking space),
  which Obsidian inserts after bold/formatted text (/ \./g → /[ \u00A0]\./g)
- Update README to document the new command and updated function list

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-21 17:15:32 +01:00
schihei 6eedd47805 Add numbered list conversion commands (slash and parentheses styles)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-21 15:46:13 +01:00
schihei c0a84b439b Always prefix lines in bullet conversion commands
Both bulletToArrow and bulletToEmdash now prepend the symbol to every
selected line, not just lines starting with "* ". Lines with "* " still
have the marker stripped before the prefix is added.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-21 15:32:34 +01:00
schihei 1fab274fd6 Add "Convert List Bullets to Arrow" command
Adds bulletToArrow() to formatter.ts and registers the new
unicode-formatter:bullet-to-arrow command. Updates README accordingly.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-21 15:22:25 +01:00
schihei 5befb3a0bc Add "Convert List Bullets to Em Dash" command
Adds bulletToEmdash() to formatter.ts and registers the new
unicode-formatter:bullet-to-emdash command. Updates README accordingly.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-21 15:18:15 +01:00
schihei 1c86ac5740 Add "Remove Unicode Formatting" command to clean Unicode text back to ASCII
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-21 15:01:54 +01:00
schihei fd74c0987e Implement Unicode text formatter plugin
- Add unicode-maps.ts with BOLD_MAP, ITALIC_MAP, BOLD_ITALIC_MAP from Unicode Sans-Serif ranges
- Add formatter.ts with transformText(text, style) using the maps
- Add commands.ts registering three editorCallback commands (bold, italic, bold-italic)
- Replace sample plugin boilerplate in main.ts with UnicodeFormatterPlugin wired to registerCommands
- Update manifest.json with correct id, name, and description
- Delete unused settings.ts boilerplate

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-19 19:21:16 +01:00
schihei 5d8de9dd2a Initial commit 2026-03-19 19:00:24 +01:00