iandol Posted July 6, 2018 Share Posted July 6, 2018 We can already quicklook normal Alfred entries, but I would really like to be able to quicklook entries in the script filter output. I realise this is not straightforward, in that the script filter JSON would need to be modified contain a new field that would be the file target Alfred would then send to `qlmanage -p` — but if we could select an filter entry, ⌘Y it and get the quicklook window without losing focus of the Alfred list it would be phenomenal. My idea is that if there is no JSON entry or it is empty, then ⌘Y does nothing (i.e. nonbreaking backwards compatible), if it is present and a file path, then QL that file. Thanks for your consideration! Link to comment Share on other sites More sharing options...
deanishe Posted July 6, 2018 Share Posted July 6, 2018 It already works with Script Filter/List Filter output. arg just needs to be something Quicklook understands, like a filepath or a URL. iandol 1 Link to comment Share on other sites More sharing options...
vitor Posted July 6, 2018 Share Posted July 6, 2018 Script Filter JSON Format documentation. Look for quicklookurl. deanishe and iandol 1 1 Link to comment Share on other sites More sharing options...
deanishe Posted July 6, 2018 Share Posted July 6, 2018 14 minutes ago, vitor said: Script Filter JSON Format documentation. Look for quicklookurl. Bloody hell. I completely forgot about quicklookurl! I just checked my Python and Go libraries in a panic, and fortunately, the amnesia was temporary: I've implemented quicklookurl in both. So, the skinny is: If quicklookurl is set, Alfred passes that to Quicklook. If it isn't set, Alfred passes arg to Quicklook. quicklookurl is a bit of a misnomer, as it can also be a filepath. iandol and vitor 1 1 Link to comment Share on other sites More sharing options...
iandol Posted July 8, 2018 Author Share Posted July 8, 2018 As always, Alfred is one step ahead of me, thank you so much!!! Link to comment Share on other sites More sharing options...
iandol Posted July 28, 2018 Author Share Posted July 28, 2018 Hi, I have a new question: if I want to pass more than one file to QL via Alfred, is this possible, and how? This is possible for QL (pass multiple files via qlmanage -p for example), but Alfred may not parse the url string to pass as seperate items. On the command line (qlmanage -p) using a single string input, I tried separating within the string using space, comma, colon but none worked (you have to use multiple inputs). Thanks for any help! Link to comment Share on other sites More sharing options...
vitor Posted July 28, 2018 Share Posted July 28, 2018 Including separators in the string will make Alfred interpret them as part of the path. For Alfred to take multiple items, it would accept an array as the argument, and it appears it does not. iandol 1 Link to comment Share on other sites More sharing options...
iandol Posted July 28, 2018 Author Share Posted July 28, 2018 Thank you vitor. So I hope Andrew will be able to update Alfred to read an array of paths to pass to QL. ?♂️? Link to comment Share on other sites More sharing options...
vitor Posted July 28, 2018 Share Posted July 28, 2018 59 minutes ago, iandol said: So I hope Andrew will be able to update Alfred to read an array of paths to pass to QL. That’s likely not on the feature roadmap so you should open a feature request. iandol 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now