Jump to content

Escape blank space from the copied path


Recommended Posts

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:

 

Screen Shot 2017-05-22 at 12.42.17.png

 

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

@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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...