Let's be modest, here are some mind-blowing ideas!

Features wanted...
jacky
XYwiki Master
Posts: 3106
Joined: 23 Aug 2005 22:25
Location: France
Contact:

Let's be modest, here are some mind-blowing ideas!

Post by jacky »

Here are my "top wishes" of the moment -- or those I keep wishing were there and so I'd like to mention them (again) because it'd be great to have them, so I feel like pressuring Don to commit to it while he's drunk :P

:arrow: Bring report() to the next level

Yeah, not very modest. But here's one thing I'd love to see for function report() : an additional parameter to be a |-separated list of source items. That way, instead of having to go to a location and select files, we could just put their names in! Awesome, plus we can do items on multiple locations without running search, or use it as function to test whether or not a file/folder exists with something like

Code: Select all

msg (report("{Name}",,"C:\file.txt") == "") ? "File is missing!" : "File exists!";
Not only that, but with wildchars support we could list content of a folder without having to go there! I can already see all the places I could use this... also nice then would be a sort order support, and that could be added I think by ending the list with a / (not valid otherwise) and then the same we would give command sortby, so that gives us something like

Code: Select all

report("{Fullname} - {Size}<crlf>", , "C:\WINDOWS\*.dll|C:\WINDOWS\system32\*.dll/mod,d");
I realize that today report is based on List content and as such this would mean more work, as XY would need to "scan" places to gather info to be used on the report, but it would totally be worth it IMO. (Of course, I don't have to do nothing to get it done, I'll only benefit it, so my opinion can be biased, but still, I'm always right, remember? :mrgreen: ;))

:arrow: From text to hypertext...
Or: To Infinity And Beyond!

I'll repeat TheQwerty's idea of a function html() to show a window with HTML content, because it'd be pretty cool. It should probably work with a file path/name to load up or raw content (HTML code) directly. It'd be nice to generate reports and show them directly in XY without having to save them and open a browser, or be able to use things like color, bold, italic, etc to show results of a script execution...

Also, noticed I said function? -- Yeah, because I'm already dreaming of it like so : by default (user clicks "Ok") it returns nothing ("woohoo!", Homer says), but the HTML code would support things (in links) like "xys::42" or "xys::foo bar" and, when clicked, it would close the window and the function would then return whatever was specified (42, foo bar) That way our scripts could have different actions based on what the user clicked, which would be kick-ass (especially for a few scripts of mine!) and a nice way to allow show a list of multiple choices with easy selection, instead of using input with "enter 1 for foo, 2 for bar, 3 for foobar, ..." -- and I'm not even talking about using javascript to "hack" a form and create a hidden xys::link with results of a selection made of checkboxes, etc and generate a click on it! Oh God, I can already see how much easier it'll make my scripts, a real single configuration dialog instead of an endless succession of pop-ups and a list of IDs to be remembered...

Excuse me while I'm drooling at the endless mind-blowing possibilities... :!:
(Seriously, I hadn't fully realized what this would allow one to do until last night when I first drafted this, and I couldn't sleep thinking of what it would allow us to do. I think this just became my #1 wish/dream/bribe/whatever it takes :P ;))

:arrow: Wait for it...

I know it's been mentioned before, but it'd be cool if open/openwith/run would support to wait for the process to be over. I'm pretty sure that can be done through APIs, and it would allow to automate a bunch of tasks a lot more than showing a pop-up that says "Press OK when <app> is done..." which also requires to check in to press OK every so often.

XY could simply show a little modal window (to block XY usage in the mean time, of course, that's the plan) with a little "Please wait..." message (unless there's/as well as, an optional short text from script, to describe what's going on), and a button to "Abort" -- to abort process (if that can be done, send a Kill message or something?) and abort script execution, so we can get XY back in case something goes wrong.

I know there's the case of errors, etc but I still think this would be very useful, and if one doesn't feel comfortable without error return code one can either use a msg to manually allow (or not) to continue script execution, or rely on LOG file that can now be read from scripting...

:arrow: And now, the big stuff!

lol, now things get heavy, so hang on! I'd like a new function strrepeat(<string>, <nb>) that would return a concatenation of <string> repeated <nb> times.

Also, to actually be big, if toolbars work so well it's because catching colorful icons is much easier/faster than reading text, and that's why it would really be nice to have the ability to use icons on script files -- specifying on the caption/label line the path/file,index to the resource.

Oh yeah, and dual pane, too! :P
:mrgreen:
Proud XYplorer Fanatic

graham
Posts: 457
Joined: 24 Aug 2007 22:08
Location: Isle of Man

Re: Let's be modest, here are some mind-blowing ideas!

Post by graham »

Jacky,

are you expecting these for Jan 1 - a challenge for Don who has been busily drinking and coding at the same time as eating his festive food - give the man a rest - he is seeing double (dual Pain) atm - that all said I was disappointed that a beta did not appear on Xmas day -

j_c_hallgren
XY Blog Master
Posts: 5826
Joined: 02 Jan 2006 19:34
Location: So. Chatham MA/Clearwater FL
Contact:

Re: Let's be modest, here are some mind-blowing ideas!

Post by j_c_hallgren »

jacky wrote:Here are my "top wishes" of the moment -- or those I keep wishing were there and so I'd like to mention them (again) because it'd be great to have them, so I feel like pressuring Don to commit to it while he's drunk :P
:arrow: And now, the big stuff!

Also, to actually be big, if toolbars work so well it's because catching colorful icons is much easier/faster than reading text, and that's why it would really be nice to have the ability to use icons on script files -- specifying on the caption/label line the path/file,index to the resource.
For me now, the icon one is the one that I could see as most useful to the most people of these items.

But...actually...what I'd love to see is native/built-in ability to do what your "MiniTree" script does, as that makes using them much easier...
Still spending WAY TOO much time here! But it's such a pleasure helping XY be a treasure!
(XP on laptop with touchpad and thus NO mouse!) Using latest beta vers when possible.

graham
Posts: 457
Joined: 24 Aug 2007 22:08
Location: Isle of Man

Re: Let's be modest, here are some mind-blowing ideas!

Post by graham »

jacky dreamt:

Wait for it...
I know it's been mentioned before, but it'd be cool if open/openwith/run would support to wait for the process to be over. I'm pretty sure that can be done through APIs, and it would allow to automate a bunch of tasks a lot more than showing a pop-up that says "Press OK when <app> is done..." which also requires to check in to press OK every so often.

XY could simply show a little modal window (to block XY usage in the mean time, of course, that's the plan) with a little "Please wait..." message (unless there's/as well as, an optional short text from script, to describe what's going on), and a button to "Abort" -- to abort process (if that can be done, send a Kill message or something?) and abort script execution, so we can get XY back in case something goes wrong.

I know there's the case of errors, etc but I still think this would be very useful, and if one doesn't feel comfortable without error return code one can either use a msg to manually allow (or not) to continue script execution, or rely on LOG file that can now be read from scripting...
This is I think one of THE most important things needed to further the cause of scripts, so I wish it too - a small pop up that saying 'waiting for current process xxxxxxxxxx to complete before continuing' or just show a animated icon.

The other thing I would like to see in XY is a remove junk files option with user setting for included and excluded file types and folders - this I think is not bloat as it is a file management task used on a regular basis.

Finally, what I am most excited about is seeing how XY evolves - last years innovations were truly wonderful - just use a version 12 months old and compare!

jacky
XYwiki Master
Posts: 3106
Joined: 23 Aug 2005 22:25
Location: France
Contact:

Re: Let's be modest, here are some mind-blowing ideas!

Post by jacky »

graham wrote:are you expecting these for Jan 1
No, I wasn't, but if we have to wait that long to get it then fine, I'll wait a few more days... :mrgreen:
j_c_hallgren wrote:For me now, the icon one is the one that I could see as most useful to the most people of these items.
Yeah, this could be pretty cool. But so could the html() thing, maybe not to you as "scripter" if you don't script, but as user using script, it surely could. Also, pizza. I want some pizza, pizza is cool... and off topic. Sorry about that. :oops:
j_c_hallgren wrote:But...actually...what I'd love to see is native/built-in ability to do what your "MiniTree" script does, as that makes using them much easier...
Well, you know that's kind of the point of scripting, and people sharing scripts, to add functionality to XY. Ideally, some that are indeed useful... ;)
graham wrote:The other thing I would like to see in XY is a remove junk files option with user setting for included and excluded file types and folders - this I think is not bloat as it is a file management task used on a regular basis.
hmmm... I don't know exactly what you have in mind here, but it sounds more like something a script should do, doesn't it?

So, who wants pizza? 8)
Proud XYplorer Fanatic

j_c_hallgren
XY Blog Master
Posts: 5826
Joined: 02 Jan 2006 19:34
Location: So. Chatham MA/Clearwater FL
Contact:

Re: Let's be modest, here are some mind-blowing ideas!

Post by j_c_hallgren »

jacky wrote:
j_c_hallgren wrote:But...actually...what I'd love to see is native/built-in ability to do what your "MiniTree" script does, as that makes using them much easier...
Well, you know that's kind of the point of scripting, and people sharing scripts, to add functionality to XY. Ideally, some that are indeed useful... ;)
I do disagree just a bit, in that what you've added via that specific script is generic enough and potentially applicable to those users who may not care about scripting so as to be part of XY itself...prototyping it via script can help refine the concept but I'm still in favor of this migrating over at some point...since we've got search templates built-in, it's a variant of that concept, IMO.
Still spending WAY TOO much time here! But it's such a pleasure helping XY be a treasure!
(XP on laptop with touchpad and thus NO mouse!) Using latest beta vers when possible.

jacky
XYwiki Master
Posts: 3106
Joined: 23 Aug 2005 22:25
Location: France
Contact:

Re: Let's be modest, here are some mind-blowing ideas!

Post by jacky »

j_c_hallgren wrote:I do disagree just a bit, in that what you've added via that specific script is generic enough and potentially applicable to those users who may not care about scripting so as to be part of XY itself...prototyping it via script can help refine the concept but I'm still in favor of this migrating over at some point...since we've got search templates built-in, it's a variant of that concept, IMO.
First, I'm not saying I'm against it. But I might disagree with your "users who may not care about scripting", as I think that the point of scripts, or at least some of them, like snippets in the future, is also to give to users who don't care about it and don't intend to look into it and know how to create some themselves the ability to use the work of others.

About the MiniTrees script for example, I gave it to someone recently whom I know doesn't know nothing about XY scripting and I'm willing to bet isn't going to change that any time soon, if ever, because it doesn't interest him/he doesn't want to spend any time on that. But, giving him the file, he adds it to Catalog or whatnot and use it just as if it was a native feature of XY, and that's the point : Scripting isn't there just for people who script, but to benefit others as well.

Maybe Don plans on adding such features to XY in the future, and maybe he feels the current Last Saved/From History/etc are enough, especially since if you want more, there are scripts already "ready-for-use" to do the job, and if you want more, you can script yourself of course!
Of course, we won't find out any time soon, given how he's in Port Moresby and all... ;)
Proud XYplorer Fanatic

j_c_hallgren
XY Blog Master
Posts: 5826
Joined: 02 Jan 2006 19:34
Location: So. Chatham MA/Clearwater FL
Contact:

Re: Let's be modest, here are some mind-blowing ideas!

Post by j_c_hallgren »

jacky, I guess what triggered my comments about MiniTree script is that currently there isn't a way to access it (AFAIK) via context menu of MT icon on TB, ok? And that's the logical place that a user might expect to find those functions...so IF there was a way to hook it into that type of access, then leaving it as script would be somewhat more valid...but...that still leaves the issue of keeping script in sync w/releases if one doesn't use the auto process, so having code native would address that as well.

I'm not picking on you, as your work is fantastic, but just trying to look after the neophite/newbie user as well.
Still spending WAY TOO much time here! But it's such a pleasure helping XY be a treasure!
(XP on laptop with touchpad and thus NO mouse!) Using latest beta vers when possible.

jacky
XYwiki Master
Posts: 3106
Joined: 23 Aug 2005 22:25
Location: France
Contact:

Re: Let's be modest, here are some mind-blowing ideas!

Post by jacky »

Oh don't worry, I didn't think you were picking on me (...or were you? :P ;)) I'm just saying that I don't agree we should say that newbies can't benefit from/use scripts. One could, even without any knowledge of scripting and how it works, just using it as a way to get additional features. I meant that in general, not just our case here.

About MiniTrees, maybe you're right and it should be there (in TB' ctxt menu), I'll admit that I don't use that one myself (I use my script instead ;)), and if Don feels like adding it I'm sure it'll be there. (Although, it should probably be somewhere else as well then. BTW it reminds me I'm also not sure I like that some feature (e.g. Mini Tree From History) are only available from a TB ctxt menu. I think they should be available somewhere else as well, it's not very newbie-friendly if you ask me, to hide them like that, plus they should at least be on "CKS|Mini Tree" so that they have a #ID (also allowing them to be included on scripts, to "close the loop" [-- is that one right?]).)

And you know, in the future we'll have CTB so one could create its own TB button for Mini Tree, including such items (pointing to scripts) as part of the ctxt menu. Plus, at a later date it'll be possible to get a snippet to have it create that one CTB button for you!
Proud XYplorer Fanatic

admin
Site Admin
Posts: 66323
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Let's be modest, here are some mind-blowing ideas!

Post by admin »

I started with the big stuff: strrepeat.

The other little things are also mind-blowing and should really be added some time. :wink:

jacky
XYwiki Master
Posts: 3106
Joined: 23 Aug 2005 22:25
Location: France
Contact:

Re: Let's be modest, here are some mind-blowing ideas!

Post by jacky »

admin wrote:I started with the big stuff: strrepeat.
hehe... Thanks. :)
admin wrote:The other little things are also mind-blowing and should really be added some time. :wink:
Yep, they sure should! ;) 8)
Proud XYplorer Fanatic

