Watermelon Workbench

approvedunreviewed

by Lynn

A cozy novel-writing workbench for Obsidian with chapter navigation, local name generation, time-machine backups, and live writing stats.

โ˜… 1 starsUpdated todayMIT

๐Ÿ‰ Watermelon Workbench

็ป™ Obsidian ๅฐ่ฏดไฝœ่€…็š„ไธ€ๅผ โ€œ่ฅฟ็“œๅ‘ณๅ†™ไฝœๆกŒโ€๏ผšๅทฆ่พนๆ”พ็ซ ่Š‚๏ผŒไธญ้—ดไธ“ๅฟƒๅ†™๏ผŒๅณ่พนๆ”พ็ตๆ„Ÿๅทฅๅ…ทๅ’Œ็ ๅญ—ไปช่กจ็›˜ใ€‚

Watermelon Workbench is a cozy long-form writing workspace for Obsidian. It keeps your Markdown files plain and portable, while adding a focused writing interface for drafting novels, web fiction, worldbuilding notes, serial chapters, and any text that wants to grow into a small universe.

ๅฆ‚ๆžœไฝ ็ปๅธธๅœจ Obsidian ้‡Œๅ†™ๅฐ่ฏด๏ผŒๅด่ง‰ๅพ—้ป˜่ฎค็ผ–่พ‘ๅ™จๅƒไธ€ๅผ ๅคชๅฎฝ็š„็™ฝ็บธใ€็ซ ่Š‚่ทณ่ฝฌไธๅคŸ้กบๆ‰‹ใ€ไธดๆ—ถ่ง’่‰ฒๅๅˆๆ€ปๅกๅฃณโ€”โ€”ๆฌข่ฟŽๆŠŠ่ฟ™้ข—่ฅฟ็“œๅˆ‡ๅผ€ใ€‚

โœจ Features

๐Ÿง˜ Focused writing workbench

  • Opens the current Markdown file in a dedicated writing view.
  • Exits back to Obsidian's normal Markdown editor without spawning extra tabs.
  • Comfortable typography controls: font family, font size, and line height.
  • Auto-scrolls near the bottom so the cursor stays in a comfortable writing zone.

๐Ÿ“š Chapter navigation

  • Shows sibling Markdown files as a chapter list.
  • Switch chapters without leaving the workbench.
  • Supports sorting by path/name or modified time.

โœ๏ธ Writing-friendly indentation

  • Use the top-toolbar โ€œ้ฆ–่กŒ็ผฉ่ฟ›โ€ button to choose whether Enter automatically starts the next line at a Chinese-style first-line indent position.
  • The indent is for the workbench writing experience; saved Markdown stays clean.
  • Legacy full-width indent characters inserted by earlier builds are normalized when opening files.

๐ŸŽฒ Local random name generator

No API key. No network request. No waiting for the cloud muse to wake up.

Generate and insert:

  • Chinese character names
  • English names
  • Two-character or three-character Chinese names
  • Ancient-style or modern-style place names

Click a generated name to insert it into your draft.

๐Ÿ•ฐ Time Machine backups

For when chapter 7 takes a wrong turn into a swamp.

  • Automatically creates a backup snapshot every ~100 new non-space characters.
  • Stores backups in a ๅค‡ไปฝ folder next to your chapter file.
  • View added/removed lines between a snapshot and the current draft.
  • Restore a snapshot; the current draft is backed up first before restoration.

๐Ÿ“Š Compact live stats

A small right-side dashboard tracks the essentials:

  • Session words / typing speed
  • Writing time / idle time
  • Total characters / non-space characters
  • Chapter count / total novel word count across the current folder

๐Ÿ“ค Export documents

  • Click the file-down icon in the workbench's upper-right toolbar to export the current chapter as Word (.docx) or UTF-8 TXT (.txt).
  • When the chapter list contains multiple Markdown files, the menu also offers a combined export in the chapter list's sort order.
  • Before saving, choose a vault folder and filename. On desktop, click ๆต่งˆๅนถไฟๅญ˜โ€ฆ to choose a location in the system save dialog, or edit the full path directly. The default is a ๅฏผๅ‡บ folder next to the chapter, with a numbered filename if a previous export exists.
  • Exports include the latest text in the active editor and never overwrite an existing file.
  • After export, a dialog shows the full file path, lets you copy it, and can reveal the file in its folder on desktop. On older Obsidian versions without full-path support, it shows the path within the vault.
  • Basic Markdown headings, links, emphasis, lists, and quotes become readable document text. The Word file keeps heading formatting. Other Markdown syntax may remain as text.

๐Ÿ“ฆ Installation

Manual installation

  1. Download or build the plugin files.

  2. Copy these files into your Obsidian vault plugin folder:

    <your-vault>/.obsidian/plugins/watermelon-workbench/
    โ”œโ”€โ”€ main.js
    โ”œโ”€โ”€ manifest.json
    โ””โ”€โ”€ styles.css
    
  3. Restart Obsidian or reload plugins.

  4. Enable Watermelon Workbench in Settings โ†’ Community plugins.

Build from source

npm install
npm run build

For development watch mode:

npm run dev

Type-check only:

npm run typecheck

๐Ÿš€ Usage

After enabling the plugin, use one of these entry points:

  • Ribbon icon: Open Watermelon Workbench
  • Command palette:
    • Open writing workbench
    • Open current file in writing workbench
    • Exit writing workbench

Inside the workbench:

  • Left panel: chapter list
  • Center: focused editor
  • Right panel: plugin box + live stats
  • Esc or the toolbar exit button returns to normal Obsidian editing
  • Upper-right file-down icon: export the current chapter or all chapters as Word/TXT

๐Ÿงƒ Philosophy

Watermelon Workbench tries to be a writing table, not a writing prison.

Your novel remains Markdown. Your backups are Markdown. Your random names are local. The plugin is there to make drafting feel smoother, not to trap your manuscript in a mysterious proprietary watermelon crate.

๐Ÿ—‚ Project structure

src/
โ”œโ”€โ”€ main.ts                         # Obsidian plugin lifecycle and commands
โ”œโ”€โ”€ settings.ts                     # Settings schema and settings tab
โ”œโ”€โ”€ services/
โ”‚   โ”œโ”€โ”€ RandomNameService.ts        # Local name/place generation
โ”‚   โ”œโ”€โ”€ StatsService.ts             # Writing statistics
โ”‚   โ”œโ”€โ”€ TimeMachineService.ts       # Snapshot, diff, restore helpers
โ”‚   โ””โ”€โ”€ ExportService.ts            # Word/TXT generation
โ”œโ”€โ”€ utils/
โ”‚   โ””โ”€โ”€ formatting.ts               # Toolbar text transforms
โ””โ”€โ”€ views/
    โ””โ”€โ”€ WorkbenchView.ts            # Main workbench UI

๐Ÿ›ฃ Roadmap ideas

  • Better theme presets for different writing moods
  • Search inside chapter scope
  • More local name packs and worldbuilding generators
  • Export/release packaging automation
  • Optional per-project writing goals

๐Ÿค Contributing

Issues, ideas, and pull requests are welcome.

If you find a bug, it helps to include:

  • Obsidian version
  • Plugin version
  • Operating system
  • A short reproduction step list
  • Whether it happens in a fresh vault

๐Ÿ“„ License

MIT License. See LICENSE.


Made for people who open a blank chapter, stare at it for 20 minutes, then suddenly write 3,000 words because the fake character name finally sounded right. ๐Ÿ‰

For plugin developers

Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.