Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
[Template for .leptonrc] This is a template for Lepton's configuration file. Please place it on your home directory. #lepton
{
"theme": "light",
"snippet": {
"expanded": true,
"newSnippetPrivate": false,
"sorting": "updated_at",
"sortingReverse": true
},
"editor" : {
"tabSize": 4
},
"userPanel": {
"hideProfilePhoto": false
},
"logger": {
"level": "debug"
},
"proxy": {
"enable": false,
"address": "socks://localhost:1080"
},
"enterprise": {
"enable": false,
"host": "github_enterprise_host",
"token": "token_with_gist_enabled",
"avatarUrl": "optional_avatar_url"
}
}
@hackjutsu

This comment has been minimized.

Copy link
Owner Author

commented Dec 28, 2017

FIELDS SUB-FIELDS OPTIONS (first option is default)
theme light | dark select light or dark theme
snippet expanded true | false expansion for snippets
newSnippetPrivate false | true privacy for new snippets
sorting updated_at | created_at | description snippets order
sortingReverse true | false reverse the order above
editor tabSize number the tab size (numer of spaces)
userPanel hideProfilePhoto false | true hide the profile photo
logger level info | debug logging level
proxy enable false | true enable proxy
address proxy address your proxy address
enterprise enable false | true enable GitHub Enterprise
host host address github enterprise host address
token token token with "gist" enabled
avatarUrl url to an avatar image (optional) url for an avartar
@hackjutsu

This comment has been minimized.

Copy link
Owner Author

commented Mar 11, 2018

Home directory on Windows

The home directory varies on different Windows distributions, but most of the time you can begin with the following path.

C:\Users\<CurrentUserName>\.leptonrc

Home directory for Linux snap package

Experiment shows that app.getPath('home') used by Lepton to find .leptonrc doesn't point to ~ directory, it points to

~/snap/lepton/current
@baybatu

This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.