输入设置
input:定义输入选项,包括文件和目录选择。input: # 选项 - name: 项目文件 type: file description: 选择项目文件 mode: "r"type:可选值包括file(文件)、folder(文件夹)、tag(标签)、search(搜索)。mode:文件可读模式,可选r(只读)、w(写入)。
快捷键
shortcuts:定义快捷键。shortcuts: - key: Ctrl+T action: new-tab - key: Ctrl+I action: searchkey:快捷键组合。action:对应的操作。
Markdown扩展
markdown:配置Markdown的扩展功能。markdown: # 选项 - enabled: true syntax: true highlight: trueenabled:是否启用Markdown扩展。syntax:是否启用语法高亮。highlight:是否在输入时自动加粗或斜体。
自定义主题
theme:配置自定义主题,需在themes目录下创建对应的 CSS 文件。theme: name: 我的主题 location: themes/我的主题.css
云同步(如果Stash支持云同步)
cloud:
enabled: true
provider: dropbox
app_key: YOUR_APP_KEY
app_secret: YOUR_APP_SECRET
其他插件配置
假设Stash支持插件,可以在配置文件中添加插件配置:
plugins:
- id: my-plugin
enabled: true
config:
option1: value1
常用配置项
saveInterval:设置自动保存的时间间隔,单位为秒。saveInterval: 300
defaultFrontmostMargin:设置新页面的前边距。defaultFrontmostMargin: 50
快捷键示例
shortcuts:
- key: Ctrl+N
action: new-page
- key: Ctrl+O
action: open-file
- key: Ctrl+Shift+A
action: add
Markdown配置
markdown: enabled: true syntax: true highlight: true headingLevel: 2 orderedList: true unorderedList: true link: smart image: smart footnotes: true inlineMath: true math: true
调试和排除错误
- 检查
stash.yml是否存在语法错误。 - 查看Stash的日志文件,通常位于用户目录下的
.stash/log/目录。
通过上述配置示例,你可以根据需求自定义Stash的行为和界面,使其更符合你的工作习惯。









