deanishe Posted October 27, 2016 Share Posted October 27, 2016 The new-ish quicklookurl feature in the JSON feedback only works with URLs. The "standard" Quick Look feature (i.e. using arg) also works with filepaths. IMO, quicklookurl should also work with filepaths. It's a very handy feature, and not having it reduces the utility of quicklookurl considerably. Link to comment Share on other sites More sharing options...
Andrew Posted October 27, 2016 Share Posted October 27, 2016 @deanishe You can just bung a file URL in there such as: file:///Users/preppeller/Desktop/friday-night-movies/old-ladies-eating-cheese-in-the-70s.mov Cheers, Andrew Link to comment Share on other sites More sharing options...
deanishe Posted October 27, 2016 Author Share Posted October 27, 2016 I know, but that's quite a bit more complicated than using the filepath. Languages other than ObjC don't have all the convenience methods for turning paths into URLs and vice versa. You have to start messing around with network libraries instead, and I wouldn't know where to start trying to percent-encode something in bash. Link to comment Share on other sites More sharing options...
Andrew Posted October 27, 2016 Share Posted October 27, 2016 Fair enough - if you update to b749 it'll now accept / and ~/ paths and internally convert to a file url deanishe 1 Link to comment Share on other sites More sharing options...
deanishe Posted October 27, 2016 Author Share Posted October 27, 2016 Awesome. Thanks very much. So about those old ladies and their cheese… Andrew 1 Link to comment Share on other sites More sharing options...
vitor Posted October 28, 2016 Share Posted October 28, 2016 21 hours ago, deanishe said: I wouldn't know where to start trying to percent-encode something in bash. For future reference: perl -MURI::Escape -ne 'print uri_escape ($_)' <<< "{{input_text}}" And for the reverse: perl -MURI::Escape -ne 'print uri_unescape ($_)' <<< "{{input_text}}" Link to comment Share on other sites More sharing options...
deanishe Posted October 28, 2016 Author Share Posted October 28, 2016 I know how to do it in other languages. But starting a Perl/Ruby/Python interpreter for every result. Ugh… 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