|
Post by Admin on Jul 2, 2021 10:47:57 GMT
Uploaded a new beta version at the website. Direct link: gui4cli.dckk.net/20.03-Beta.zipChanges: - Fixed xTreeview drag/arrange - Re-re-re-corrected reqfile behavior (will get it right one of these days) - Now the color attribute will take precedence in owner LVs (if declared) - Updated Scied a bit - will now use UTF8 by default (can be set to ansi via menu, but why would you?) I've also included the "CascadiaCode" font, if you want to copy to your fonts, as well as 2 new "Prefs" files for Scied, which use it. This is the font used by Visual Studio c/c++. It's free and pretty nice. Here's how the "light" version looks
|
|
fer
New Member
Posts: 22
|
Post by fer on Jul 5, 2021 14:46:06 GMT
Hi Dimitris,
Reqfile is a difficult one when using network folders:
1. selecting a network folder returns the format \/<pcname>/<folder>/etc.. 2. strangely, copying a file to the returned path succeeds, as well as other file manipulations in that folder 3. using reqfile again with the returned path as initialDir fails, it always opens in "This PC" instead of the returned path 4. when using JOINFILE like: 'joinfile <returned path> <filename> <newfile>' then <newfile> has the correct format (//...) 5. after extracting the path of <newfile> and using this as initialdir then reqfile behaves correctly though the result is not.
I hope you're not getting an headache like I did...
fer
|
|
fer
New Member
Posts: 22
|
Post by fer on Jul 7, 2021 9:06:23 GMT
Hi Dimitris,
The most easy way to correct the result of 'reqfile dir "" $path path' is 'extract path unpc'. It works for ALL drives, not only network drives, so no need to remove it for local drives.
fer
|
|
|
Post by Admin on Jul 7, 2021 9:27:02 GMT
Hi Fer,
You're right, but reqfile is still not behaving as it should - in scied for example it is not opening at the path I'm passing to it - so I'm re-writing it for the 10th time, hoping to fix it...
I made the mistake of rewriting the code when I was doing the utf8 conversion and I can't get it to work like before. The windows function doesn't seem to behave like it says in the docs.
Anyway, it's true what they say I guess - If it works, don't fix it...
Dimitris
|
|
|
Post by Admin on Jul 9, 2021 17:08:08 GMT
Hi Fer, Can you try out this version? <-(right-click and "save link as..") I think I found the bug and re-worked reqfile. The "#" in front of the path is now disregarded - it didn't make sense anyway, the user can handle the paths Dimitris
|
|
fer
New Member
Posts: 22
|
Post by fer on Jul 10, 2021 9:27:21 GMT
Hi Dimitris,
The slash/backslash problem seems solved but 3 others have arisen:
1. After selecting a folder somewhere deep down the tree and then after reopening reqfile the list won't move to the selected folder 2. After manually moving to the selected folder the parent of the selected folder only shows the selected folder, all others do not show up. It only occurs when there are a lot of subfolders present. You can check this by selecting folder 'C:/Windows/system32/WinMetadata' and then reopening reqfile dir. Winmetadata is then the only subfolder in system32. 3. If I keep the name of the initialdir the same as the name of the path I get the problem of reopening reqfile always in the folder used at the start. That did not occur in the second last version. (See next post) Maybe because I'm normally used to name the variable of the initial path and selected path differently. After the usual retcode check I set the name of the initial dir to the name of the selected dir. I also put that name in the registry for future use. In your scied search.gui I see that you use the var path as initial dir, but the contents of path is always the same because of the xroutine getpath. So when I change the code to different varnames for initial dir and selected dir reqfile now opens in the last selected folder as expected. Was that maybe what you mentioned in your second last post ??
Fer
|
|
fer
New Member
Posts: 22
|
Post by fer on Jul 10, 2021 9:50:29 GMT
Hi Dimitris,
Minor correction: The second last version of reqfile dir also had the problem reopening in the wrong folder but I didn't notice because I always use different names for initial dir and selected dir.
Fer
|
|
|
Post by Admin on Jul 10, 2021 17:33:13 GMT
Hi Fer,
I've corrected an error which didn't set the variable if the path passed to reqfile was ""
I don't get the behavior with the subfolders (maybe it corrected itself with the above)
I'm still poking at it...
|
|
fer
New Member
Posts: 22
|
Post by fer on Jul 11, 2021 9:15:40 GMT
Hi Dimitris,
Found a very minor bug in Searchvar.
If the text to be searched contains special characters like accent aigu or accent grave then Searchvar returns a position number that is 1 higher for each special character.
Fer
|
|
|
Post by Admin on Jul 11, 2021 16:48:28 GMT
That's a bug - I'll fix it, thanks.
It's because utf-8 uses multiple bytes for each non-ascii character. Makes searching tricky...
|
|