Open current folder on shortcut icon
Check for existing issues
- [X] Completed
Describe the feature
Maybe it's a setting that I'm unaware of, but I can't configure a shortcut on the finder to open Zed in the current folder (like when you drag&drop on the icon)...
If this is not possible, it would be an interesting feature
If applicable, add mockups / screenshots to help present your vision of the feature
It's possible :) Inspired by this
- Open Automation
- Choose "Application"
- Search for "Run Shell Script" and Drag & Drop onto workspace on the right
- Enter this command (assuming you have zed installed with
homebrew)
finderPath=`osascript -e 'tell application "Finder" to get the POSIX path of (target of front window as alias)'`
/opt/homebrew/bin/zed "$finderPath"
Should look like this:
- Save file with the name of your choice
- Add it to toolbar (like this)
Optional: follow the link above to change icon image
Final result:
https://github.com/user-attachments/assets/ea9fed34-8869-4ae9-82ee-a5f37ed96b32
Thanks @dtonda8!
@rcarlier https://github.com/zed-industries/zed/issues/14388#issuecomment-2226876648 satisfy your use-case?
Yes ! I have installed via download, so the automator line must be:
finderPath=`osascript -e 'tell application "Finder" to get the POSIX path of (target of front window as alias)'`
/Applications/Zed.app/Contents/MacOS/zed "$finderPath"
Many thank's
Going to close this out, as there is a workaround provided. Im not exactly sure what we could do to support this without doing the workaround, as I'm not familiar with the OS <-> Zed layer of code, but if we get enough requests for this, we can look into it.