lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WSL - Visual Studio Code - point and click


From: damianlegassick
Subject: Re: WSL - Visual Studio Code - point and click
Date: Fri, 30 Oct 2020 15:11:05 -0000



On 30 October 2020 at 14:34, damianlegassick <damianlegassick@mac.com> wrote:

Hi

I've got WSL running fine with a Debian distro, Lilypond working fine, Visual Studio Code doing it's remote thing and Sumatra picking up all the changes in pdf back on the Windows side.

but no point and click.

I tried to hack Aaron Hill's answer from a couple of years ago

https://www.mail-archive.com/lilypond-user@gnu.org/msg129393.html

but no joy (it could be me of course)

Anyone out there got a method for Windows 10 64bit and current VSC/WSL2 etc?

thanks

Damian

This is how far I've got:

textedit.reg:
====
  Windows Registry Editor Version 5.00

  [HKEY_CURRENT_USER\Software\Classes\textedit]
  "URL Protocol"=""
  @="URL:textedit"

  [HKEY_CURRENT_USER\Software\Classes\textedit\shell]

  [HKEY_CURRENT_USER\Software\Classes\textedit\shell\open]

  [HKEY_CURRENT_USER\Software\Classes\textedit\shell\open\command]
  @="C:\\Tools\\textedit\\textedit.cmd %1"
====


textedit.cmd:
====
  @ECHO OFF
SETLOCAL
SET CODE=/mnt/c/Users/damia/AppData/Local/Programs/Microsoft\ VS\ Code/bin/code
SET URL="" -m %%(file)s`:%%(line)s:%%(column)s
SET ENV=/usr/bin/env -i LYEDITOR='%CODE% --open-url %URL%'
SET CMD=/usr/local/bin/lilypond-invoke-editor %*
C:\Windows\System32\wsl.exe %ENV% %CMD%
====
 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]