Replies: 2 comments 10 replies
-
Part 1
Good point, but I think the point of scrolling element into the center is not supported does not apply here, cuz actually Xplorer uses MS Edge's webview to handle the frontend (you may notice when installing Xplorer, the installer asks you to update/install edge's webview), and Edge is supported, so I think I might keep the thing simple.
I set it as 500ms for now, should I change it to 720ms?
So basically the idea is to check if the user type the same letter as he/she typed before, and if it is, then searches for the next name for the same query, otherwise, push the char user typed into the query, do I got it correctly? Part 2
This is a really good point, will surely implement it. However, for the Chinese character, I don't think we can implement it (tried the StackOverflow answer in console too, and does not work), cuz Chinese character is completely different from English and its family, Some Chinese characters have multiple pronounciation, for example "乐" can be spelled as Part 3
Ah ye, forgot to handle it (really got almost no time to code so yeahh), will omit the folder user searching in I think this will be another feature request, I'll do this in the new year holiday maybe.
Idk if you noticed it but the search technique is by using the glob pattern, it might take a bit slow, but I think searching in WFE also take some time right? maybe the place to improve is the function to render the file into the webview, current approach is by whenever there're 100 glob matches, it will send it into the webview to render it, do you have any suggestion with this? Overall, I really appreciate your researches on this, and I'll surely improve it when I got time (act need to wait until the new year holiday to get free time tho, cuz I'm having exam in this 2 week). |
Beta Was this translation helpful? Give feedback.
-
@kimlimjustin I have some more ideas of improvement for the functionality:
Actually I'm really excited about the app and these features in particular. I'm on 🔥 to get them work as expected as soon as I finish my works 😂 |
Beta Was this translation helpful? Give feedback.
-
Part 1
About the instant search function (shallow search on current folder, not the search bar), I've had some research about it. I find the one of VSCode, which highlight all matches on shallow search, creative. However, it lacks the ability to navigate through matched files. That's why I prefer to stick with the behavior of Windows File explorer (WFE) (idk if other os are the same). I'd therefore make suggestions based on WFE.
scrollIntoView
without parameters on HTML elements is fully supported on most platform.However the option to scroll the element to the center is not supported by many devices. If you got time, take a look at my manual scroller which supports centering, smooth scrolling, and focusing nested target (e.g. child-div in overflown parent-div in overflown viewport)
For example, pressing
dd
will navigate to the second file starting withd
, meaning that there's no way to get todd.txt
before navigating through allda
-,db
-, anddc
-started files.Therefore, I'd like to bring this feature to the next level by introducing more rules:
de
, then if I presse
again after 720ms, I'll in turn navigate through all thedebouce.txt
,decision.txt
,decode.txt
,deepfake.txt
, etc. files.de
-started file, then you want to search foregg.txt
next instead. To do that, you'll have to press another key, e.g.f
, to move to a new SS, then wait some time for it to switch to NS, before being able to presse
to begin searching foregg.txt
. This is why I used the 720ms interval, which should suit both slow typers and active searchers.Part 2
In this part I'll talk about some ideas of my own that WFE doesn't have. (applicable for both search functions)
đếm_cừu.txt
should be searchable withdem_cuu.txt
. The conversion can be achieved by usingnormalize
function on string, as in this article. Idk but I think that even Chinese can be search using this method, as I heard they write words by typing Latin pronunciations before converting them to Chinese characters.Part 3
In this part I'll talk solely about the search bar.
filepath
of the search's results. However, they all share a root (i.e. the folder in which you're searching). Therefore it's better to omit that part.At last I found out that you missed this bar:
"What's the role of it?", you may ask. When you double click an edge of a column, it will expand that column to fit all the
filename
, which is really convenient.Beta Was this translation helpful? Give feedback.
All reactions