Skip to content

A simple notepad powered by LiteStore and Mithril.js

License

Notifications You must be signed in to change notification settings

h3rald/litepad.mithril

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LitePad

A simple ES6 notepad web app powered by Mithril.js and LiteStore.

Features

  • Create, edit, view, delete notes.
  • Markdown support.
  • Fulltext search.
  • Keyboard shortcuts.
  • Two-file setup (LiteStore executable and LiteStore database).
  • Run on localhost via LiteStore web server.

Getting Started

To start using LitePad, simply:

  1. Download the LiteStore executable file for your system and place it in a folder or in your $PATH.
  2. Do either of the following:

Browser Support

LitePad makes extensive use of ES2015 (ES6) features such as:

  • ES modules.
  • Classes.
  • Constant/local variable definition via const and let.
  • Arrow functions.
  • Template literals.

Because of this, LitePad is currently only supported by the following browsers:

  • Google Chrome 60 or higher (with the Experimental Web Platform features flag enabled).
  • Apple Safari 10.1 or higher.

Keyboard Shortcuts

Everywhere in the application

  • CTRL+h — Go back to the home page/reload the home page.
  • CTRL+f — Show search bar.

Home Page

  • CTRL+a — Add new note.
  • Arrow Up — Select the next note.
  • Arrow Down — Select the previous note.
  • Space — View selected note.

Search results

  • Arrow Up — Select the next note.
  • Arrow Down — Select the previous note.
  • Space — View selected note.

View Note

  • Arrow Left — Go back to home page/search results.
  • CTRL+e — Edit note.
  • CTRL+d — Display delete note modal dialog.
  • Esc — (when delete note modal dialog is displayed) cancel delete.
  • Enter — (when delete note modal dialog is displayed) confirm delete.

Edit Note/New Note

  • CTRL+s — Save current note and keep editing.
  • CTRL+o — Save current note and view it.

Credits

LitePad exists thanks to:

License

LitePad is licensed under the MIT License.