admin
Site Admin
Posts: 66323
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Let's be modest, here are some mind-blowing ideas!

Post by admin »

jacky wrote::arrow: Wait for it...

I know it's been mentioned before, but it'd be cool if open/openwith/run would support to wait for the process to be over. I'm pretty sure that can be done through APIs, and it would allow to automate a bunch of tasks a lot more than showing a pop-up that says "Press OK when <app> is done..." which also requires to check in to press OK every so often.

XY could simply show a little modal window (to block XY usage in the mean time, of course, that's the plan) with a little "Please wait..." message (unless there's/as well as, an optional short text from script, to describe what's going on), and a button to "Abort" -- to abort process (if that can be done, send a Kill message or something?) and abort script execution, so we can get XY back in case something goes wrong.
Okay, since you are a bit more into scripting than me: How would you integrate this into the syntax? Add a parameter "wait" to open/openwith/run, and when wait==1 then only continue when the process has terminated?

jacky
XYwiki Master
Posts: 3106
Joined: 23 Aug 2005 22:25
Location: France
Contact:

Re: Let's be modest, here are some mind-blowing ideas!

Post by jacky »

admin wrote:Okay, since you are a bit more into scripting than me: How would you integrate this into the syntax? Add a parameter "wait" to open/openwith/run, and when wait==1 then only continue when the process has terminated?
Yep, exactly. Well, except that as I said, the way I envisioned it there would be a little window while XY is waiting (to clearly indicate one cannot continue using XY, start other scripts, etc - Plus abort the wait/script execution), and it might be nice if the script could add at least one line in there, to describe what's going on.
So either add another param <msg> for that text, or make it that the new param must be !="" to trigger the wait, and then it is the message shown on the "waiting window" (which, I guess, doesn't prevent to say if ==1 then the message default to a simple "Please wait...").
Proud XYplorer Fanatic

graham
Posts: 457
Joined: 24 Aug 2007 22:08
Location: Isle of Man

Re: Let's be modest, here are some mind-blowing ideas!

Post by graham »

As see this rather than a wait command it should be an internal (XY) command completion test to check if the previously executed command has completed before moving on and show a small window or animated icon indicating that it is working - of course a user escape to terminate would be good especially if the task in hand has hung or say in the case of a download isn't going to happen.

In my very limited exposure to scripting I found that on occasion simple script commands like file deletion could take varying times to complete and any following XY script line needed to be aware of this if it then assumed the delete happened.

I do not understand how XY scripts communicate with the API but if it could get feedback from the API as to completion as a matter of process then scripts could be written with the knowledge that instructions process in expected order. Maybe this is impossible.

jacky
XYwiki Master
Posts: 3106
Joined: 23 Aug 2005 22:25
Location: France
Contact:

Re: Let's be modest, here are some mind-blowing ideas!

Post by jacky »

graham wrote:As see this rather than a wait command it should be an internal (XY) command completion test...
Just to be clear, the mention of "wait" above wasn't for/as a new command, but a new parameter to existing commands, one that would indeed, when used, make sure the process has finished its execution before the next command in script gets executed -- as opposed to currently, when it's executed right after the process is launched, and while it's still running (or just starting up).
Proud XYplorer Fanatic

Post Reply