Raw View: make that 10 MB configurable

Features wanted...
Post Reply
dhrv
Posts: 14
Joined: 16 Dec 2011 18:23

Raw View: make that 10 MB configurable

Post by dhrv »

I would very much appreciate to be able to configure the hardcoded 10 MB that are read from a file in Raw View. I work a lot in slow networks/over tunnel connections and thus often have to wait many seconds when I just need to see the head/tail of the file or when I accidentally click on a large file. The Preview tab is sometimes helpful, but not on unix filesystems where binary and text files often have no extension. Thanks for your consideration!

admin
Site Admin
Posts: 60567
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Raw View: make that 10 MB configurable

Post by admin »

Ok, next beta:

Code: Select all

    + Added tweak to limit the number of bytes previewed of a text file in the 
      Raw View tab when Hex View is off.
        MaxBytesRawViewAscii=5242880
      If set to 0 the value defaults to 5242880 (=5MB). In previous versions the 
      hard default was 10 MB.

admin
Site Admin
Posts: 60567
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Raw View: make that 10 MB configurable

Post by admin »

No, better idea:

Code: Select all

    * Raw View: Now the tweak MaxBytesTextPreview also limits the number of 
      bytes previewed of a text file in the Raw View tab when Hex View is off. 
      E.g.:
        MaxBytesTextPreview=1000000
      If set to 0 the value defaults to 5242880 (=5MB).
      In previous versions the hard default for this was 10 MB.

dhrv
Posts: 14
Joined: 16 Dec 2011 18:23

Re: Raw View: make that 10 MB configurable

Post by dhrv »

admin wrote:No, better idea:

Code: Select all

    * Raw View: Now the tweak MaxBytesTextPreview also limits the number of 
      bytes previewed of a text file in the Raw View tab when Hex View is off. 
      E.g.:
        MaxBytesTextPreview=1000000
      If set to 0 the value defaults to 5242880 (=5MB).
      In previous versions the hard default for this was 10 MB.
Great, thanks for the quick implementation! Since it's "Raw View", please make that byte limit count for all types of files, not only text files.

Btw, I didn't even know that tweak existed and the only reference I can find is in this thread where I would never have suspected and found it. Is there an index with all existing tweaks?

admin
Site Admin
Posts: 60567
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Raw View: make that 10 MB configurable

Post by admin »

dhrv wrote:Great, thanks for the quick implementation! Since it's "Raw View", please make that byte limit count for all types of files, not only text files.
It *does* apply to all files, the change log was a bit misleading.

There is a tweak thread in the forum somewhere.

dhrv
Posts: 14
Joined: 16 Dec 2011 18:23

Re: Raw View: make that 10 MB configurable

Post by dhrv »

Great, thank you very much!

I have found a list of tweaks from dated 2012, if anybody is interested.

dhrv
Posts: 14
Joined: 16 Dec 2011 18:23

Re: Raw View: make that 10 MB configurable

Post by dhrv »

admin wrote:Ok, next beta:
You really are fast, I just tested it successfully in Beta v19.20.0018. Working on a slow network connection is really fluid now 8)

Due to a very low setting I noticed that the tail feature is not a real tail as already pointed out in this thread. If you find the time, I would also appreciate this feature, or - maybe more versatile - something like a Custom View that is fed by the stdout of a custom command, e.g. "powershell.exe Get-Content <file> –Tail 50". I don't know if that's possible but it could prove useful, things like extracting media info, grepping, etc. could be the use cases.

admin
Site Admin
Posts: 60567
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Raw View: make that 10 MB configurable

Post by admin »

You will see the real tail in the next beta...

That powershell thing is an idea. It's possible. Later...

dhrv
Posts: 14
Joined: 16 Dec 2011 18:23

Re: Raw View: make that 10 MB configurable

Post by dhrv »

admin wrote:You will see the real tail in the next beta...

That powershell thing is an idea. It's possible. Later...
incredible! :D

dhrv
Posts: 14
Joined: 16 Dec 2011 18:23

Re: Raw View: make that 10 MB configurable

Post by dhrv »

admin wrote:You will see the real tail in the next beta...
Thank you, I can confirm that Beta v19.20.0024 is working fine and the tail is now a real tail if MaxBytesTextPreview is smaller than the file size :)

Post Reply