Bug 342096 - QtScript API to allow scripts to react in custom ways to double clicking items in collection pane
Summary: QtScript API to allow scripts to react in custom ways to double clicking item...
Status: REPORTED
Alias: None
Product: amarok
Classification: Applications
Component: Collection Browser (show other bugs)
Version: 2.8-git
Platform: Other Other
: NOR wishlist
Target Milestone: 2.9
Assignee: Amarok Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-21 21:51 UTC by Be
Modified: 2015-01-04 13:24 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Be 2014-12-21 21:51:40 UTC
Currently, when double clicking an item in the collection pane, Amarok (tries to) add it to the playlist. It would be helpful if this action could be disabled and scripts could handle this action in their own way. For example, I want to display a list of SoundCloud users at level 0. It does not make sense for Amarok to try to add a user to the playlist. Instead, I want this user to be used as a search term when double clicked.

One way to implement this could be to have Amarok call the populate function for the script with level -1 when level 0 items are double clicked or Enter is pressed when a level 0 item is selected. Perhaps Amarok would only do this for level 0 items without a playableUrl set but with callbackData set (see also: Bug #342093).

Reproducible: Always
Comment 1 Myriam Schweingruber 2014-12-22 08:50:37 UTC
Well, that was changed a while ago and already triggered quite some discussion on the developer ML, please search the archives, and I doubt it should be handled or changed by scripts.

Instead of writing a script, did you consider writing an actualy Service for SoundCloud instead? Would make much more sense.