New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Collections of files should never get an identifier. #1112
Conversation
Here's a big rant about that : My question is : who is in favor of beefing up QSCollection, adding a real QSCollectionType, and moving the bulk of QSCollectingSearchObjectView to QSCollection, tweaking things like |
There are still some issues still w.r.t encapsulating commands. Try with that : |
@skurfer will be shocked by this sneaky pull request Etienne. He's been working on it for the past few days. It may be worth popping onto IRC when we're all about to discuss the best ways to go about this, and finding out where Rob's got to on his work. I think having a QSCollection class sounds like a good idea, first off though. I'm intrigued as to how this fixes the problem, interesting! So if you don't set an identifier for a collection, then what gets set as the identifier in the trigger's .plist? |
Heh, I'm somewhat baffled too that it looks this simple ;-). It's just that the method I'm removing would set an identifier on collections and the Trigger
|
This change makes sense to me (though I haven't had a chance to test its practical effects). We talked about it on IRC first @pjrobertson, so it wasn't a complete shock. :-) Though, the reason I haven't gotten very far on it myself is I've been looking for the "big fix" that takes care of 6 or so problems. Not just the one. I've been thinking about it over the weekend and I created #1115 to discuss the direction we should take (rather than clutter up this small pull request with a long, involved discussion). I'll try this out tomorrow. |
I'll be about on IRC tomorrow, if there's any chatting to do. On 17 September 2012 04:54, Rob McBroom notifications@github.com wrote:
|
OK, I found I couldn't actually test this because when you encapsulate multiple applications, only the most recent one is replaced in the first pane. The others remain selected along with the new command object, preventing the right actions from appearing. Adding this to
|
Yeah, that's what I was trying to explain in my second comment above ;-). The new commit should fix that in QSCollectingSearchObjectView directly. |
OK, that seems to fix it. I wonder if that would allow us to remove some of the other calls to A question on that: All of the existing actions expect a QSObject. How will we pass a collection to an action? Will it be a subclass of QSObject, or will there be some method on it that returns a QSObject representation? |
I replied on #1115 about the QSCollection API. |
Collections of files should never get an identifier.
Fixes #555.
This makes it possible (again) to create triggers with multiple direct objects (like
Adium + Colloquy
>Run
). There are still wonky things going up, like if you reedit the trigger, the collected applications will get added again to the list.