-
Notifications
You must be signed in to change notification settings - Fork 474
Configuration
CosmoX edited this page Jun 14, 2020
·
9 revisions
Lepton can be configured via a .leptonrc
configuration file in your home directory. For Lepton after v1.9.0, the path of the .leptonrc
can be found at the About page by Command/Ctrl + ,
.
{
"theme": "light",
"autoUpdate": false,
"snippet": {
"expanded": true,
"newSnippetPrivate": false,
"sorting": "updated_at",
"sortingReverse": true
},
"editor" : {
"tabSize": 4,
"validateFilename": true
},
"userPanel": {
"hideProfilePhoto": false
},
"logger": {
"level": "debug"
},
"proxy": {
"enable": false,
"address": "socks://localhost:1080"
},
"notifications": {
"success": true,
"failure": true
},
"shortcuts": {
"keyShortcutForSearch": "CMD+F",
"keyNewGist": "CommandOrControl+N",
"keyEditGist": "CommandOrControl+E",
"keySubmitGist": "CommandOrControl+S",
"keyImmersiveMode": "CommandOrControl+I",
"keyAboutPage": "CommandOrControl+,",
"keyDashboard": "CommandOrControl+D",
"keyEditorExit": "CommandOrControl+Escape",
"keySyncGists": "CommandOrControl+R"
},
"enterprise": {
"enable": false,
"host": "github_enterprise_host",
"token": "token_with_gist_enabled",
"avatarUrl": "optional_avatar_url"
}
}
FIELD | SUB-FIELD | OPTIONS (first option is default) | DESCRIPTION |
---|---|---|---|
theme | light | dark | select light or dark theme | |
autoUpdate | false | true | auto-download updates (excludes macOS) | |
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 in number of spaces |
validateFilename | true | false | validate whether gist filename is safe | |
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 | |
notifications | success | true | false | show notifications for successful actions |
failure | true | false | show notifications for failed actions | |
shortcuts | keyShortcutForSearch | Shift+Space | other shortcuts | shortcut for search |
keyNewGist | Command/Control+N | other shortcuts | shortcut for new gists | |
keyEditGist | Command/Control+E | other shortcuts | shortcut for editting gists | |
keySubmitGist | Command/Control+S | other shortcuts | shortcut for submitting gists | |
keyEditorExit | Command/Control+Escape | other shortcuts | shortcut for existing editor | |
keyImmersiveMode | Command/Control+I | other shortcuts | shortcut for immersive mode | |
keyAboutPage | Command/Control+, | other shortcuts | shortcut for about page | |
keyDashboard | Command/Control+D | other shortcuts | shortcut for dashboard | |
keySyncGists | Command/Control+R | other shortcuts | shortcut for sycning | |
enterprise | enable | false | true | enable GitHub Enterprise |
host | host address | GitHub Enterprise host address | |
token | token | token with "gist" scope enabled | |
avatarUrl | URL to an avatar image | (optional) URL for an avatar |
Please head to https://github.com/hackjutsu/Lepton/issues for any issues or feature requests.
The home directory varies on different Windows distributions, but most of the time you can begin with the following path.
C:\Users\<CurrentUserName>\.leptonrc
Lepton uses app.getPath('home')
to find .leptonrc
, but it may point to ~/snap/lepton/current
instead of ~
.