SKaplanOfficial / Raycast-Pins

Pins extensions for Raycast
MIT License
18 stars 0 forks source link

Open file by shell #8

Closed VaJoy closed 5 months ago

VaJoy commented 7 months ago

I tryna use TextEdit to open a selected file in Finder by running the following placeholder:

{{shell: open -a TextEdit {{selectedFile}}}}

But this placeholder doesn't work, how can I fix it?

VaJoy commented 7 months ago

By the way I've try all of these:

{{copy:file path:{{selectedFile()}} }}

{{copy:file path:{{selectedFile}} }}

{{copy:file path:{{selectedFile()}}}}

{{copy:file path:{{selectedFile}}}}

But none works (get empty from selectedFile).😭

nrome-n commented 5 months ago

Same issue all the place holders i tried are returning empty ex: cd {{currentDirectory}}

SKaplanOfficial commented 5 months ago

There was a problem with {{selectedFiles}} and {{currentDirectory}} where they weren't getting replaced correctly (unexpectedly getting replaced with an object instead of a string). Should be fixed once https://github.com/raycast/extensions/pull/13118 passes review.