Code Monkey home page Code Monkey logo

snap2html's People

Contributors

rlv-dan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

snap2html's Issues

Default sorting high <> Low on opening

Is there a way to open a generated html with the name column already sorted high to low.
I've a directory containing about 1350 service information bulletins sorted on year-release#.

Currently files will show up like:

2004-001 machine model - subject
2004-002 machine model - subject
<>
2020-074 machine model - subject
2020-075 machine model - subject

Would be great to always have the most recent release on top without needing to sort the name column by clicking the header first. I've adapted de template without issues to match my website and all works great, but I cannot find how to do this. Would this be possible at all?

Suggestion for template: sticky header

Hi!
The header of the table contents can become sticky when scrolling, if you use:

#files.tablesorter thead tr th {
	position: sticky;
	top: 0;
}

Maybe you can consider putting it in the template.
Support for position: sticky can be seen here: https://caniuse.com/css-sticky

Thanks for a great software!

Add an option to load a file list from a text file

In a case the user has a file list in txt file like this:

"C:\Snap2HTML\Snap2HTML"
"C:\Snap2HTML\Snap2HTML\ReadMe.txt"
"C:\Snap2HTML\Snap2HTML\Snap2HTML.exe"
"C:\Snap2HTML\Snap2HTML\template.html"

or like this:

C:\Snap2HTML\Snap2HTML
C:\Snap2HTML\Snap2HTML\ReadMe.txt
C:\Snap2HTML\Snap2HTML\Snap2HTML.exe
C:\Snap2HTML\Snap2HTML\template.html

and he wants to view the file list in Explorer view

Processing folders with a lot of content.

Hi, love this tool. I was running this last night and noticed that while it processed smaller test folders with no difficulty it wasn't writing output for larger folders, size on disk didn't seem to matter, I think it might have been number of files contained. Is this something you guys have observed elsewhere?

I ran against my C:\Temp which is 2.12GB and contains 438 files, 179 folders. It looked like it worked through the contents in a good time but then sat overnight with a message at the bottom of the GUI, "Processing Content", no output was written.

This was ran on Windows 10, 1803.

List only folders

Hello,

Thanks for this great app :) .

It could be useful to be able to generate only "folder" list.

Bye

Dark Theme

Hello, is there any way to make the result's background dark?
Like a dark theme for Snap2HTML.

[Request] Select multiple folders in a single generation.

The option to scan multiple folders from which a list gets generated.
for instance
D:
Folder A
Folder B
Folder C
E:
Map A
Map B
Map C

resulting in:
Root:
Folder B
Map B
Map C

That or a way to link several generated files into a page basically doing the same.

Support pasting directory

I feel like I requested this when I first found the app...
Can you please add support for pasting the directory, rather than using folder navigation, full file explorer is much easier to navigate.

Use relative paths instead of absolute path

I wish you can alter the template.html to use virtual path instead of the real path, so if I used an indexed html file on a cdrom to display it's contents it would work anywhere despite the drives letter.

The html is too big to open very slowly

If there are too many contents in the folder, the generated html will be very large, or the html will be opened slowly or cannot be opened at all. Is there any way to solve this problem?

Merging multiple html’s

Not sure if you are still working on this but I must say it is a great little program so much so I had to donate. I wonder if there is any progress in merging the html files? I have plenty of HDD snap2html files I would love to batch together but have had no luck trying to join them.

Thank you for great app

The Folder column

Hi,
I have discovered Snap2HTML last week-end and it's a really great app, i really enjoy it.
But something bug me quickly.
If i scan a folder with files and subfolders, i generate a HTML. I make a search of a file, and i don't anderstand why, sometimes i have a column "Folder" where is the path of the file i am looking for is, and for somes HTML generated i don't have that column.
I run some quick test and it's look like i have the column with less files/folders scan.
This column is really helpfull and i wouldlike have it in all HTML generated.
Is that possible ?

Thank you

Merge multiple into one

Hey,
I used this software to create multiple snaps of my Hard Drives. I want to show these files in only one snap. I tried to Copy(under open with editor) the lines with D.p.... and paste it into another one. But nothing changes.
Is there a easy way to do this?
I mean to add a Folder with sub folders like this
(Badly I can't HTML, only JAVA)

Long file names issue (> 255 characters)

When Snap2HTML encounters folders and files where the total length of the file name including absolute path exceeds 255 characters, it either does not display file attributes (size and timestamp) and/or stops the output to the html file if the folder name breaks that limit.

This could be a limit of an old MS Windows API and even most of Microsoft apps including Word, Excel etc. cannot handle longer names even though there are newer API calls supporting much longer file names. There are some apps capable of using nested folder names > 255 characters, e.g. WinRar, Total Commander, AllDup etc.

I experienced this on my NAS, where the file structure is deeply nested but I was able to reproduce it on local Windows 10 drive too. I'm attaching a sample folder structure with nested folders/files exceeding 255 chars to illustrate the issue; the files are all blank (0 bytes).

Snap2HTML.zip

Error when using paths or title containing a comma character ","

When I use argument values that contain the comma "," character I get unhandled exception error.

Examples of commands that generates error:
Snap2HTML -path:"C:\folder\to\snap\path\containing, comma\" -outfile:"c:\file\output\path\file name containing, comma.html" -link:"C:\folder\to\link\to\path\containing, comma\" -title:"Title, containing, comma"

If any of the arguments contains a comma ,, the application generates unhandled exception error.

date format in 2.14

i was using version 2.0 for a long time then i noticed version 2.14 is released so i changed to the new version. but since i am using my costume template, dates are not formatted. it seems that i have to change something in my template but don't know what and where!
i appreciate if anyone could help.

Can the output be converted back to a simple list of files

please. I need HTML2snap. Someone gave me a html file with 400k files and I need to compare it to some filelists I have. Doing it manually would take an eternity.
I don't want any fancy fucking html, I just want a list of the files.

The html document is 200MB and I finally managed to write the dirs object to a file as json with a blob, but it's still in some fucked array format. It's impossible to work with. jq can't parse the JSON and I don't want to reverse engineer snap2html.

Is there anything that can convert this shit to a simple list in this format:

/path/to/file
/path/to/next/file
/path/to/another/file

Your tool seriously lacks that option or I'm missing it

[Possible Bug] Does Not Create HTML File of Complete Folder (Posssibly Due to Size Limit)

When attempting to create a HTML file of one of my drive directories, a HTML file with only the first 5 sub-folders (and all their nested folders) was created when the root directory contains 21 sub-folders. Could this be due to possible HTML file size limit?

Here is a snapshot of the of what the Snap2HTML app gathered for the HTML file (size 67.4 MB), showing 502,218 files in 197,808 folders (135.91 GB).
I show the properties of the first 5 sub-folders shows similar stats: 520,122 files in 206,491 folders (150 GB).
I also show the properties of all 21 sub-directories which is what the HTML file should contain in total: 676,087 files in 216,610 folders (12.6 TB).
https://i.imgur.com/SM2O8U5.png

I can also say that all other 8 drives that I created a HTML file for seemed to be successful at including all files and folders within the root directory and they ranged in size 3.66 MB [50,412 files in 3,447 folders (12.96 TB)] to 18.6 MB [275,339 files in 36,096 folders (1.40 TB)].

If this is a bug due to HTML file size limitations, can it either be fixed to include all of what's in the root directory, or if not, can it be broken out into multiple HTML files once the the first file gets to be too large?

Thanks

Suggestion / Request: Remove full path when 'link files' is disabled

Hi @rlv-dan, I love your piece of software as it comes in hand on so many occasions.

Though there is one thing that I can't always appreciate on some of my user cases. When I create an HTML to share with other, with the "Link Files" disabled, I'm not always pleased that they can still extract the "Full Path" from the HTML "Export View"-function.

I would love to see an option where "Full Path" and/or "Link Files" can be set relative to the root of the index, regardless where it is stored. Thus, not hard referenced to the initial source or a given source, but relative referenced to current location where the HTML is stored/opened.

Not sure if I explained sufficient and that you grasp my idea, but let me know what you think and what is reasonably possible.

Cheers!

Path HTML decode bug

Hi,

i found a small bug with special characters in the path.

We have a path like: _c:\name & name GmbH_ which is somehow handled as _c:\name & name GmbH_ so the length calculation is wrong for e.g. var dir_tmp = getDirNameAndPath(SelectedFolderID).substring(sourceRoot.length); In this example it will produce always a "subfolder" "GmbH" (the 4 extra characters).

i fixed it dirty for me by adding a .replace(/&amp;/g, '&'); on the return of the getDirNameAndPath function. Im not very into JavaScript so i dont know a better solution. Maybe someone can fix it more properly and generic and make a PR.

PS: thank you for this project!

Is there a way to automatically open all TOP level folders?

I admit I know absolutely nothing about js or html or any kind of coding, so I apologize if it's obvious or impossible. Just curious if we can have the highest level of the folder structure already expanded upon launch of the page, while leaving all the others collapsed. Thank you!

Steve

Display the relative or absolute path to the file in the file information field

In some cases it is sufficient to know the path to a file, but neither the direct file information nor the search file information will show the path to the file.
Without linking these files to a network or local address, the search results are often confusing, and even if the file is found, there is no way to know where it is located.

Relative address or absolute address

Hi,
This is really a great work! I can use this tool to summarize all my data files in an html.

However, if I need to transfer them to other people, the location of the root folder changed, so they can not open the file by clicking.

Is there s possibility to change the absolute address to relative address?

Thanks,

Snap2HTML does not like long paths

Hi there,
I've downloaded the program Snap2HTML and I like it, it looks very useful but I found out a strange behaviour. If I start it (be it using the GUI or command-line) and select both 'include hidden items' and 'include system items', whenever the program finds a folder with a long path name (> 259 chars) it will end (not crash) before all the folders are indexed.
But if I select no options or only one of those options, everything works as expected but the program will skip the rest of the folders (inside the same parent folder) after the folder with the long path name.

Let me make it a bit more visual using this example:

C:.
├───folder 1
│   ├───subfolder 1
│   ├───subfolder 2
│   ├───subfolder 3 - this one has a very very long name
│   ├───subfolder 4
│   └───subfolder 5
└───folder 2
    ├───subfolder 1
    └───subfolder 2

So, if I check both 'hidden items' and 'system items' the program will only index up until "C:\folder 1\subfolder 2". Not "subfolder 3" or "C:\folder 2".
And If I check none or only one of the options it will index "C:\folder 2" this time, but it will also skip all the folders inside "C:\folder 1" after "C:\folder 1\subfolder 2".

I hope I've made it clear so you can review it.

Looks like this is an old problem:
#16
#37
Please, allow us to help you find and fix this problem.
Cheers.

Preview Pane of Windows Explorer

I've noticed that the HTML output may be work in
Preview Pane of Windows Explorer
Currently it has issue.
Please check if you can make it works.

error with persian name with space in command line

i am using snap2html to create a html file containing list of files in a directory. i wrote a batch script to automate the process. it works perfectly with command line capabilities of snap2html. though i have a problem with folders that have a persian name and space in their name when they are set as the root folder. this is my .bat file:
@echo off setlocal enabledelayedexpansion for /f "delims=" %%a in ('dir z:\scan\ /b /a:d') do call :myf1 "%%~a" :myf1 set "x=z:\scan\%~1" set "y=!x!\index.html" echo !x! rem echo !y! C:\Snap2HTML\Snap2HTML.exe -path:"!x!" -outfile:"!y!" -link:"" -title:"%~1" exit /B
does any one has any solution for that?

Incomplete report generation (Missed 90% of the folders)

Serious bug that leads to incomplete generation of the report.
Tested with a partition of a disk, using the root drive letter as the query folder.
Even top layer folders (under root, E:) were missing. Some folders inside that top layer folders were also missing.
Those folder names are quite short, and in English characters.
xxxx files in xxx folders (xxx GB) -> All incorrect and mostly missing
missing

Suppress path in url

Is there a way to suppress path in url?

image

It's no biggie, but I'd like to keep it clean, so that the part after # is simply not showing.

suggestion: Export entire dir structure

currently I only see option to export view which means current subdirectory but it would be really cool if it was possible to export entire directory structure as json/plain/etc....

RTL support

It will be good to have a hotkey/button to Toggle LTR/RTL view.
RTL languages (as Hebrew and Arabic ) has a different view of Windows Explorer (RTL view).
In fact, it is more correct and will be much better to have both LTR+RTL views, to make it more readable for both LTR/RTL languages.
When it is LTR view it is more convenient to read LTR filenames
When it is RTL view it is more convenient to read RTL filenames

LTR / RTL
(ignore the pop-up menu)

Features

In the root dir, there's no option to paste a dir, why not?
In Export I see no option to export except to copy the text and create a file.
Thanks for this tool, works for my needs, too bad you abandoned it, 2 years ago.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.