ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Henning Hraban Ramm via ntg-context <ntg-context@ntg.nl>
To: Pablo Rodriguez via ntg-context <ntg-context@ntg.nl>
Cc: Henning Hraban Ramm <texml@fiee.net>
Subject: Re: searching in the source browser
Date: Mon, 5 Sep 2022 22:46:12 +0200	[thread overview]
Message-ID: <c5893bc4-d8ce-9d4d-8ed0-d1f731c622cf@fiee.net> (raw)
In-Reply-To: <3bcd54d8-9d6e-74b2-e3ad-693130ad43e3@gmx.es>

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
___________________________________________________________________________________

  parent reply	other threads:[~2022-09-05 20:46 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-05 18:28 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 [this message]
2022-09-05 21:53     ` Max Chernoff via ntg-context
2022-09-06  6:41 ` Taco Hoekwater via ntg-context

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c5893bc4-d8ce-9d4d-8ed0-d1f731c622cf@fiee.net \
    --to=ntg-context@ntg.nl \
    --cc=texml@fiee.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).