Page 1 of 1

Mouseover/hover Archive Contents Preview

Posted: 2018-11-20, 19:44 UTC
by jinsight
I suggest an archive contents preview when one hovers over the archive file. I understand Quick View will do this. Preview on hover is slightly more convenient for looking at multiple files. It could be configurable on or off.

Re: Mouseover/hover Archive Contents Preview

Posted: 2018-11-23, 06:19 UTC
by Gral
It's rather suggestion for content plugin.

Re: Mouseover/hover Archive Contents Preview

Posted: 2018-11-23, 12:35 UTC
by MVV
Looking multiple files is usually much easier with Quick View, just because you can use keyboard for switching between files and you shouldn't wait until tooltip is shown...

Anyway it is absolutely unclear from request what kind of preview should be displayed. Tooltips usually short and can't contain too much info.

Re: Mouseover/hover Archive Contents Preview

Posted: 2018-11-24, 18:27 UTC
by jinsight
2MVV

The preview should contain the file names inside the archive - zip, 7z etc - just as Quick View does.

Re: Mouseover/hover Archive Contents Preview

Posted: 2018-11-24, 18:32 UTC
by Dalai
2jinsight
And which limit would you propose for the list of file names? I mean, archives can contain thousands of files, and displaying all of them certainly is a very bad idea (and also impossible because of limited screen space).

Anyway, my guess is that determining which files are in an archive isn't any faster than entering that archive and looking for yourself. So I don't see any advantage in such a tooltip (but maybe that's just me).

Regards
Dalai

Re: Mouseover/hover Archive Contents Preview

Posted: 2018-11-25, 00:05 UTC
by Hacker
AHK Script for WinScript Advanced.
Get 7z.exe and 7z.dll from 7-Zip.
Put 7z.exe, 7z.dll and ListArchiveFiles.ahk into WinScript Advanced\Scripts\.

ListArchiveFiles.ahk

Code: Select all

#NoTrayIcon

SplitPath, FileName, , , Ext
If Ext in 7z,zip ; <-- Edit here to add more formats
{
	SetWorkingDir, %A_Temp%
	RunWait, %A_ComSpec% /c %A_ScriptDir%\7z.exe l "%FileName%" > ArchiveFileList.txt, , Hide
	FileRead, ArchiveFileList, ArchiveFileList.txt
	FileDelete, ArchiveFileList.txt
	RegExMatch(ArchiveFileList, "s)------------------- ----- ------------ ------------  ------------------------[\r\n]{2}(.*)?[\r\n]{2}------------------- ----- ------------ ------------  ------------------------", ArchiveFileList)
	Loop, Parse, ArchiveFileList1, `n, `r
		If (A_Index = 1)
			Content := SubStr(A_LoopField, 54)
		Else
		{
			If (A_Index = 22)
				Break
			Index := A_Index - 1
			Content%Index% := SubStr(A_LoopField, 54)
		}
}
WinScript Advanced's Options.ini:

Code: Select all

[Script]
ActiveScripts=MinutesAgo|CheckEncoding|Signature|ListArchiveFiles

[ListArchiveFiles]
Script=ListArchiveFiles.ahk
Content=Archive File 1
Content1=Archive File 2
Content2=Archive File 3
Content3=Archive File 4
Content4=Archive File 5
Content5=Archive File 6
Content6=Archive File 7
Content7=Archive File 8
Content8=Archive File 9
Content9=Archive File 10
Content10=Archive File 11
Content11=Archive File 12
Content12=Archive File 13
Content13=Archive File 14
Content14=Archive File 15
Content15=Archive File 16
Content16=Archive File 17
Content17=Archive File 18
Content18=Archive File 19
Content19=Archive File 20
Content20=Archive File 21
Extensions=7z|zip ; <-- Edit here to add more formats (also, remove this comment before saving)
FoldersPaths=0
Takes a bit of configuring, but it works. 7z and zip are enabled for testing but all 7-Zip supported formats should work.

Roman

Re: Mouseover/hover Archive Contents Preview

Posted: 2018-11-27, 11:22 UTC
by MVV
jinsight wrote: 2018-11-24, 18:27 UTCThe preview should contain the file names inside the archive - zip, 7z etc - just as Quick View does.
For me, quick view for ZIP archive just shows binary contents, so there should be some plugin that you use. :)

Re: Mouseover/hover Archive Contents Preview

Posted: 2018-11-27, 11:45 UTC
by Horst.Epp
MVV wrote: 2018-11-27, 11:22 UTC
jinsight wrote: 2018-11-24, 18:27 UTCThe preview should contain the file names inside the archive - zip, 7z etc - just as Quick View does.
For me, quick view for ZIP archive just shows binary contents, so there should be some plugin that you use. :)
The Ulister plugin produces list of file names in QuickView for all types of archives.

Re: Mouseover/hover Archive Contents Preview

Posted: 2018-11-28, 05:16 UTC
by MVV
I believe that there are lister plugins that do that, but it haven't been mentioned in this topic:)