[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: evince and textedit
From: |
Reinhold Kainhofer |
Subject: |
Re: evince and textedit |
Date: |
Tue, 26 Jan 2010 17:35:55 +0100 |
User-agent: |
KMail/1.12.4 (Linux/2.6.31-18-generic; KDE/4.3.4; i686; ; ) |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Am Dienstag, 26. Januar 2010 17:16:04 schrieb Federico Bruni:
> Hi,
>
> I'm trying to adapt the configuration explained here:
> http://lists.gnu.org/archive/html/lilypond-user/2007-06/msg00185.html
>
> I'd like to set Frescobaldi as editor, so I've changed the line in the
> script as follows (I've copied from the preferences of Okular, where
> this works):
> frescobaldi --smart --line %l --column %c
>
> but it launches Frescobaldi with an empty file.
Of course. You are not passing on the file name to frescobaldi (%l is the line
number, %c is the column in okular, but where is the file name???)
> If I use this line instead:
> frescobaldi ${LINENUM}:${STARTPOS} ${FILENAME}
Here you are calling e.g.
frescobaldi 5:3 myfile.ly
of course, frescobaldy understands both arguments as file names, thus the
first file named "5:3" can't be found or opened...
You really need to add the --line and --column and pass ${LINENUM} as argument
of --line and ${STARTPOS} as argument of --column...
> it launches Frescobaldi, opens the right file (but it does not point
> to a specific note (just the beginning of the file)
> plus a strange second file which can't be read and looks empty.
>
> If I try this, Frescobaldi opens and crashes:
> frescobaldi --smart --line %l --column %c +${LINENUM}:${STARTPOS}
> ${FILENAME}
The %l is defined only by okular as the shortcut where the line number is
inserted. evince seems to have different shortcuts, so you tell evince to go
the line numbered "%l", which doesn't make sense...
I suppose you rather mean:
frescobaldi --smart --line ${LINENUM} --column %c ${STARTPOS} ${FILENAME}
Cheers,
Reinhold
- --
- ------------------------------------------------------------------
Reinhold Kainhofer, address@hidden, http://reinhold.kainhofer.com/
* Financial & Actuarial Math., Vienna Univ. of Technology, Austria
* http://www.fam.tuwien.ac.at/, DVR: 0005886
* LilyPond, Music typesetting, http://www.lilypond.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iD8DBQFLXxnrTqjEwhXvPN0RArWlAJ0WZ/We0EmI1IeCvjBtwFYd3ciV4wCgylRo
YyZ8Gp6P5lNrnyYcLvffeN0=
=9wbu
-----END PGP SIGNATURE-----