Page 2 of 2

Re: run external program with parameters

Posted: 23 Jun 2009 16:41
by j_c_hallgren
TheQwerty wrote:To be fair I did comment that it would likely still need an option to appease everyone that prefers the current behavior, but I really do believe that it's not actually needed. Without it, current users will do some groaning about changing their habits, but they'll have lost zero functionality.
Yes, I saw what you said, and I was just commenting that if a tweak can stop any/all groaning or bitch'n, then it's likely worth it...since some ppl have habits that are very hard to break!

Addendum: And I'd advocate making TheQwerty's method the default with the tweak only being a way to turn part of it off.

Re: run external program with parameters

Posted: 23 Jun 2009 16:42
by serendipity
TheQwerty wrote:
zer0 wrote:
TheQwerty wrote:Actually... I'll flip-flop, because I think we need to quit pressuring Don to add tweaks and options (not that I actually will stop. :P)
However, I fear that the more people move over to XY from WE the more likely people will ask for features of WE to be present. How often have we read "...I can do...in Windows Explorer, but in XY...". We're creatures of habit, plain and simple. Adding tweaks and options is the best way to take care of "WE compatibility priests", doing so means that only the asked-for features are integrated instead of blindly cloning the whole lot -> less waste and XY bloat.
Did you read the rest of my post? I outlined a very good compromise that would eliminate any need for a tweak or option. The difference between executing and selecting the item would be all of 1 character, which Don already said he'd want to make configurable anyway (though I disagree that any option is needed here).

Adding more and more configuration options is not the optimal solution.
1) It makes an overly complicated GUI/setup for the user.
2) It typically makes more of a mess for the dev.
3) It wastes huge amounts of time when tracking down bugs and offering support.

It is far better to implement WEs features in a way that is smarter and can be better extended than to have hundreds of settings that define (and typically lock you into) certain behaviors.
I am with TheQwerty on this, its always elegant to be able to do something on the fly (without having to go to config and enabling that option). As there was a conflict if typing a .exe should take you to that location or execute it, it would be ideal to be able to do either of them without having to remember what config was set 2 days back. And TheQwerty's way would eliminate that.
And I guess either ways (config or prefix symbol) the code has to be there inside XY, having a config will not remove the code or make the code on the fly. As long as users are well informed that "?" finds file or "|" filters files its alright.
In short, I am against config on this issue. Primary purpose of AB is to locate files, anything more fancier needs to be done via other means.
By the way, I am tired of "When WE can do it why not XY", well WE has that little dog in the search window, do I want it? Hell yes! come on its cute. Maybe we can dress it up too, better than WE. :P

Re: run external program with parameters

Posted: 23 Jun 2009 17:40
by zer0
TheQwerty wrote:Did you read the rest of my post? I outlined a very good compromise that would eliminate any need for a tweak or option. The difference between executing and selecting the item would be all of 1 character, which Don already said he'd want to make configurable anyway (though I disagree that any option is needed here).
Yes, I did. And I didn't mean to undermine your suggestion in any way, I was just hinting towards some way of providing the functionality that WE users may desire. Yours looks very good indeed.
TheQwerty wrote:It is far better to implement WEs features in a way that is smarter and can be better extended than to have hundreds of settings that define (and typically lock you into) certain behaviors.
One way or the other, we're adding more settings for people to select from. Being smart about it is, of course, the key factor, but we shouldn't be too smart, being smart but keeping it simple is also a compromise we have to think of.

Re: run external program with parameters

Posted: 06 Jan 2010 20:11
by TheQwerty
BUMP BUMP!
*snip* I take back my additional wish/suggestion.. The below is enough! *snip*

Please Don! Pretty Please! :cry:
TheQwerty wrote:Actually... I'll flip-flop, because I think we need to quit pressuring Don to add tweaks and options (not that I actually will stop. :P)

With some recent changes we have a decent groundwork to achieve a better system, which allows easy access to both and eliminates the need for an option (assuming we can break current habits, though there could still be an OnExactMatch tweak)...

Essentially, the address bar will take the form:
'[Location[\Item]][Executor[Term]]'
or
'[::]Quick Script;'

Default behavior:
If you enter a location it browses to that location.
If you enter the exact address of a file, it opens that file.
If you enter '::...' or have the recognize scripts without '::' tweak enabled, it tries to perform the script.

Then we have the following special executor patterns:
'location>term' = Quick Spot
'location<term' = Quick Select
'location|term' = Quick Filter
'location?term' = Quick Find

In each of these cases the term may contain multiple parts separated by ';' or '|', and the location may contain the '*' wildcard.

Now the executor patterns cannot be combined into a single call (you can't quick find and quick filter all at once), but if the location is omitted (so the AB value starts with the executor) they will be added to the current state.


I know this breaks the new Type-ahead find in address bar/spot function but I think if the change was made now it would be acceptable. And while I'd prefer '>' was for Quick Select it was pre-established for Spot so no point in changing it.


Thus if you enter:
"C:\windows\" = Browse location "C:\windows."
"C:\windows\notepad.exe" = Open "notepad.exe."
"C:\windows>notepad.exe" = Browse location "C:\windows" and Spot "notepad.exe"
"C:\windows<notepad.exe" = Browse location "C:\windows" and Select items matching "notepad.exe"
"C:\windows|notepad.exe" = Browse location "C:\windows" and apply VF to show items matching "notepad.exe."
"C:\windows?notepad.exe" = Search location "C:\windows" for "notepad.exe."

Or you could enter in sequence:
"C:\windows?note*pad"
"|*.exe"
">notepad"
"<notepad01.exe"

Which would:
1) Search "C:\windows" for anything matching "note*pad".
2) Apply a visual filter to the results so that only items ending with ".exe" are shown.
3) Spot (highlight) all items containing "notepad".
4) Select items matching "notepad01.exe".


Yep.. I think that would rock.
admin wrote:Yep, not bad. Not bad at all! Especially the Quick Select is brilliant. :D

However I (still) don't like the part: "C:\windows\notepad.exe" = Open "notepad.exe." I would run apps thru the AB only if the user actively allows it by a new option "blah"... so, yeah, with an additional little checkbox I'm with you, WE compatibility priests!

Bump me later...

Re: run external program with parameters

Posted: 06 Jan 2010 20:49
by admin
TheQwerty wrote:BUMP BUMP!
I still like it, but the time has not come yet.