Hi, There is a new feature in mtxrun: As I wanted to acccess the help on the wiki, I've added a feature to mtxrun that can be used in an editor: mtxrun --gethelp --url="http://www.contextgarden.net/Command/setuplist" Actually, one can also use this: mtxrun --gethelp --url="http://www.contextgarden.net/Command/%command%" --command="setuplist" So, in scite I do: mtxrun --gethelp --url="http://www.contextgarden.net/Command/%command%" --command="$(CurrentWord)" and hitting F1 takes the current word and runs this command. On windows it effective boils down to start "the url" I have no clue what happens on unix. Ps 1: Isn't it possible to also support /command on the wiki? It looks like the url resolver is case sensitive. Ps 2: one can also run mtxrun --script server --start --auto and then use mtxrun --gethelp --url="http://localhost:31415/mtx-server-ctx-help.lua?command=%command%" --command="$(CurrentWord)" but the garden provides more info. Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
On Thu, Aug 9, 2012 at 11:01 PM, Hans Hagen wrote:
Hi,
There is a new feature in mtxrun:
As I wanted to acccess the help on the wiki, I've added a feature to mtxrun that can be used in an editor:
mtxrun --gethelp --url="http://www.contextgarden.net/Command/setuplist"
sh: http://www.contextgarden.net/Command/setuplist: No such file or directory Mojca
On 10-8-2012 00:31, Mojca Miklavec wrote:
On Thu, Aug 9, 2012 at 11:01 PM, Hans Hagen wrote:
Hi,
There is a new feature in mtxrun:
As I wanted to acccess the help on the wiki, I've added a feature to mtxrun that can be used in an editor:
mtxrun --gethelp --url="http://www.contextgarden.net/Command/setuplist"
sh: http://www.contextgarden.net/Command/setuplist: No such file or directory
So what would be the right way? Is there some abstract shortcut to the preferred browser? Hans -- ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
On Fri, Aug 10, 2012 at 12:35 AM, Hans Hagen wrote:
On 10-8-2012 00:31, Mojca Miklavec wrote:
On Thu, Aug 9, 2012 at 11:01 PM, Hans Hagen wrote:
Hi,
There is a new feature in mtxrun:
As I wanted to acccess the help on the wiki, I've added a feature to mtxrun that can be used in an editor:
mtxrun --gethelp --url="http://www.contextgarden.net/Command/setuplist"
sh: http://www.contextgarden.net/Command/setuplist: No such file or directory
So what would be the right way? Is there some abstract shortcut to the preferred browser?
On Mac OS X it is
"open
On 10-8-2012 00:39, Mojca Miklavec wrote:
On Fri, Aug 10, 2012 at 12:35 AM, Hans Hagen wrote:
On 10-8-2012 00:31, Mojca Miklavec wrote:
On Thu, Aug 9, 2012 at 11:01 PM, Hans Hagen wrote:
Hi,
There is a new feature in mtxrun:
As I wanted to acccess the help on the wiki, I've added a feature to mtxrun that can be used in an editor:
mtxrun --gethelp --url="http://www.contextgarden.net/Command/setuplist"
sh: http://www.contextgarden.net/Command/setuplist: No such file or directory
So what would be the right way? Is there some abstract shortcut to the preferred browser?
On Mac OS X it is "open
" or "open -a <SomeApplicationInCaseYouDontWantDefault> ".
Ah, i remember, so we can adapt os.launch I'll send you a test Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
···
On 10-8-2012 00:31, Mojca Miklavec wrote:
On Thu, Aug 9, 2012 at 11:01 PM, Hans Hagen wrote:
Hi,
There is a new feature in mtxrun:
As I wanted to acccess the help on the wiki, I've added a feature to mtxrun that can be used in an editor:
mtxrun --gethelp --url="http://www.contextgarden.net/Command/setuplist"
sh: http://www.contextgarden.net/Command/setuplist: No such file or directory
So what would be the right way? Is there some abstract shortcut to the preferred browser?
Hi Hans, there’s the environment variable $BROWSER, as in: Lua 5.1.5 Copyright (C) 1994-2012 Lua.org, PUC-Rio > return os.getenv"BROWSER" /usr/bin/opera > So ``$BROWSER http://www.foo.bar`` launches the browser from a shell. Philipp
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
-- () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments
Hi, Le vendredi 10 août 2012, Hans Hagen a écrit :
On 10-8-2012 00:31, Mojca Miklavec wrote:
On Thu, Aug 9, 2012 at 11:01 PM, Hans Hagen wrote:
As I wanted to acccess the help on the wiki, I've added a feature to mtxrun that can be used in an editor:
mtxrun
--gethelp --url="http://www.contextgarden.net/Command/setuplist"
sh: http://www.contextgarden.net/Command/setuplist: No such file or directory
So what would be the right way? Is there some abstract shortcut to the preferred browser?
On unix shells, 'xdg-open' open any file or URL with the appropriate program.
All the best.
--
Romain Diss
···
Hi,
Le vendredi 10 août 2012, Hans Hagen a écrit :
On 10-8-2012 00:31, Mojca Miklavec wrote:
On Thu, Aug 9, 2012 at 11:01 PM, Hans Hagen wrote:
As I wanted to acccess the help on the wiki, I've added a feature to mtxrun that can be used in an editor:
mtxrun
--gethelp --url="http://www.contextgarden.net/Command/setuplist"
sh: http://www.contextgarden.net/Command/setuplist: No such file or directory
So what would be the right way? Is there some abstract shortcut to the preferred browser?
On unix shells, 'xdg-open' open any file or URL with the appropriate program.
No, I beg you, don’t use xdg-open. It does not respect the environment variables set by the user and is the reason why I have made /usr/bin/firefox into a script that calls my *real* browser. xdg-open is not a standard (yet) and will confuse people. Please, consult https://wiki.archlinux.org/index.php/Default_Applications#xdg-open, especially the section “how it should work”, before you make the choice. Thanks Philipp -- () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments
participants (4)
-
Hans Hagen
-
Mojca Miklavec
-
Philipp Gesang
-
Romain Diss