Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Standard Cleanup: Check File Type #102

Closed
shundhammer opened this issue May 12, 2019 · 0 comments
Closed

New Standard Cleanup: Check File Type #102

shundhammer opened this issue May 12, 2019 · 0 comments
Labels

Comments

@shundhammer
Copy link
Owner

shundhammer commented May 12, 2019

New Standard Cleanup: Check File Type

This cleanup uses the file command to find out more information about a file. It formats the output a little to make it better readable.

Usage

Click on a file in the tree or in the treemap, then use the context menu (right mouse button) or the Clean Up menu and then select Check File Type.

Or simply press Ctrl-Y.

How to Get It

If you never used QDirStat, you will get it automatically starting with 3b6eb69 (V 1.5.90 or later).

If you did use it before, but you never changed any of the cleanups anyway, simply remove your cleanup config file and start QDirStat:

rm ~/.config/QDirStat/QDirStat-cleanup.conf
qdirstat

If you did change your cleanups and you want to keep those changes, add the following lines to your ~/.config/QDirStat/QDirStat-cleanup.conf:

[Cleanup_99]
Active=true
AskForConfirmation=false
Command="file %n | sed -e 's/[:,] /\\n  /g'"
Hotkey=Ctrl+Y
OutputWindowAutoClose=false
OutputWindowPolicy=ShowAlways
OutputWindowTimeout=500
Recurse=false
RefreshPolicy=NoRefresh
Title=Check File T&ype
WorksForDir=false
WorksForDotEntry=false
WorksForFile=true

You can also do that if you'd like to have it on any older version of QDirStat.

Screenshots

QDirStat-check-file-type-executable

QDirStat executable

QDirStat-check-file-type-obj

.o (object) file

QDirStat-check-file-type-mp3

MP3

Yes, it's perfectly legal; I bought it. The band deserves it.

QDirStat-check-file-type-jpg

JPG photo

@shundhammer shundhammer changed the title New Standard Cleanup: _Check File Type_ ('file' Command) New Standard Cleanup: Check File Type May 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant