Folder Drag And Drop Dock Icon Support

Hello

I want to be able to drag and drop folders onto the Cursor dock icon and have it open that directory, just like VSCode. Having to drag the folder, then type ‘cursor .’ is killing the vibe :joy:

12 Likes

Yes please!

Can’t you already do that by opening courser and then drag and drop the folder?

No, not on MacOS. Can’t drag a folder onto the icon on the dock.

1 Like

Unfortunately, we can’t drop anything on macOS, yet

Noted! Thank you for your suggestion!

Adding a +1 to this - recent VS Code convert and I catch myself trying to drop project folders onto the Cursor app icon multiple times a day. :grimacing:

I’ll +1 this, it is sad to be unable to drag files or folders on the app icon in mac os dock.

1 Like

Very much a nice to have & I like nice stuff. +1 here as well

Please add it. I use finder to find my projects and having option to drag folder is then just one drag away.

Really need this in my daily work

1 Like

+1 to this.

+1.

I’m surprised we still don’t have this option! Isn’t it native MacOS behavior, that VS Code and Sublime already supports?

I got same issue too.
I really want Cursor support drag folder to Dock icon to open.

Yes, +1. I have VSCode and other apps in my toolbar and dock so that I can drag/drop folders to the icon to open them. This works for all the other apps, just not cursor. Consequently I find myself still opening VSCode more often than not.

Screenshot 2024-10-17 at 10.44.51

And another +1 – feels like a bug really. (and I keep trying every other day hoping it must be fixed anytime).

+1 I need this now!

it’s been a year lezzgoooo this would be the best update ever

+1 This feature is the one I miss the most from Code.

In the meantime this feature is implemented, here’s a workaround I came up with. It’s simple to set up and it works for me. Follow these steps:

  1. Make sure you have the cursor command enabled, allowing you to launch the program from the terminal. This thread talks about how to do it.

  2. Open the Script Editor application and create a new script.

  3. Paste the following code:

on open droppedItems

 repeat with itemPath in droppedItems

  set folderPath to POSIX path of itemPath

  do shell script "export PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin; cursor " & quoted form of folderPath

 end repeat

end open
  1. Go to File → Export. Choose Application as the format and save it in the Applications folder with the name “Cursor Launcher” (or any name you prefer).

  2. Now, you can drag the icon from the Applications folder to the Dock. I’ve placed it right next to the Cursor icon.

  3. That’s it! Dragging a folder to this new icon will open it in Cursor.

Note:

This script worked perfectly for me, but I’ve never worked with Mac’s Script Editor before. You might need to tweak the script depending on your macOS version or system configuration.

I hope this works as a temporary solution until Cursor implements this functionality. :slight_smile: