atom-windows-context-menu icon indicating copy to clipboard operation
atom-windows-context-menu copied to clipboard

Add Open Folder in Atom Context Menu

Open russlescai opened this issue 11 years ago • 10 comments

It would be great if we could right click on a folder in Windows Explorer (or in a folder, right click on the window in explorer) and click "Open Folder in Atom."

Since atom is project-based, this is how I usually open atom.

Could this be included?

russlescai avatar Jul 26 '14 23:07 russlescai

It is.

https://github.com/Zren/atom-windows-context-menu/blob/master/lib/windows-context-menu.coffee#L47

Or are you talking about somewhere else?

Zren avatar Jul 26 '14 23:07 Zren

Ahhh - I saw that when I first installed atom, however since I updated it (I first installed 0.115.0, I now have 0.119) I haven't seen it. I have re-installed your package a few times since then to get it working, but I still can't see it. Anything else I could try?

Fyi: Windows 8.1 x64 Atom (currently installed 0.119.0) Installed through chocolatey.

Thanks, appreciate your quick reply. :)

russlescai avatar Jul 27 '14 00:07 russlescai

Also, I am able to see the "Open with Atom" menu item, just not the Open Folder in Atom item.

russlescai avatar Jul 27 '14 00:07 russlescai

Ok, I think I have worked out what is going on:

When I updated atom (using chocolatey, cup atom), the context menu items broke (still pointed to previous file location).

When I reinstalled the package to try and fix them, they didn't update. I just tried running atom as administrator (UAC), then reinstalled it, worked fine.

So I think I encountered two issues:

  1. Updating from chocolatey doesn't appear to update the file location of the context menu items.
  2. Installing the package in atom, not running as administrator may not update context menu items.

russlescai avatar Jul 27 '14 00:07 russlescai

Sounds like it removed the old registry keys but didn't install the new ones when it noticed that atom.exe moved. Open with Atom is caused by installing chocolatey.

Zren avatar Jul 27 '14 00:07 Zren

All good - at least now I know how to get it working again. :) Thanks again for the package, very helpful!

russlescai avatar Jul 27 '14 00:07 russlescai

Hello, I installed this useful package thanks for your advice on atom forums. However, I encountered a similar problem. After installing (through atom->settings) I only have the context menu for files but not for folders.

Any ideas? Thanks, oshmoz.

oshmoz avatar Aug 20 '14 19:08 oshmoz

Launch atom as administrator for now. Or run the powershell script.

Zren avatar Aug 20 '14 19:08 Zren

Thank you for your quick reply, I can only find powershell scripts for 0.115, where are the updated ones?

oshmoz avatar Aug 20 '14 19:08 oshmoz

/assets/install_chocolatey.ps1 is the powershell script for a chocolately installation. The script will automatically install for the latest Atom you have installed. The .reg file is there as an example should the location be elsewhere. Sorry if it was confusing.

Zren avatar Aug 20 '14 19:08 Zren