lilypond-user
[Top][All Lists]
Advanced

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

Re: Configuration Point & Click


From: David Wright
Subject: Re: Configuration Point & Click
Date: Sun, 3 Feb 2019 09:57:07 -0600
User-agent: NeoMutt/20170113 (1.7.2)

[Note that this posting might overtake another one I made yesterday.]

On Fri 01 Feb 2019 at 17:33:34 (-0700), foxfanfare wrote:
> foxfanfare wrote
> > And again, what is strange is that I have to launch zathura through vim if
> > I
> > want it to react to the link. If I launch the PDF alone in Zathura and
> > click
> > on the link, for instance
> > textedit:///home/remy/Documents/test/test.ly:5:4:5
> > goes directly to the browser. Maybe zathura isn't configured properly and
> > should add xdg-open before the link? 
> 
> OK for that part I just understood where the problem was. I used to launch
> the PDF directly from my file browser (currently ranger). The PDF shows
> correctly but the links redirect to the web browser. But if I just open a
> terminal and launch the PDF from there, the PDF opens at his side and then
> the link is redirected directly to vim in the previous terminal.

I'd be interested to know what configuration command you're using in
zathura to handle the clicks.

I have checked the way that lilypond-invoke-editor works here just by
typing it at the commandline. You might try the same sort of tests.

    $ EDITOR=gvim lilypond-invoke-editor textedit:///tmp/windmills.ly:362:9:10
    lilypond-invoke-editor (GNU LilyPond) 2.18.2
    E247: no registered server named "GVIM": Send failed. Trying to execute 
locally

gives me the file on a local GUI vim. I tried running a server called
VIM and get the same effect, so the name appears invariant.

    $ EDITOR=vim lilypond-invoke-editor textedit:///tmp/windmills.ly:362:9:10
    lilypond-invoke-editor (GNU LilyPond) 2.18.2

is similar except that the E247 gets lost, possibly because the
non-GUI vim clears the xterm in order to display itself there.

With a GUI or non-GUI server call GVIM running,
    $ EDITOR=gvim lilypond…
works as expected, but
    $ EDITOR=vim lilypond…
will run vim locally and ignore the server; that is, if the server is
not editing the file already. If the server does have that file open,
then you get a swap file error when it tries to start a local vim.

So I'm pretty confident that lilypond-invoke-editor is doing a good job.

I then tried using zathura as the PDF viewer with:

    $ EDITOR=gvim zathura windmills.pdf

having put   set synctex-editor-command "lilypond-invoke-editor %s"
into ~/.zathurarc.

Clicking a note seems to have no effect, left, right or centre,
± shift ± control. However, double clicking a note opens my browser,
searching unproductively for the textedit string.

> Still, I can't manage to skip all the warning like "Vim: Warning: Input is
> not from a terminal" and E325 which tend to make vim unusable. I don't have
> the feeling that the server mode solves this. I also tried with
> remote-silent but it is the same.

Where do those messages appear?

Do you get those warning/error messages when you click on a note even
if you have already done some (harmless) edit of the file already?

Cheers,
David.



reply via email to

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