Re: [Github-comments] [geany/geany] Multi-line "Find in Files" searching (#2322)

2019-10-19 Thread Chris Graham
Cool :). A couple of notes: - I do not believe "-M" makes "." match line breaks. My recent test confirms this, unless I'm going crazy. - If we're passing in lots of filenames in recursive mode isn't that going to hit some kind of parameter string limit? -- You are receiving this because you

Re: [Github-comments] [geany/geany] Multi-line "Find in Files" searching (#2322)

2019-10-17 Thread Nick Treleaven
> Without the recursive option, Geany actually passes the filenames to grep > itself. That can be sorted It actually is sorted already, so just the recursive option sorting needs implementing (which is currently handled by grep). -- You are receiving this because you are subscribed to this

Re: [Github-comments] [geany/geany] Multi-line "Find in Files" searching (#2322)

2019-10-17 Thread Nick Treleaven
Implementation in #2364. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/geany/geany/issues/2322#issuecomment-543273654

Re: [Github-comments] [geany/geany] Multi-line "Find in Files" searching (#2322)

2019-10-17 Thread Nick Treleaven
I'm now working on this, starting from your commits. I think -M shouldn't be the only regex option for pcre, because sometimes you don't want `.` to match EOL. The -M option could be manually enabled in the Extra Options field (perhaps we could have 2 or 3 of these fields, each with checkboxes

Re: [Github-comments] [geany/geany] Multi-line "Find in Files" searching (#2322)

2019-10-14 Thread Chris Graham
Thanks. To clarify, I don't consider the difference in `include` syntax a problem. After my patch, everything works, it's just the user has to type in different syntax. I think it works great, I like the additional control you get with /s/globs/regexps. -- You are receiving this because you

Re: [Github-comments] [geany/geany] Multi-line "Find in Files" searching (#2322)

2019-10-14 Thread Nick Treleaven
> It almost works, but I had to tweak the code: Ok, thanks. Looks good, I didn't realize pcregrep doesn't have an -E option. > The only other remark is the exclude-dir and exclude and include syntax works > via regexps not globbing Hmm, it's frustrating that they repurposed those options,

Re: [Github-comments] [geany/geany] Multi-line "Find in Files" searching (#2322)

2019-10-13 Thread Chris Graham
> I think you could already set pcregrep as the grep tool in Preferences. Then > in the other options entry [of find in files] you can add any necessary flags > for multi-line matching. Thanks, I wasn't aware of the option. It almost works, but I had to tweak the code:

Re: [Github-comments] [geany/geany] Multi-line "Find in Files" searching (#2322)

2019-09-25 Thread Nick Treleaven
> to implement the search in Geany and do away with grep That would basically have to reimplement grep. People can pass custom options. I don't think this is an effective use of time. > (which isn't available on windows by default, I think it's bundled with the installer. > and isn't

Re: [Github-comments] [geany/geany] Multi-line "Find in Files" searching (#2322)

2019-09-25 Thread Nick Treleaven
I think you could already set pcregrep as the grep tool in preferences. Then in the other options entry you can add any necessary flags for multi-line matching. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

Re: [Github-comments] [geany/geany] Multi-line "Find in Files" searching (#2322)

2019-09-24 Thread elextr
Glib contains regexen support and directory reading and file reading, so it would be a mere matter of programming to implement the search in Geany and do away with grep (which isn't available on windows by default, and isn't neccessarily GNU grep on BSDs etc.). Just "somebody" has to do it :)

[Github-comments] [geany/geany] Multi-line "Find in Files" searching (#2322)

2019-09-24 Thread Chris Graham
It would be very useful to be able to search across multiple lines in "Find in Files". This doesn't work using patterns (\n) or by pasting in the line break character. I realize this is all because `grep` doesn't really support multi-line searches, and it would not be difficult to implement