Skip to content

gorlix/sn_make_space

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

✍️ Make Space

Insert blank writing space anywhere on a Supernote page — just tap a line and slide everything below it up or down.

Ever filled a page by hand and then needed one more line in the middle? On paper you're stuck. On a Supernote, Make Space gives you room: tap where you need space, and everything underneath slides down (or back up) so you can keep writing.

Inspired by OneNote's “Insert extra writing space”, built as a native Supernote plugin.


🎥 Demo

Make Space demo

Prefer full quality? Watch the MP4.


✨ What it does

You're writing notes. Two lines are too close together and you need to squeeze something in between. Instead of erasing and rewriting:

  1. Open Make Space from the toolbar.
  2. A light grey frame appears around the screen — that's your cue.
  3. Tap the spot where you want room.
  4. Everything below that point gets selected — now drag it up or down: down to open space, up to close a gap.

That's it. The move is the Supernote's own selection drag, so undo works normally.

┌─────────────────────────────┐
│  line written above         │
│                             │
│ ─ ─ ─ ─ tap here ─ ─ ─ ─ ─  │  ← tap
│   ↕ drag up or down          │
│     (add / remove space)     │
│  line written below         │
└─────────────────────────────┘

📲 Install on your Supernote

First, get the plugin file. It is not in this repository — the build/ folder is git-ignored, so the .snplg is never committed. You have two options:

Then install it:

  1. Copy the file to your device:
    adb push sn_make_space.snplg /storage/emulated/0/MyStyle/
    (or just copy it into the MyStyle folder over USB)
  2. On the Supernote: Settings → Apps → Plugins → Install and pick sn_make_space.
  3. Open a note, tap Make Space in the toolbar, and go.

Works in the NOTE app.


🛠 Build from source

Requirements: Node 18+, and zip + jq (preinstalled on most systems).

npm ci             # install dependencies
bash ./buildPlugin.sh   # → build/outputs/sn_make_space.snplg

The script bundles the JavaScript and packages it into a .snplg. No Android Studio needed — this plugin is pure JS.


🧑‍💻 Development

Built with React Native 0.79.2 + the sn-plugin-lib Supernote SDK.

npm run typecheck   # TypeScript
npm run lint        # ESLint
npm run format      # Prettier check
npm test            # Jest
  • Pre-commit runs lint + format + typecheck; pre-push runs the tests (via Husky).
  • CI runs the full gate on every PR; releases are published automatically when you push a v* tag.
  • Bilingual UI out of the box: English 🇬🇧 + Italian 🇮🇹.

Project layout

Path What's inside
index.js Plugin entry — registers the toolbar button
App.tsx The overlay: grey frame, tap handling, lasso + close
src/makeSpace.ts Pure tap-to-rectangle math (unit-tested)
src/sdk.ts Typed wrapper over sn-plugin-lib
src/i18n/ Localization (en + it)
__tests__/ Jest tests

🧭 How it works under the hood

The Supernote SDK has no “move selection” command, so Make Space leans on what the device already does well: it turns your tap into a native lasso of everything below the line, then hands control back so you drag it yourself. Simple, reliable, and undoable.

The full one-gesture auto-move (drag once, everything shifts automatically) is the next milestone — see the roadmap.


🗺 Roadmap

Tracked as GitHub issues:

Browse the open issues to see what's planned.


🙏 Built with

React Native · sn-plugin-lib · Supernote docs

About

Insert blank writing space anywhere on a Supernote page. Just tap a line and slide everything below it up or down.

Topics

Resources

Stars

Watchers

Forks

Contributors