Commit Graph

24 Commits

Author SHA1 Message Date
schihei 43d8652d04 Merge branch 'bugfix/2026-04-29' into 'main'
Fix plugin ID, package metadata, and formatter consistency issues

See merge request schihei/obsidian-unicode-formatter!1
2026-05-05 13:46:13 +00:00
schihei f13c19f880 Show error feedback when clipboard copy fails 2026-05-05 15:36:49 +02:00
schihei 6bd9693ea6 Fix README install path and add configurable thread settings 2026-05-05 15:24:05 +02:00
schihei 93f19858a9 Widen thread modal and improve textarea spacing 2026-04-29 23:38:06 +02:00
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 b824ad5ed5 1.0.1 2026-04-29 22:21:33 +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 91b70f8484 Update README to reflect always-prefix bullet conversion behavior
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-21 15:35:02 +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 7a4e09f97c Update README to document Remove Unicode Formatting command
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-21 15:06:49 +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 e7bcc6f789 23 pages covering everything Claude Code needs to implement the functionality end-to-end 2026-03-19 18:53:06 +00:00
schihei 6a3cb48f60 Update README to reflect Unicode Text Formatter plugin
Replace the boilerplate Obsidian sample plugin README with accurate
documentation covering features, usage, installation, project structure,
and Unicode code point ranges used by the plugin.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-19 19:26:36 +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 e2954a8795 Initial commit of CLAUDE.md file. Claude Code reads this automatically as persistent project context. 2026-03-19 19:09:34 +01:00
schihei 5d8de9dd2a Initial commit 2026-03-19 19:00:24 +01:00