Skip to content
CosmoX edited this page Oct 1, 2019 · 18 revisions

My snippet's language is classified as "Other"

Lepton depends on GitHub API to detect the language. If it fails, the snippet'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

Shortcut: Shift + Space. Limited by GitHub API, Lepton supports searching for following fields.

  • filename
  • description
  • tag
  • gist id

Title and Tags

Use the following pattern to specify the titles and tags for your snippets.

[title] description #tag1 #tag2

What's .leptonrc and where to place it?

Proxy

Place your proxy configurations in ~/.leptonrc. Update the "address" field to your own proxy.

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

Check out the .leptonrc template to explore more configuration options.

Enable GitHub Enterprise

Create a GitHub token with gist enabled. Put the token along with other configs in the enterprise section in .leptonrc config file.

https://gist.github.com/hackjutsu/1ad7e4968eb64d881ec9dedd6c0f400b#file-leptonrc-L22-L27

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.

Clone this wiki locally