* searching in the source browser
@ 2022-09-05 18:28 Henning Hraban Ramm via ntg-context
2022-09-05 18:59 ` Wolfgang Schuster via ntg-context
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: Henning Hraban Ramm via ntg-context @ 2022-09-05 18:28 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Henning Hraban Ramm
Hi, this is probably for Taco:
Is there a possibility in the source browser to search for macros
(\something) or anything containing dots (logs.errors)?
Because neither “simple” nor with Lua patterns I get any results.
E.g. I wanted to look for all trackers and/or directives.
Hraban
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage : https://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: searching in the source browser
2022-09-05 18:28 searching in the source browser Henning Hraban Ramm via ntg-context
@ 2022-09-05 18:59 ` Wolfgang Schuster via ntg-context
2022-09-05 20:50 ` Henning Hraban Ramm via ntg-context
2022-09-05 19:07 ` Pablo Rodriguez via ntg-context
2022-09-06 6:41 ` Taco Hoekwater via ntg-context
2 siblings, 1 reply; 8+ messages in thread
From: Wolfgang Schuster via ntg-context @ 2022-09-05 18:59 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Wolfgang Schuster
Henning Hraban Ramm via ntg-context schrieb am 05.09.2022 um 20:28:
> Hi, this is probably for Taco:
>
> Is there a possibility in the source browser to search for macros
> (\something) or anything containing dots (logs.errors)?
> Because neither “simple” nor with Lua patterns I get any results.
>
> E.g. I wanted to look for all trackers and/or directives.
To get a list of trackers and directives you can use
\showtrackers
\showdirectives
in a document (the list appear in the log file and terminal) or you use
the following two modules:
context --global m-trackers.mkiv
context --global m-directives.mkiv
Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage : https://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: searching in the source browser
2022-09-05 18:59 ` Wolfgang Schuster via ntg-context
@ 2022-09-05 20:50 ` Henning Hraban Ramm via ntg-context
0 siblings, 0 replies; 8+ messages in thread
From: Henning Hraban Ramm via ntg-context @ 2022-09-05 20:50 UTC (permalink / raw)
To: Wolfgang Schuster via ntg-context; +Cc: Henning Hraban Ramm
Am 05.09.22 um 20:59 schrieb Wolfgang Schuster via ntg-context:
> Henning Hraban Ramm via ntg-context schrieb am 05.09.2022 um 20:28:
>> Hi, this is probably for Taco:
>>
>> Is there a possibility in the source browser to search for macros
>> (\something) or anything containing dots (logs.errors)?
>> Because neither “simple” nor with Lua patterns I get any results.
>>
>> E.g. I wanted to look for all trackers and/or directives.
>
> To get a list of trackers and directives you can use
>
> \showtrackers
> \showdirectives
>
> in a document (the list appear in the log file and terminal) or you use
> the following two modules:
>
> context --global m-trackers.mkiv
> context --global m-directives.mkiv
Thank you!
While this was just an example for a search, I will include these in my
book and somewhere on the wiki.
I’m not looking forward to trying all of these options to find out what
they do (and document it, of course).
Hraban
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage : https://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: searching in the source browser
2022-09-05 18:28 searching in the source browser Henning Hraban Ramm via ntg-context
2022-09-05 18:59 ` Wolfgang Schuster via ntg-context
@ 2022-09-05 19:07 ` Pablo Rodriguez via ntg-context
2022-09-05 19:34 ` Hans Hagen via ntg-context
2022-09-05 20:46 ` Henning Hraban Ramm via ntg-context
2022-09-06 6:41 ` Taco Hoekwater via ntg-context
2 siblings, 2 replies; 8+ messages in thread
From: Pablo Rodriguez via ntg-context @ 2022-09-05 19:07 UTC (permalink / raw)
To: Henning Hraban Ramm via ntg-context; +Cc: Pablo Rodriguez
On 9/5/22 20:28, Henning Hraban Ramm via ntg-context wrote:
> Hi, this is probably for Taco:
>
> Is there a possibility in the source browser to search for macros
> (\something) or anything containing dots (logs.errors)?
> Because neither “simple” nor with Lua patterns I get any results.
>
> E.g. I wanted to look for all trackers and/or directives.
Hi Hraban,
has it to be the source browser?
I mean, I use grep in Linux (MSYS2 in Windows [and brew.sh is available
for macOS]) and it works perfectly fine with ConTeXt.
$ grep -irl fi[eë][eë] context
context/tex/texmf-context/tex/context/base/mkiv/char-def.lua
context/tex/texmf-modules/tex/context/third/lilypond/t-lilypond.tex
Althought regular expressions are fine, I don’t know why "fi[eë]+"
doesn’t work in this case.
Just in case it might help,
Pablo
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage : https://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: searching in the source browser
2022-09-05 19:07 ` Pablo Rodriguez via ntg-context
@ 2022-09-05 19:34 ` Hans Hagen via ntg-context
2022-09-05 20:46 ` Henning Hraban Ramm via ntg-context
1 sibling, 0 replies; 8+ messages in thread
From: Hans Hagen via ntg-context @ 2022-09-05 19:34 UTC (permalink / raw)
To: ntg-context; +Cc: Hans Hagen
On 9/5/2022 9:07 PM, Pablo Rodriguez via ntg-context wrote:
> On 9/5/22 20:28, Henning Hraban Ramm via ntg-context wrote:
>> Hi, this is probably for Taco:
>>
>> Is there a possibility in the source browser to search for macros
>> (\something) or anything containing dots (logs.errors)?
>> Because neither “simple” nor with Lua patterns I get any results.
>>
>> E.g. I wanted to look for all trackers and/or directives.
>
> Hi Hraban,
>
> has it to be the source browser?
>
> I mean, I use grep in Linux (MSYS2 in Windows [and brew.sh is available
> for macOS]) and it works perfectly fine with ConTeXt.
>
> $ grep -irl fi[eë][eë] context
> context/tex/texmf-context/tex/context/base/mkiv/char-def.lua
> context/tex/texmf-modules/tex/context/third/lilypond/t-lilypond.tex
>
> Althought regular expressions are fine, I don’t know why "fi[eë]+"
> doesn’t work in this case.
>
> Just in case it might help,
an oldie (the one i use):
mtxrun --script grep
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.nl | 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 / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage : https://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: searching in the source browser
2022-09-05 19:07 ` Pablo Rodriguez via ntg-context
2022-09-05 19:34 ` Hans Hagen via ntg-context
@ 2022-09-05 20:46 ` Henning Hraban Ramm via ntg-context
2022-09-05 21:53 ` Max Chernoff via ntg-context
1 sibling, 1 reply; 8+ messages in thread
From: Henning Hraban Ramm via ntg-context @ 2022-09-05 20:46 UTC (permalink / raw)
To: Pablo Rodriguez via ntg-context; +Cc: Henning Hraban Ramm
Am 05.09.22 um 21:07 schrieb Pablo Rodriguez via ntg-context:
> On 9/5/22 20:28, Henning Hraban Ramm via ntg-context wrote:
>> Hi, this is probably for Taco:
>>
>> Is there a possibility in the source browser to search for macros
>> (\something) or anything containing dots (logs.errors)?
>> Because neither “simple” nor with Lua patterns I get any results.
>>
>> E.g. I wanted to look for all trackers and/or directives.
>
> Hi Hraban,
>
> has it to be the source browser?
>
> I mean, I use grep in Linux (MSYS2 in Windows [and brew.sh is available
> for macOS]) and it works perfectly fine with ConTeXt.
>
> $ grep -irl fi[eë][eë] context
> context/tex/texmf-context/tex/context/base/mkiv/char-def.lua
> context/tex/texmf-modules/tex/context/third/lilypond/t-lilypond.tex
>
> Althought regular expressions are fine, I don’t know why "fi[eë]+"
> doesn’t work in this case.
>
> Just in case it might help,
Thank you – I found
grep -R "regex" ~/context
to be most easy.
But I like the source browser with its syntax highlighting, and it’s a
pity that the search is so limited.
Hraban
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage : https://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: searching in the source browser
2022-09-05 18:28 searching in the source browser Henning Hraban Ramm via ntg-context
2022-09-05 18:59 ` Wolfgang Schuster via ntg-context
2022-09-05 19:07 ` Pablo Rodriguez via ntg-context
@ 2022-09-06 6:41 ` Taco Hoekwater via ntg-context
2 siblings, 0 replies; 8+ messages in thread
From: Taco Hoekwater via ntg-context @ 2022-09-06 6:41 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Taco Hoekwater
> On 5 Sep 2022, at 20:28, Henning Hraban Ramm via ntg-context <ntg-context@ntg.nl> wrote:
>
> Hi, this is probably for Taco:
>
> Is there a possibility in the source browser to search for macros (\something) or anything containing dots (logs.errors)?
> Because neither “simple” nor with Lua patterns I get any results.
That is something we can look at next week.
The sourcebrowser is using an lpeg-based lua script to create its search index, meaning
it is not impossible to extend it. :)
Best wishes,
Taco
—
Taco Hoekwater E: taco@bittext.nl
genderfluid (all pronouns)
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage : https://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2022-09-06 6:41 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-05 18:28 searching in the source browser Henning Hraban Ramm via ntg-context
2022-09-05 18:59 ` Wolfgang Schuster via ntg-context
2022-09-05 20:50 ` Henning Hraban Ramm via ntg-context
2022-09-05 19:07 ` Pablo Rodriguez via ntg-context
2022-09-05 19:34 ` Hans Hagen via ntg-context
2022-09-05 20:46 ` Henning Hraban Ramm via ntg-context
2022-09-05 21:53 ` Max Chernoff via ntg-context
2022-09-06 6:41 ` Taco Hoekwater via ntg-context
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).