Page 1 of 1

Autodetect binary files?

Posted: 2013-03-06, 08:23 UTC
by smartsl
I want to quick view a binary file with ctrl+q, but it's always displayed in text mode. I need to manually select hex mode all the time. How does TotalCmd distinguish text files and binary files? Is there a way to change this behavior to make it right? :roll:

Posted: 2013-03-06, 13:52 UTC
by petermad
By default TC shows binary files in Binary mode (mode 2), and not in Text mode (mode 1)

You can make a button with this code:

Code: Select all

cmd=%COMMANDER_EXE% /S=L:T3
param=%Z%P%N
menu=Lister - Hex
button=%COMMANDER_EXE%,24
This will start Lister i Hex mode (mode 3) with the current file.

Posted: 2013-03-07, 20:45 UTC
by sqa_wizard
@petermad: Thanks for the code, this can be used for a custom command.

The following code can be pasted directly to buttonbar

Code: Select all

TOTALCMD#BAR#DATA
%COMMANDER_EXE% /S=L:T3
%Z%P%N
%COMMANDER_EXE%,24
Lister - Hex


-1

Posted: 2013-05-23, 08:20 UTC
by smartsl
This button start a new lister window. I want to view it in childwindow(ctrl + q instead of F3).