mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 22:09:52 +08:00

1. External editor format: name=program %0,<shortcut> 2. Add "OpenViaDefaultProgram" shortcut to call system's default program to open current note. "F12" by default.
851 B
851 B
外部程序
VNote支持使用外部程序来打开笔记。VNote将外部程序的配置信息保存在用户配置文件vnote.ini
的[external_editors]
小节中。
一个配置可能如下:
[external_editors]
; Define external editors which could be called to edit notes
; One program per line with the format name="program \"%0\" arg1 arg2",<shortcut>
; in which %0 will be replaced with the note file path (so it is better to enclose it
; with double quotes)
; Shortcut could be empty
; Need to escape \ and ", use double quotes to quote paths/arguments with spaces
; SHOULD defined in user config file, not here
GVim=C:\\\"Program Files (x86)\"\\Vim\\vim80\\gvim.exe \"%0\", F4
Notepad=notepad \"%0\"
Notepad%2B%2B=C:\\\"Program Files (x86)\"\\notepad++\\notepad++.exe \"%0\"
VNote需要重启以检测新的外部程序。