Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zuoez02/siyuan-plugin-keymap
siyuan-plugin-keymap
https://github.com/zuoez02/siyuan-plugin-keymap
Last synced: about 1 month ago
JSON representation
siyuan-plugin-keymap
- Host: GitHub
- URL: https://github.com/zuoez02/siyuan-plugin-keymap
- Owner: zuoez02
- License: mit
- Created: 2023-08-02T12:09:12.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-28T06:14:37.000Z (about 1 year ago)
- Last Synced: 2023-11-29T04:41:53.371Z (about 1 year ago)
- Language: JavaScript
- Size: 892 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 快捷键
1. 点击状态栏右下角的“快捷键”, 即可显示快捷键内容, 支持搜索
2. 自定义命令
3. 支持找到重复的快捷键,并点击高亮展示## Usage 使用方法
修改 `/data/storage/petal/siyuan-plugin-keymap/script.json` 文件,内容为脚本配置,例如:
```json
[{"langKey":"打开首页", "script":"window.open('siyuan://blocks/20230103184046-v2ierte')"}, {"langKey":"输出内容", "script":"console.log('hello world')"}]
```其中,langKey 为提示内容,可以在命令面板中找到对应的快捷键,在 思源 > 设置 > 快捷键 中找到提示内容手动切换快捷键;script 为你要运行的 javascript 脚本。添加完成后需要手动刷新思源即可进行加载。