Skip to content

Instantly share code, notes, and snippets.

@imbyc
Last active March 22, 2023 01:32
Show Gist options
  • Save imbyc/4a1eaa661ca6538d6b2111712d530c40 to your computer and use it in GitHub Desktop.
Save imbyc/4a1eaa661ca6538d6b2111712d530c40 to your computer and use it in GitHub Desktop.
[Lepton 配置文件] 自用Lepton 配置文件备份 Lepton v1.9.1 v1.10.0
{
"theme": "light",
"snippet": {
"expanded": true,
"newSnippetPrivate": false,
"sorting": "updated_at",
"sortingReverse": true
},
"editor" : {
"tabSize": 4,
"validateFilename": true
},
"userPanel": {
"hideProfilePhoto": false
},
"logger": {
"level": "info"
},
"proxy": {
"enable": true,
"address": "socks://127.0.0.1:7890"
},
"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"
}
}

https://github.com/hackjutsu/Lepton

配置文件位置:

windows : %HOMEPATH%/.leptonrc

linux/mac : ~/.leptonrc

在 v1.9.0 版本之后 , .leptonrc 文件路径可以在 "关于" 找到,快捷键 Command/Ctrl +

配置项文档: https://github.com/hackjutsu/Lepton/wiki/Configuration

FIELD SUB-FIELD OPTIONS (first option is default) DESCRIPTION
theme light | dark 主题
autoUpdate false | true 自动下载更新 (excludes macOS)
snippet expanded true | false 代码片段展开
newSnippetPrivate false | true 新代码片段设置为私有
sorting updated_at | created_at | description 片段排序方式
sortingReverse true | false 倒序排列
editor tabSize number 1tab等于几个空格
validateFilename true | false 检查文件名是否安全
userPanel hideProfilePhoto false | true 隐藏个人资料照片
logger level info | debug 日志等级
proxy enable false | true 是否启用代理
address proxy address 代理地址
notifications success true | false 成功时显示通知
failure true | false 失败时显示通知
shortcuts keyShortcutForSearch Shift+Space | other shortcuts 搜索快捷键
keyNewGist Command/Control+N | other shortcuts 新gist快捷键
keyEditGist Command/Control+E | other shortcuts 编辑gist快捷键
keySubmitGist Command/Control+S | other shortcuts 提交(保存)快捷键
keyEditorExit Command/Control+Escape | other shortcuts shortcut for existing editor
keyImmersiveMode Command/Control+I | other shortcuts 沉浸模式快捷键
keyAboutPage Command/Control+, | other shortcuts “关于”快捷键
keyDashboard Command/Control+D | other shortcuts 仪表盘快捷键
keySyncGists Command/Control+R | other shortcuts 同步快捷键
enterprise enable false | true 启用企业版GitHub
host host address 企业版GitHub地址
token token token with "gist" scope enabled
avatarUrl URL to an avatar image (optional) URL for an avatar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment