-
Notifications
You must be signed in to change notification settings - Fork 471
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'
Shortcut: Shift + Space
. Limited by GitHub API, Lepton supports searching for the following fields.
- filename
- description
- tag
- gist id
Use the following pattern to specify the titles and tags for your snippets.
[title] description #tag1 #tag2
.leptonrc
is a centralized configuration file for Lepton and is parsed at the app startup. The file is not auto-generated. Users need to create .leptonrc
if they want to configure Lepton. You can find the exact path by checking the About page (Cmd + ,
).
Internally, Lepton finds .leptonrc
by calling getPath('home')
which usually points to the home directory.
const app = require('electron').app
const configFilePath = app.getPath('home') + '/.leptonrc'
https://github.com/hackjutsu/Lepton/blob/master/main.js#L298
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.
Create a GitHub token with gist
enabled. Put the token and other configs in the enterprise
section in the .leptonrc
config file.
gist
.
Lepton is a pure desktop client of GitHub Gist without its own service. All data are either saved locally or in the GitHub Gist service.
We DON'T accept donations 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.