Skip to content

A simple note-taking app with integrated file editor, built with Electron and Monaco Editor

License

Notifications You must be signed in to change notification settings

kaishuu0123/leavepad

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

108 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Leavepad

GitHub Release

Leavepad is a multi-platform notepad focused on writing memos with an integrated file editor powered by Monaco Editor.

Motivation

  1. I wanted to make a simple note that could close the editor without saving like notepad++
  2. However, notepad++ is only supported on windows (except using Wine)
  3. I wanted a memo application that could be unified to the same usability on multiple platforms.

Therefore, I decided to create a memo application by Electron for my own use.

Update (v1.5.0+): File editing is now supported with an integrated Monaco Editor-based file editor window!

Features

πŸ“ Note Taking

  • Quick note creation with Ctrl+N
  • Full-featured Monaco Editor with syntax highlighting
  • Search notes by name or content
  • Tab-based interface with drag & drop reordering
  • Auto-save (close without saving)
  • Multiple font options (HackGen, NOTONOTO, Geist)

πŸ“ File Editor

  • Open and edit external text files
  • Syntax highlighting for 50+ programming languages
  • Multiple file tabs with drag & drop support
  • Drag & drop files from file explorer
  • Auto-detect file encoding
  • Unsaved changes detection
  • Keyboard shortcuts: Ctrl+O (Open), Ctrl+S (Save), Ctrl+Shift+S (Save As)

🎨 Customization

  • Dark/Light theme
  • Language support: English, ζ—₯本θͺž
  • Font selection
  • Sort options (created/updated date)
  • Collapsible sidebar

Download

Support platform

  • Windows
  • Linux
  • macOS

Screenshots

Welcome

Welcome

Editor

Note Editor File Editor

Note Editor

File Editor

Language

English ζ—₯本θͺž (Japanese)

English

Japanese

Theme

Light Dark

Light Theme

Dark Theme

Keyboard Shortcuts

Main Window (Notes)

  • Ctrl+N - Create new note
  • Ctrl+W - Close current tab

File Editor Window

  • Ctrl+N - New file
  • Ctrl+O - Open file
  • Ctrl+S - Save file
  • Ctrl+Shift+S - Save As
  • Ctrl+W - Close current tab

Saved data location (Path)

Notes are stored in electron's app.getPath("userData")

  • Windows
    • C:\Users\<username>\AppData\Roaming\leavepad
    • shortcut: %APPDATA%\leavepad
  • macOS
    • ~/Library/Application Support/leavepad
  • Linux
    • ~/.config/leavepad/

Files:

  • notes.json - Note data
  • settings.json - User settings
  • app-state.json - Application state

Development

Recommended IDE Setup

Project Setup

Install

$ yarn

Development

$ yarn dev

Build

# For windows
$ yarn build:win

# For macOS
$ yarn build:mac

# For Linux
$ yarn build:linux

Technology Stack

  • Framework: Electron
  • UI: React + TypeScript
  • Editor: Monaco Editor
  • State Management: Jotai
  • Styling: Tailwind CSS + shadcn/ui
  • Database: lowdb
  • Build: electron-vite

LICENSE

MIT

FONT LICENSE

"Geist Mono" is licensed under the SIL Open Font License 1.1
Copyright (c) 2023 Vercel, in collaboration with basement.studio
by https://github.com/vercel/geist-font

"Geist Sans" is licensed under the SIL Open Font License 1.1
Copyright (c) 2023 Vercel, in collaboration with basement.studio
by https://github.com/vercel/geist-font

"白源", "HackGen" is licensed under the SIL Open Font License 1.1
Copyright (c) 2019, Yuko OTAWARA. with Reserved Font Name "白源", "HackGen"
by https://github.com/yuru7/HackGen/

"NOTONOTO" is licensed under the SIL Open Font License 1.1
Copyright (c) 2024 Yuko Otawara, with Reserved Font Name "NOTONOTO"
by https://github.com/yuru7/NOTONOTO/

"Noto Color Emoji" is licensed under the SIL Open Font License 1.1
Copyright 2021 Google Inc. All Rights Reserved.
by https://fonts.google.com/noto/specimen/Noto+Color+Emoji/

"Noto Sans Japanese" is licensed under the SIL Open Font License 1.1
Copyright 2014-2021 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'
by https://fonts.google.com/noto/specimen/Noto+Sans+JP

Made by kaishuu0123 ✨

About

A simple note-taking app with integrated file editor, built with Electron and Monaco Editor

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors