Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Dirwalker - Simplistic and Ergonomic Directory Browser
#15
Glad to share revision 6, in next weeks will add more functionalities, for now I am pleased with it being the INITIAL revision. Wanna see (in the process of using it) what new ideas will come up.

One thing that I hated for a long time was the scrollbars used in all kind of applications, I see huge gaps in their "design", for example, mindlessly using the hard-to-click-on "arrows", how the hell such tiny areas can be ergonomic, the constant [re]focusing/stressing the eyes in such attempts is so inconvenient, my current answer to this atrocity is my ToolRibbon, shown on the screenshot:

   

It is auto-hiding / auto-showing when hovering outwith/within the last 3 columns. Releasing the Left Mouse Button over the highlighted Pseudo-Button duplicates the keyboard shortcuts (Ctrl+Home/End, PgUp/PgDn, Enter, Up/Dn, F1/F2/F3/F4). For example, positioning the mouse cursor over [UP] still allows scrolling a page down with Double-Click of Right-Button, the idea being - to scroll/sort/enter folders with mouse only.

In next weeks will write down all the keyboard and/or mouse combos, in a README.TXT, with examples.

The nasty delays (varying from 2 sec to 4 min) of using secondary STRING array were fixed by using Indirect Indexes, now wildcard filtering takes less than 2 seconds, tested for 3+ million filenames (quite long in order to stress the wildcard matcher) generated by this short code:

   

Code: (Select All)
'Simulate3Mfiles.bas
Randomize Timer
MkDir "MP3" 'will contain .Mp3 .mp3 .MP3
MkDir "PDF" 'will contain .Pdf .pdf .PDF
MkDir "TXT" 'will contain .Txt .txt .TXT
MkDir "WAV" 'will contain .Wav .wav .WAV
MkDir "PNG" 'will contain .Png .png .PNG
MkDir "HTM" 'will contain .Htm .htm .HTM
Do
    FileLenUpTo210% = Int(Rnd * 60) + 1
    NewFileName$ = ""
    For i = 1 To FileLenUpTo210%
        max% = 57
        min% = 48
        randNum1% = Int(Rnd * (max% - min% + 1)) + min%
        max% = 90
        min% = 65
        randNum2% = Int(Rnd * (max% - min% + 1)) + min%
        max% = 122
        min% = 97
        randNum3% = Int(Rnd * (max% - min% + 1)) + min%
        NewFileName$ = NewFileName$ + Chr$(randNum1%) + Chr$(randNum2%) + Chr$(randNum3%)
        Print "Creating '"; NewFileName$; "' ..."
    Next
    Open "MP3\" + NewFileName$ + ".1.Mp3" For Binary As #1
    Close #1
    Open "MP3\" + NewFileName$ + ".2.mp3" For Binary As #1
    Close #1
    Open "MP3\" + NewFileName$ + ".3.MP3" For Binary As #1
    Close #1
    Open "PDF\" + NewFileName$ + ".1.Pdf" For Binary As #1
    Close #1
    Open "PDF\" + NewFileName$ + ".2.pdf" For Binary As #1
    Close #1
    Open "PDF\" + NewFileName$ + ".3.PDF" For Binary As #1
    Close #1
    Open "TXT\" + NewFileName$ + ".1.Txt" For Binary As #1
    Close #1
    Open "TXT\" + NewFileName$ + ".2.txt" For Binary As #1
    Close #1
    Open "TXT\" + NewFileName$ + ".3.TXT" For Binary As #1
    Close #1
    Open "WAV\" + NewFileName$ + ".1.Wav" For Binary As #1
    Close #1
    Open "WAV\" + NewFileName$ + ".2.wav" For Binary As #1
    Close #1
    Open "WAV\" + NewFileName$ + ".3.WAV" For Binary As #1
    Close #1
    Open "PNG\" + NewFileName$ + ".1.Png" For Binary As #1
    Close #1
    Open "PNG\" + NewFileName$ + ".2.png" For Binary As #1
    Close #1
    Open "PNG\" + NewFileName$ + ".3.PNG" For Binary As #1
    Close #1
    Open "HTM\" + NewFileName$ + ".1.Htm" For Binary As #1
    Close #1
    Open "HTM\" + NewFileName$ + ".2.htm" For Binary As #1
    Close #1
    Open "HTM\" + NewFileName$ + ".3.HTM" For Binary As #1
    Close #1
    Total_Files = Total_Files + 1
Loop While Total_Files < 200000 'x18 = 3M


As a matter of fact, the Fedora 36 file explorer, Caja, turns out to be unusable when dealing with few million files, just getting the properties of such folder takes 20+ minutes?! Unacceptable, therefore it is a good idea, one to rely on one's own tools.

The full sourcecode and Linux/Windows binaries are attached:

.7z   Dirwalker_r6.7z (Size: 3.3 MB / Downloads: 72)
Enfun!
"He learns not to learn and reverts to what the masses pass by."
Reply


Messages In This Thread
RE: Dirwalker - Simplistic and Ergonomic Directory Browser - by Sanmayce - 12-15-2022, 05:15 AM



Users browsing this thread: 3 Guest(s)