homever Posted May 22, 2017 Share Posted May 22, 2017 For folders and files have spaces in it, can Alfred escape those blanks with backslash so I can paste directly in Terminal? The escape option in Alfred preference does not seem to work for me. Link to comment
Vero Posted May 22, 2017 Share Posted May 22, 2017 @homever Where are you copying the path from? This refers to using File Navigation, then pressing the right arrow to see file actions, as shown below: If File Actions are new to you, you can find out more here: https://www.alfredapp.com/help/features/file-search/#file-actions Cheers, Vero Link to comment
homever Posted May 22, 2017 Author Share Posted May 22, 2017 1 hour ago, Vero said: @homever Where are you copying the path from? This refers to using File Navigation, then pressing the right arrow to see file actions, as shown below: If File Actions are new to you, you can find out more here: https://www.alfredapp.com/help/features/file-search/#file-actions Cheers, Vero I use the File action shortcut "CMD+OPT+/ ". I believe it's the same. I wanna use the copied path directly in Terminal, but some of my files have blank space, causing Terminal lose target directory. So, if is there any option to turn on the 'escape blank space and convert to backslash'? Link to comment
Vero Posted May 22, 2017 Share Posted May 22, 2017 @homever 2 minutes ago, homever said: I wanna use the copied path directly in Terminal, but some of my files have blank space, causing Terminal lose target directory. So, if is there any option to turn on the 'escape blank space and convert to backslash'? What is copied to your clipboard when you select the "Copy path to clipboard"? It should appear in single quotes as is the case here: '/Users/vero/Desktop/BLOG POSTS/Example'\''s folder' I've tested this and it escapes as expected in Terminal, so I'd be interested in seeing exactly what's being copied to your clipboard, and what you're pasting to Terminal, so that I can help you further. Cheers, Vero Link to comment
homever Posted May 22, 2017 Author Share Posted May 22, 2017 Hi Vero, Thanks for the details. I might have deleted the the single quotes in the end. 59 minutes ago, Vero said: @homever What is copied to your clipboard when you select the "Copy path to clipboard"? It should appear in single quotes as is the case here: '/Users/vero/Desktop/BLOG POSTS/Example'\''s folder' I've tested this and it escapes as expected in Terminal, so I'd be interested in seeing exactly what's being copied to your clipboard, and what you're pasting to Terminal, so that I can help you further. Cheers, Vero Link to comment
Vero Posted May 22, 2017 Share Posted May 22, 2017 @homever So it's working fine for you now? Just want to confirm I can treat this as all sorted out Cheers, Vero Link to comment
homever Posted May 22, 2017 Author Share Posted May 22, 2017 @Vero Yes, problem solved. Thanks! Link to comment
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