lilypond-invoke-editor made using Rust.
This software is designed to replace the lilypond-invoke-editor in Windows 10.
- Build the code yourself with
cargo build --release
. Or get a prebuilt binary in releases.- Put it in
C:\
. You will need administrator permissions.
- Put it in
- In order to use this, first open
Registry Editor
(regedit
), navigate toComputer\HKEY_CLASSES_ROOT\textedit\shell\open\command
. You should see key named(Default)
. It's type should beREG_SZ
.- Set the data to
C:\rust-lilypond-invoke-editor.exe "%1"
. - Create a new
String Value
inComputer\HKEY_CLASSES_ROOT\textedit
, name itURL Protocol
.
- Set the data to
- To configure your text editor, edit your user environment variables.
- Create a new variable called
LYEDITOR
if you don't already have one. - Set the value to
code -g %(file)s:%(line)s:%(column)s
if you use vscode.
- Create a new variable called
- To configure SumatraPDF, edit
C:\Program Files\SumatraPDF\sumatrapdfrestrict.ini
. Find the line forLinkProtocols
.- Append
,textedit
to that line. In my case, the line becomes:
LinkProtocols = http,https,mailto,textedit
- Append