Dear devs,
'Find in files' also finds <subject> in version control files and directories like '.svn/text-base', '.svn/entries', etc...
It would be very handy if Geany would have a 'Exclude version control files/dirs' checkbox in the 'Find in files' dialog (which even can be enabled by default)
I'm no grep expert, but --exclude .svn isn't sufficient to hide all .svn entries in the message window(?)
-H-
On Tue, Mar 4, 2008 at 3:15 PM, Harold Aling h.aling@home.nl wrote:
I'm no grep expert, but --exclude .svn isn't sufficient to hide all .svn entries in the message window(?)
I usually pipe the output to another grep (probably not the most-exact way to do it):
grep -r something * | grep -v .svn
On Tue, Mar 4, 2008 at 8:15 AM, Harold Aling h.aling@home.nl wrote:
I'm no grep expert, but --exclude .svn isn't sufficient to hide all .svn entries in the message window(?)
Shouldn't that be --exclude-dir=.svn ?
- Jeff
PS: Slightly off-topic, but an interesting project: http://searchmonkey.sourceforge.net/index.php/Main_Page
On Tue, 4 Mar 2008 14:55:03 -0600 "Jeff Pohlmeyer" yetanothergeek@gmail.com wrote:
On Tue, Mar 4, 2008 at 8:15 AM, Harold Aling h.aling@home.nl wrote:
I'm no grep expert, but --exclude .svn isn't sufficient to hide all .svn entries in the message window(?)
For SVN, I use: --exclude=*.svn-base
The --exclude option only matches filenames, not directories.
Shouldn't that be --exclude-dir=.svn ?
Yes, but AFAICT the stable version of Grep doesn't support this yet (development version does). See:
http://geany.uvena.de/manual/0.13/index.html#filtering-out-version-control-f...
PS: Slightly off-topic, but an interesting project: http://searchmonkey.sourceforge.net/index.php/Main_Page
I found a screenshot: http://sourceforge.net/project/screenshots.php?group_id=175143
Looks interesting.
Regards, Nick
a275e6d00803041255j1bc5d74ia6109b16a17f0bcf@mail.gmail.com 20080305122951.74b877ad.nick.treleaven@btinternet.com Message-ID: c8fc290a581fa04ba10c50f4c82ba8a3@localhost X-Sender: h.aling@home.nl Received: from madcap.xs4all.nl [82.93.196.225] with HTTP/1.1 (POST); Wed, 05 Mar 2008 13:34:03 +0100 User-Agent: RoundCube Webmail/0.1-svn Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit
On Wed, 5 Mar 2008 12:29:51 +0000, Nick Treleaven nick.treleaven@btinternet.com wrote:
For SVN, I use: --exclude=*.svn-base
It would be cool if this is selectable in Geany, so that I don't have to manually add that to the extra options each day...
-H-
On Wed, 05 Mar 2008 13:34:03 +0100 Harold Aling h.aling@home.nl wrote:
On Wed, 5 Mar 2008 12:29:51 +0000, Nick Treleaven nick.treleaven@btinternet.com wrote:
For SVN, I use: --exclude=*.svn-base
It would be cool if this is selectable in Geany, so that I don't have to manually add that to the extra options each day...
Geany remembers the extra options, and although you may want to use different options for different things, you should be able to leave the --exclude option there with no ill effects.
It's true that it would be nice to have a specific text entry for files to include though, e.g. *.h.
Regards, Nick
Nick Treleaven nick.treleaven@btinternet.com wrote:
Jeff Pohlmeyer yetanothergeek@gmail.com wrote:
Shouldn't that be --exclude-dir=.svn ?
Yes, but AFAICT the stable version of Grep doesn't support this yet (development version does).
From what I can see, The stable version is 2.5.3 and this option
has been available since 2.5.2 ( The ChangeLog says it was added 2006-08-19 )
But you're right, it probably still isn't available to everyone.
- Jeff
On Wed, 5 Mar 2008 16:35:37 -0600 "Jeff Pohlmeyer" yetanothergeek@gmail.com wrote:
Nick Treleaven nick.treleaven@btinternet.com wrote:
Jeff Pohlmeyer yetanothergeek@gmail.com wrote:
Shouldn't that be --exclude-dir=.svn ?
Yes, but AFAICT the stable version of Grep doesn't support this yet (development version does).
From what I can see, The stable version is 2.5.3 and this option has been available since 2.5.2 ( The ChangeLog says it was added 2006-08-19 )
From: http://www.gnu.org/software/grep/devel.html "The latest stable release of GNU grep is "2.5.1a"."
But maybe this page is out of date?
But you're right, it probably still isn't available to everyone.
I did a quick RPM search: http://rpmfind.net/linux/rpm2html/search.php?query=grep
It seems only Mandriva devel, OpenPKG and OpenSuSE (not SuSE) have 2.5.2 or later (although rpmfind isn't the best way of checking this ;-)).
Regards, Nick
On Fri, Mar 7, 2008 at 7:30 AM, Nick Treleaven nick.treleaven@btinternet.com wrote:
From what I can see, The stable version is 2.5.3 and this option has been available since 2.5.2 ( The ChangeLog says it was added 2006-08-19 )
From: http://www.gnu.org/software/grep/devel.html "The latest stable release of GNU grep is "2.5.1a"."
But maybe this page is out of date?
According to this page: http://directory.fsf.org/project/grep/ 2.5.3 stable released 2007-08-03 * Released: 3 Aug, 2007 * Code Maturity: Stable
For some strange reason, 2.5.2 seems to be missing from the source archives at ftp://mirrors.kernel.org/gnu/grep/ so maybe it had a bad bug or something.
It seems only Mandriva devel, OpenPKG and OpenSuSE (not SuSE) have 2.5.2 or later (although rpmfind isn't the best way of checking this ;-)).
I'm running OpenSuSE-10.3, so I guess that explains why I have it.
- Jeff
On Fri, 7 Mar 2008 07:47:17 -0600 "Jeff Pohlmeyer" yetanothergeek@gmail.com wrote:
According to this page: http://directory.fsf.org/project/grep/ 2.5.3 stable released 2007-08-03
- Released: 3 Aug, 2007
- Code Maturity: Stable
Thanks for the info.
For some strange reason, 2.5.2 seems to be missing from the source archives at ftp://mirrors.kernel.org/gnu/grep/ so maybe it had a bad bug or something.
I hope the distros will update to this, maybe they were holding off from using 2.5.2.
Regards, Nick
On Fri, 7 Mar 2008 13:30:37 +0000, Nick Treleaven nick.treleaven@btinternet.com wrote:
On Wed, 5 Mar 2008 16:35:37 -0600 "Jeff Pohlmeyer" yetanothergeek@gmail.com wrote:
Nick Treleaven nick.treleaven@btinternet.com wrote:
Jeff Pohlmeyer yetanothergeek@gmail.com wrote:
Shouldn't that be --exclude-dir=.svn ?
Yes, but AFAICT the stable version of Grep doesn't support this yet (development version does).
From what I can see, The stable version is 2.5.3 and this option has been available since 2.5.2 ( The ChangeLog says it was added 2006-08-19 )
From: http://www.gnu.org/software/grep/devel.html "The latest stable release of GNU grep is "2.5.1a"."
But maybe this page is out of date?
But you're right, it probably still isn't available to everyone.
I did a quick RPM search: http://rpmfind.net/linux/rpm2html/search.php?query=grep
It seems only Mandriva devel, OpenPKG and OpenSuSE (not SuSE) have 2.5.2 or later (although rpmfind isn't the best way of checking this ;-)).
Hmm, whatever grep version the user is using, why don't we just change the note in the manual to mention both methods equally. So users with a grep supporting --exclude-dir and those without will find the suitable information(in addition to the grep manpage they have probably installed).
Regards, Enrico
On Fri, 7 Mar 2008 14:50:50 +0100 Enrico Tröger enrico.troeger@uvena.de wrote:
Hmm, whatever grep version the user is using, why don't we just change the note in the manual to mention both methods equally. So users with a grep supporting --exclude-dir and those without will find the suitable information(in addition to the grep manpage they have probably installed).
Sure, we could write something like 'for GNU Grep >= 2.5.2 use --exclude-dir=.* --exclude-dir=CVS' - although I haven't tested it as I don't have it yet ;-) In fact those two options would be so useful perhaps they should have their own preference 'Ignore hidden directories and CVS', with a tooltip mentioning the Grep version needed.
Regards, Nick
On Tue, Mar 4, 2008 at 9:15 AM, Harold Aling h.aling@home.nl wrote:
Dear devs,
It would be very handy if Geany would have a 'Exclude version control files/dirs' checkbox in the 'Find in files' dialog (which even can be enabled by default)
I just now stumbled across this:
I haven't tried it yet, but it looks like it could be the right tool for the job.
- Jeff
On Sat, 15 Mar 2008 14:56:18 -0500, "Jeff Pohlmeyer" yetanothergeek@gmail.com wrote:
On Tue, Mar 4, 2008 at 9:15 AM, Harold Aling h.aling@home.nl wrote:
Dear devs,
It would be very handy if Geany would have a 'Exclude version control files/dirs' checkbox in the 'Find in files' dialog (which even can be enabled by default)
I just now stumbled across this:
I haven't tried it yet, but it looks like it could be the right tool for the job.
Yeah, the description on the website sounds promising. I'll give it a try.
Thanks.
Regards, Enrico
Enrico Tröger enrico.troeger@uvena.de wrote:
Jeff Pohlmeyer yetanothergeek@gmail.com wrote:
Harold Aling h.aling@home.nl wrote:
It would be very handy if Geany would have a 'Exclude version control files/dirs' checkbox in the 'Find in files' dialog (which even can be enabled by default)
I just now stumbled across this: http://www.petdance.com/ack/ I haven't tried it yet, but it looks like it could be the right tool for the job.
Yeah, the description on the website sounds promising. I'll give it a try.
Looks like I spoke too soon, sorry. Although it does look like a handy tool for searching from the command line, the output format doesn't really fit very well with Geany's find in files output. (Someone who knows Perl could probably make it work quite easily.)
But it does bring up the idea for some sort of tool to allow for more fine-grained search options, maybe a plugin or simply a program (or wrapper) to use instead of grep.
Personally, I am already accustomed to using find+grep from the command line so this really isn't a high priority for me anyway.
- Jeff
On Mon, 17 Mar 2008 00:44:41 -0500, "Jeff Pohlmeyer" yetanothergeek@gmail.com wrote:
Enrico Tröger enrico.troeger@uvena.de wrote:
Jeff Pohlmeyer yetanothergeek@gmail.com wrote:
Harold Aling h.aling@home.nl wrote:
It would be very handy if Geany would have a 'Exclude version control files/dirs' checkbox in the 'Find in files' dialog (which even can be enabled by default)
I just now stumbled across this: http://www.petdance.com/ack/ I haven't tried it yet, but it looks like it could be the right tool for the job.
Yeah, the description on the website sounds promising. I'll give it a try.
Looks like I spoke too soon, sorry. Although it does look like a handy tool for searching from the command line, the output format doesn't really fit very well with Geany's find in files output. (Someone who knows Perl could probably make it work quite easily.)
Its output can be trimmed to be like grep's, ack --nocolor --nogroup is a good start. Anyway. the FIF dialog is pretty much tuned for grep and I don't think we really should change this. IMO the current state is sufficient. Maybe ack could support a compatibility mode for grep so that common grep options are accepted and/or ignored. Currently, Geany passes -nHIF by default to grep, I and F are rejected by ack. If those(and some others) were accepted and ignored, one could use ack as a drop-in for grep. But I don't care much about it.
But it does bring up the idea for some sort of tool to allow for more fine-grained search options, maybe a plugin or simply a program (or wrapper) to use instead of grep.
Sounds like an ideal idea for a plugin - yet another, super-featured and super-easy to use grep frontend ;-). (BTW right now there is not yet a plugin API for adding messages to the Messages window)
Regards, Enrico
On Mon, 17 Mar 2008 13:22:32 +0100 Enrico Tröger enrico.troeger@uvena.de wrote:
On Mon, 17 Mar 2008 00:44:41 -0500, "Jeff Pohlmeyer" yetanothergeek@gmail.com wrote:
Enrico Tröger enrico.troeger@uvena.de wrote:
Jeff Pohlmeyer yetanothergeek@gmail.com wrote:
I just now stumbled across this: http://www.petdance.com/ack/ I haven't tried it yet, but it looks like it could be the right tool for the job.
Looks good. I'll use it when I'm at the command-line, I don't like having to type --color every time with grep.
...
Looks like I spoke too soon, sorry. Although it does look like a handy tool for searching from the command line, the output format doesn't really fit very well with Geany's find in files output. (Someone who knows Perl could probably make it work quite easily.)
Its output can be trimmed to be like grep's, ack --nocolor --nogroup is a good start. Anyway. the FIF dialog is pretty much tuned for grep and I don't think we really should change this. IMO the current state is sufficient.
I think if someone wants to write a patch to make the -nHIF flags a hidden pref this would be OK.
...
But it does bring up the idea for some sort of tool to allow for more fine-grained search options, maybe a plugin or simply a program (or wrapper) to use instead of grep.
Sounds like an ideal idea for a plugin - yet another, super-featured and super-easy to use grep frontend ;-).
Probably all of FIF could be moved into a plugin, it's quite self-contained (after adding the necessary message window functions).
Regards, Nick