<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/4.6.6">
</HEAD>
<BODY>
Well, I didn't mean to start a discussion, although it sometimes is healthy.<BR>
<BR>
Anyway, when we find in files, currently, we get a list of files on the bottom panel. From there, we can open those files, one by one, and replace the strings. Which is, to say the least, very time consuming.<BR>
<BR>
Of course, such a feature involves risks. I'm not a developer, coder, programmer or anything like it, but I know for sure that, before doing such an operation, even for a single file, I should make a backup of all it's involved.<BR>
<BR>
If this feature where to be implemented, maybe a suggestion  to the user or even an automatic backup for undo operation could accompany it.<BR>
<BR>
It was just an idea. I'm using command line to do it (find, sed, bla, bla), as I know what I'm doing. I just thought it would make life easier for gui users. <IMG SRC="cid:1438637704.3101.11.camel@pedro-Satellite-A200" ALIGN="middle" ALT=":-/" BORDER="0"><BR>
Sorry for disturbing!<BR>
<BR>
Regards,<BR>
Pedro.<BR>
<BR>
Ter, 2015-08-04 às 07:15 +1000, Lex Trotman escreveu:
<BLOCKQUOTE TYPE=CITE>
<PRE>
On 4 August 2015 at 07:03, Matthew Brush <<A HREF="mailto:mbrush@codebrainz.ca">mbrush@codebrainz.ca</A>> wrote:
<FONT COLOR="#737373">> On 15-08-03 01:42 PM, Lex Trotman wrote:</FONT>
<FONT COLOR="#737373">>></FONT>
<FONT COLOR="#737373">>> On 4 August 2015 at 03:46, Pedro Albuquerque <<A HREF="mailto:palbuquerque73@gmail.com">palbuquerque73@gmail.com</A>></FONT>
<FONT COLOR="#737373">>> wrote:</FONT>
<FONT COLOR="#737373">>>></FONT>
<FONT COLOR="#737373">>>> Hi,</FONT>
<FONT COLOR="#737373">>>></FONT>
<FONT COLOR="#737373">>>> I'm messing around with colours in an icon folder with lots of</FONT>
<FONT COLOR="#737373">>>> sub-folders</FONT>
<FONT COLOR="#737373">>>> containing svg files.</FONT>
<FONT COLOR="#737373">>>></FONT>
<FONT COLOR="#737373">>>> I can find in files a specific colour, or any string, in all folders and</FONT>
<FONT COLOR="#737373">>>> sub-folders.</FONT>
<FONT COLOR="#737373">>>></FONT>
<FONT COLOR="#737373">>>> Is there a way to find and replace that string in all folders and</FONT>
<FONT COLOR="#737373">>>> sub-folders?</FONT>
<FONT COLOR="#737373">>></FONT>
<FONT COLOR="#737373">>></FONT>
<FONT COLOR="#737373">>> Not from Geany.</FONT>
<FONT COLOR="#737373">>></FONT>
<FONT COLOR="#737373">>>></FONT>
<FONT COLOR="#737373">>>> If not, this would be a great feature to add.</FONT>
<FONT COLOR="#737373">>></FONT>
<FONT COLOR="#737373">>></FONT>
<FONT COLOR="#737373">>> I think it would be a very dangerous feature to add, making unseen</FONT>
<FONT COLOR="#737373">>> changes to files that are not open.  There is not even a feature to</FONT>
<FONT COLOR="#737373">>> make the changes to all the files that are open.</FONT>
<FONT COLOR="#737373">>></FONT>
<FONT COLOR="#737373">></FONT>
<FONT COLOR="#737373">> The regular Search & Replace dialog lets you perform replacements in the</FONT>
<FONT COLOR="#737373">> "Session" (all open files).</FONT>

Oh yeah, forgot about session, shows how often I use it :)

<FONT COLOR="#737373">> I don't find this super dangerous as you can go</FONT>
<FONT COLOR="#737373">> to each file and undo the replacement changes, even if tedious. A global</FONT>
<FONT COLOR="#737373">> "undo all replacements" functionality would be very handy.</FONT>

The danger is that it makes unintended changes that you don't notice,
like setting the missile launch to "on" :)

<FONT COLOR="#737373">></FONT>
<FONT COLOR="#737373">> IMO another feature that would make search and replace in files possible and</FONT>
<FONT COLOR="#737373">> somewhat safe is if there was a context menu item in the messages tab, where</FONT>
<FONT COLOR="#737373">> Find in Files puts all the matches, which would let you open all files that</FONT>
<FONT COLOR="#737373">> matched in one shot.</FONT>

Open all files would be fine, That you then do something irresponsible
with them is your problem :)

But "somebody" has to do it.

Cheers
Lex


<FONT COLOR="#737373">> Then you could just click that to open all the files</FONT>
<FONT COLOR="#737373">> and then do a normal Search and Replace in Session files. I personally would</FONT>
<FONT COLOR="#737373">> use that quite a bit, as I often go through the matches in the message</FONT>
<FONT COLOR="#737373">> dialog and click on each to open the related files, and then do the</FONT>
<FONT COLOR="#737373">> replacement on all those files.</FONT>
<FONT COLOR="#737373">></FONT>
<FONT COLOR="#737373">> Cheers,</FONT>
<FONT COLOR="#737373">> Matthew Brush</FONT>
<FONT COLOR="#737373">></FONT>
<FONT COLOR="#737373">> _______________________________________________</FONT>
<FONT COLOR="#737373">> Users mailing list</FONT>
<FONT COLOR="#737373">> <A HREF="mailto:Users@lists.geany.org">Users@lists.geany.org</A></FONT>
<FONT COLOR="#737373">> <A HREF="https://lists.geany.org/cgi-bin/mailman/listinfo/users">https://lists.geany.org/cgi-bin/mailman/listinfo/users</A></FONT>
_______________________________________________
Users mailing list
<A HREF="mailto:Users@lists.geany.org">Users@lists.geany.org</A>
<A HREF="https://lists.geany.org/cgi-bin/mailman/listinfo/users">https://lists.geany.org/cgi-bin/mailman/listinfo/users</A>
</PRE>
</BLOCKQUOTE>
<BR>
</BODY>
</HTML>