/Lepton

💻 Cross-platform Snippet Manager based on Gist (Win/Mac/Linux)

Primary LanguageJavaScriptMIT LicenseMIT

Lepton

Build Status js-standard-style Dependency Status MIT Licensed

Lepton is a lean snippet manager based on GitHub Gist. Check out its latest release.

  • Group gists by languages
  • Create/Edit/Delete gists
  • Instant search
  • Custom tags
  • Markdown rendering
  • Cross-platform support
  • Immersive mode(Zen mode)
  • Proxy

Screenshot

Organize Markdown Rendering Immersive Mode (⌘/Ctrl + i)
Screenshot Screenshot Screenshot
Search (⇧ + Space) Custom Tags GitHub Login
Screenshot Screenshot Screenshot

Based on

Based on

  1. Framework: Electron
  2. Bundler: Webpack, Babel, electron-builder
  3. Language: ES2015, Sass
  4. Library: React, Redux, Redux Thunk, Redux Form
  5. Lint: ESLint

Installation

  • Download released binaries(macOS/Windows/Linux) here.
  • Install via Homebrew (macOS)
brew cask install lepton

Development

Install

Tested with Node.js 6/7/8

Clone the repository.

$ git clone git@github.com:hackjutsu/Lepton.git

Install the dependencies.

$ cd Lepton && npm i

Client ID/Secret

Register your application, and put your client id and client secret in ./configs/account.js.

module.exports = {
  client_id: <your_client_id>,
  client_secret: <your_client_secret>
}

Run

$ npm run build
$ npm run start

Build Installer App

Read electron-builder docs and check out the code signing wiki before building the installer app.

Build app for macOS.

$ npm run dist -- -m

Build app for Windows.

$ npm run dist -- -w

Build app for Linux.

$ npm run dist -- -l

Build app for macOS, Windows and Linux.

$ npm run dist -- -wml

Build app for the current OS with the current arch.

$ npm run dist

FAQ

My gist's language is classified as "Other"

Lepton depends on GitHub API to detect the language. If it fails, the gist's language is marked as "Other". However, we can put // vim: syntax=<your_language> at the top to explicitly specify the language.

// vim: syntax=javascript
let test = 'This is a javascript file'

Search

Limited by GitHub API, Lepton supports searching for following fields.

  • file name
  • description
  • tag

Title and Tags

[title] description #tag1 #tag2

Proxy (Optional)

Copy and paste the following snippet to ~/.leptonrc. Create the file if it does not exist, and don't forgot to change the address to your own.

{
  "proxy": {
    "enable": true,
    "address": "socks://localhost:1080"
  }
}

Feedback

Donation

We DON'T accept donation personally. If you like, feel free to donate to Wikimedia Foundation, which helps sustain free knowledge through Wikipedia and its sister projects for people around the world. You are welcome to create an issue to share how much you have contributed.

Contributors

hackjutsu wujysh DNLHC meilinz lcgforever Calinou
rogersachan passerbyid YYSU cixuuz

License

MIT © hackjutsu