New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature request] Open repository in editor #280

Closed
pawelkondraciuk opened this Issue May 11, 2018 · 7 comments

Comments

Projects
None yet
4 participants
@pawelkondraciuk

pawelkondraciuk commented May 11, 2018

Add possibility to open a current repository in the selected editor just below "Open in Terminal", similar to merge conflict button (merge in "Editor")

image

@DanPristupov

This comment has been minimized.

Contributor

DanPristupov commented May 11, 2018

What would be the 'selected editor'? You mean to open whole repository in text editor like Sublime?

@pawelkondraciuk

This comment has been minimized.

pawelkondraciuk commented May 11, 2018

@dmay

This comment has been minimized.

dmay commented May 11, 2018

Been there :) #76

@kervich

This comment has been minimized.

kervich commented May 13, 2018

As long as you have your project file added to Git repository and your system configured to open that kind of file everything works OOTB: contol-click on the project file and select 'Open' from the popup menu (or 'Open With...' if you have a few apps configured to open that file). There's nothing to do with Fork here.
forkshot

@DanPristupov

This comment has been minimized.

Contributor

DanPristupov commented May 13, 2018

@kervich I think @pawelkondraciuk meant environments which don't have a dedicated project file (like node-js, C/C++, etc).

I can add general editors to the 'Open in' toolbar dropdown (if some of them installed):

  • Sublime
  • VS Code
  • Atom
  • MacVim (?)

Dedicated IDE's could be added using custom actions (will be introduced in the next update).

@kervich

This comment has been minimized.

kervich commented May 13, 2018

@DanPristupov I got it, for that you may list installed applications capable of editing public.source-code files (or those with UTIs derived from public.source-code) and capable of opening public.directory/public.folder UTIs at the same type - I guess that's a single query to LaunchServices API on macOS. In my system that would be TextMate and BBEdit for general directory/folder types, Xcode and VSCode would only care to open some specific UTIs that are derived from com.apple.package - so you might want to look for those in the top-level of the directory as well (yes I know that both VSCode and Xcode will easily open a directory if I "ask" them to from the command-line, but that's a thing they can do, which is not something they did register to do, so I wouldn't count on their ability to open a folder just because we all know they can do it)

@DanPristupov

This comment has been minimized.

Contributor

DanPristupov commented May 21, 2018

Ok, I implemented this. Now you can open the current project in VSCode, Sublime or Atom (if they are installed).

2018-05-21 at 18 31

You can try it in 1.0.67 (#287)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment