Skip to content
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

clone option to directly clone into Jetbrains IDEs #22149

Closed
dozro opened this issue Dec 16, 2022 · 9 comments · Fixed by #29320
Closed

clone option to directly clone into Jetbrains IDEs #22149

dozro opened this issue Dec 16, 2022 · 9 comments · Fixed by #29320
Labels
type/feature Completely new functionality. Can only be merged if feature freeze is not active. type/proposal The new feature has not been accepted yet but needs to be discussed first.

Comments

@dozro
Copy link

dozro commented Dec 16, 2022

Feature Description

It would be nice to have a button like the "clone to VS Code" button for the IDEs made by JetBrains. GitLab already has a feature to clone a project to IntelliJ, so it is possible, furthermore I have already made a JavaScript to add these buttons in the browser (as seen in the screenshots section) and they work. Nonetheless, I think this (properly implemented) would be a useful feature for many.

Why?
It would make it much easier to clone them, you basically just have to enter the directory you want to clone it to in the presenting dialogue.

Best Regards.

Screenshots

image

@dozro dozro added type/feature Completely new functionality. Can only be merged if feature freeze is not active. type/proposal The new feature has not been accepted yet but needs to be discussed first. labels Dec 16, 2022
@silverwind
Copy link
Member

See #21123 for similar request. If these are additional URL protocols, they could be supported via either server- or per-user configuration, I suppose. But we can't really add every editor in existance to that dropdown.

@jolheiser
Copy link
Member

I think a config approach would be ideal because, even to note from your screenshot, JetBrains has way more IDEs than that. 😅

@silverwind
Copy link
Member

silverwind commented Dec 16, 2022

Yeah I could see a user config section like "My Editors" where users could define URL protocol and a name for each of their editors. Maybe also an image (ideally SVG only).

@jolheiser
Copy link
Member

Ah, I was thinking instance config, but user config could also be interesting. It would mean users could have whatever they want.
Maybe a combination of both, even?
I think we can come up with a proper template system so people can define something like vscode://${repo}/${file} or something and then Gitea just fills them in accordingly (I don't know what the existing schemes look like, but just an example)

@silverwind
Copy link
Member

silverwind commented Dec 16, 2022

Per-server would of course be easier to implement and likely sufficient initially. But ultimately it is a user preference, I think. Server-side config has the benefit that it will work for logged-out users as well.

With this feature, we could also support online editors like GitPod, I suppose.

@lafriks
Copy link
Member

lafriks commented Jan 4, 2023

just for reference: jetbrains://idea/checkout/git?idea.required.plugins.id=Git4Idea&checkout.repo=<repo-url>

@dozro
Copy link
Author

dozro commented Jan 4, 2023

@lafriks:

just for reference: jetbrains://idea/checkout/git?idea.required.plugins.id=Git4Idea&checkout.repo=<repo-url>

Reference for cloning to JetBrains IntelliJ (aka Idea)
If you'd want to clone to another of their ides you'll have to replace the idea with the ide name for example: jetbrains://clion/checkout/git?idea.required.plugins.id=Git4Idea&checkout.repo=<repo-url> this would checkout the repo in the CLion IDE

(just for reference sake)

@rdwz
Copy link

rdwz commented Jan 10, 2023

This one is used for Visual Studio!? check button right here on gh 😉

git-client://clone?repo=

@silverwind
Copy link
Member

silverwind commented Mar 18, 2023

Let's move this discussion to #21121 so we have only 1 issue for the same topic.

@go-gitea go-gitea locked and limited conversation to collaborators May 3, 2023
wxiaoguang added a commit that referenced this issue Feb 24, 2024
Users could customize the "clone" menu with their own application URLs on the admin panel.

Replace #22378
Close #21121
Close #22149
@lunny lunny modified the milestone: 1.22.0 Feb 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type/feature Completely new functionality. Can only be merged if feature freeze is not active. type/proposal The new feature has not been accepted yet but needs to be discussed first.
Projects
None yet
6 participants