Well, I didn't mean to start a discussion, although it sometimes is healthy.

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.

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.

If this feature where to be implemented, maybe a suggestion  to the user or even an automatic backup for undo operation could accompany it.

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. :-/
Sorry for disturbing!

Regards,
Pedro.

Ter, 2015-08-04 às 07:15 +1000, Lex Trotman escreveu:
On 4 August 2015 at 07:03, Matthew Brush <mbrush@codebrainz.ca> wrote:
> On 15-08-03 01:42 PM, Lex Trotman wrote:
>>
>> On 4 August 2015 at 03:46, Pedro Albuquerque <palbuquerque73@gmail.com>
>> wrote:
>>>
>>> Hi,
>>>
>>> I'm messing around with colours in an icon folder with lots of
>>> sub-folders
>>> containing svg files.
>>>
>>> I can find in files a specific colour, or any string, in all folders and
>>> sub-folders.
>>>
>>> Is there a way to find and replace that string in all folders and
>>> sub-folders?
>>
>>
>> Not from Geany.
>>
>>>
>>> If not, this would be a great feature to add.
>>
>>
>> I think it would be a very dangerous feature to add, making unseen
>> changes to files that are not open.  There is not even a feature to
>> make the changes to all the files that are open.
>>
>
> The regular Search & Replace dialog lets you perform replacements in the
> "Session" (all open files).

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

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

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

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

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


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