[Geany] do not open oversize files

Enrico Tröger enrico.troeger at xxxxx
Tue Jan 4 19:57:26 UTC 2011


On Tue, 4 Jan 2011 17:42:22 +0000, Nick wrote:

>On Tue, 4 Jan 2011 14:05:36 +0100
>Milan Babuskov <milan.babuskov at gmail.com> wrote:
>
>> >> "You're trying to open a huge file (600MB), which may cause your
>> >> system to work slow. Are you sure?"
>> >
>> > Well, where to set such a point?
>> 
>> Any file larger than 50MB?
>
>This sounds OK, or even smaller. A hidden pref could be used
>to control the limit.

That's probably the best with using a hidden pref.


>> Alternatively, if the file browser would show the file sizes that
>> would also work. It happens to me sometimes to accidentally open the

If adding this to the file browser plugin, it should be optional as it
would cause a not so small performance loss stat'ing each single file
or even use GIO for querying the file size which might be a bit more
portable.

Regards,
Enrico

-- 
Get my GPG key from http://www.uvena.de/pub.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.geany.org/pipermail/users/attachments/20110104/c1689a99/attachment.pgp>


More information about the Users mailing list