catharsis / spotifile

FUSE file system for Spotify
BSD 3-Clause "New" or "Revised" License
144 stars 7 forks source link

Add search capabilities #3

Closed catharsis closed 8 years ago

catharsis commented 9 years ago

I'd like to see if implementing a "search" file with ioctls (for the various types of searches supported by libspotify) could be a way forward as a story for searching. Such an entity could materialize directories in the various browse dirs, depending on the type of result and return a list of paths to those "result" directories.

This would probably benefit from some kind of script to invoke the correct ioctls based on some parameter. I'm imagining something like:

spotifile search --artist "Refused"

catharsis commented 9 years ago

@chelmertz suggested utilizing something like mkdir to initiate searches. I kindof like the KISS-iness of that idea.

Something like mkdir search/query would then create a directory query, with the results as its content.

However, this would make it pretty hard to search for something containing a slash /; though that's an issue that needs to be dealt with regardless.

catharsis commented 8 years ago

23784b8303cf16 implements this. I'm closing this general issue, in order to make way for more use-case specific issues.