www.delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2015/08/04/11:55:38

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
X-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sbcglobal.net; s=s2048; t=1438703679; bh=ge1PrrmXJb/dhHueHXgmVRfiWMvRrhjkMOR+PZI0yxM=; h=Subject:From:In-Reply-To:Date:References:To:From:Subject; b=ofHHoqcguQM8MbgRNDNlPhd1PHHeifOsRc+SJHCULJUIL0ZNJ+HlTkb3XM1+Ti16ndq2rx7AHGkbZWTwg9o59Ze4jITHQmeiTSoplmMPTtOAm0jqjXEhwy/tE+PHBNG0w9Br8pMEpTj9sDpYkvWib7MBe/iN3IN+5lTjrXMmP/XpDf+Vvn2m/kuVHOEaPN+/SEiBjjRLVqtl5r1zZ0vedP6Z3vioeZxFRn5rW0GLBXWDFyLisBoZxakwauaUykfkD0DdvibUwv0sSQOf4ahjR8LDdz9+Gvp2mnV+fa8Im0n078odVdAjQYUkgQdgW2oZfHUdKy1KWSF3U62HNlLf0w==
X-Yahoo-Newman-Id: 790685 DOT 69008 DOT bm AT smtp217 DOT mail DOT gq1 DOT yahoo DOT com
X-Yahoo-Newman-Property: ymail-3
X-YMail-OSG: ZuUOQVQVM1kkkkR.BcSs2EZXQiAkraiHWnTqgwJRbns8LKH
X1cZl2IPpxI4FeTbb.nsqI7IljIZ0t8JI.RuTyslX4VQyCITB9GxzXWuKirF
iNvOwPJyePNfHj2Qk5.QYyzsAY2nvLlZboXCFCuIqE6Ri8hydljgegBammG9
27X7cIiITsOC7rUSh8qkgNnH1ZXyvWlOC.PZk2GTiuRdYQ3j173g9HUxS3TG
DVUkwwlRlVRN_2v4o1X2_xTxdwUlwsTDwNQub9yRSiGC1LoXDbDYuKyYI3jw
lOHy1nmAMnEPDNqNAHEBP51p7etaxjqkIrF3KbF8VA0FqRdth4EpuYWLioGf
ZJTJEsnCm4eGH2RQav2nhI8ItDO6hAkWWs5_zm6.DhD25tjdlQ7sHEddqpKL
_DZsoTT7xBkzLNgvlmCSq7qhFquh3wARABYvC6PI7Ylmp47ihqE7yzrM.lJK
Q4gFwFjCjASsY7k9Q0fakI5Uxo10.M_FgmPPykr04cYL5xuil5jaJoNoHtPH
jYwR8_.eDAFnTyDiTUL2.qfcz5.4AT9iXm9RfOLk0lao.mGtuTw--
X-Yahoo-SMTP: b8jVkbOswBAqZ4BhECp7nxPJUfTGEnEGv_G4qgQeZMeAbA--
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2102\))
Subject: Re: [geda-user] Find Text Mechanism
From: "Edward Hennessy (ehennes AT sbcglobal DOT net) [via geda-user AT delorie DOT com]" <geda-user AT delorie DOT com>
In-Reply-To: <mpor01$v3h$1@ger.gmane.org>
Date: Tue, 4 Aug 2015 08:54:37 -0700
Message-Id: <3043CCB2-68EE-4CC4-BDAD-C5DBB035070B@sbcglobal.net>
References: <818820A7-34E1-4EE3-B043-992FA380ED01 AT sbcglobal DOT net> <mpor01$v3h$1 AT ger DOT gmane DOT org>
To: "geda-user AT delorie DOT com" <geda-user AT delorie DOT com>
X-Mailer: Apple Mail (2.2102)
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id t74Fsh95005639
Reply-To: geda-user AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: geda-user AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> On Aug 3, 2015, at 3:46 PM, Kai-Martin Knaak <kmk AT familieknaak DOT de> wrote:
> 
> Edward Hennessy (ehennes AT sbcglobal DOT net) [via 
> geda-user AT delorie DOT com] wrote:
> 
>> I'd like to update the find text operation to support globs instead
>> of just a substring search.
>> 
>> Should the program support both globs and substring searches and
>> have an additional checkbox in the find text window?
> 
> Please support both.
> I'd also like to see an option to do full regular expression search. 
> Most of the time this is more hassle than globbing or simple substring 
> search. But there are a few cases where regexp can prove to be a 
> winner. 

I’ll add regex too. I’d like to add re2 as a dependency, which is an improved
regular expression library.

https://github.com/google/re2

>> I'd like to only support globs from the angle that we don't get to
>> many checkboxes in the UI. 
> 
> I'd rater have more checkboxes than be induced to find clever 
> workarounds to get the job done with the one-size-fits-all. 

What about providing two dialogs for searching? One pop-up dialog with all the checkboxes. The second dialog is docked, like the one in source control now, but with no checkboxes. But, the second one uses the same settings the user selected in the first dialog.

In other programs, I find myself using the same search settings, but dislike the floating dialog. The two dialogs might be the best of both, but would it be confusing for the new user?

Here are some potential settings:

Radio group:
- String Match
- Use Wildcards
- Use Regex

Check:
- Descend hierarchy
- Match case?
- Search invisible?

Are the ones with question marks useful? Would there be any other useful settings?

>> The drawback from only supporting globs,
>> the '*' and '?' can't be escaped.
> 
> Hmm. The bash globbing mechanism can escape "?" just fine. Example:
> 
> $ ls *\?*
> 4541?75.pdf
> $
> 
> And yes, you can also escape the backslash...

The limitation is in this API:

https://developer.gnome.org/glib/stable/glib-Glob-style-pattern-matching.html

Ed


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019