desktop icon indicating copy to clipboard operation
desktop copied to clipboard

Editable list of text editors

Open borodinalive opened this issue 2 years ago • 9 comments

The feature request

Now text editors list is hardcode. It would be nice if user could manage this list via text configs or some visual tool

Proposed solution

a. text configs in json-file

or

b. modal with system apps list for adding to Github Desktop app text editors list

Additional context

No response

borodinalive avatar Apr 29 '22 08:04 borodinalive

this would be smart, since there are so many editors. I don't think it would really help having this list modified locally for every single computer, so it would probably exist on this github repo. (having it in a seperate file would make it easier for newbs to add support for new ones)

Etaash-mathamsetty avatar May 23 '22 00:05 Etaash-mathamsetty

I don't think it would really help having this list modified locally for every single computer, so it would probably exist on this github repo. (having it in a seperate file would make it easier for newbs to add support for new ones)

This is basically what the current solution is, and has several benefits:

  • once it's implemented, all users can benefit from it when they upgrade to this version
  • upgrades can handle changes and additional ways to detect apps without the user needing to make changes
  • for advanced features like Wayland support we could integrate into the app and not need the user to make changes to their setup, e.g. https://github.com/shiftkey/desktop/issues/665

I'm skeptical that adding support for a secondary source like a JSON file gives us enough to support it, for a few reasons:

  • a file outside the application that will be trusted to launch programs feels like a security risk
  • adhering to a specific format could make this brittle and have a bad experience for users
  • long-term support for this would require keeping in sync with whatever the upstream project supports, which isn't something I'm interested in maintaining...

shiftkey avatar May 26 '22 18:05 shiftkey

a file outside the application that will be trusted to launch programs feels like a security risk

it could be created by the app with app's regular tools

Ok. In Windows version there is IntelijjIdea in editors list, in Linux it is not in list. It installed in custom directory and I suspect it is the problem. Maybe there is some solution for my problem?

borodinalive avatar May 27 '22 05:05 borodinalive

Ok. In Windows version there is IntelijjIdea in editors list, in Linux it is not in list. It installed in custom directory and I suspect it is the problem. Maybe there is some solution for my problem?

This is because on Windows the apps leverage the registry when they install, which GitHub Desktop can inspect to find the information about where on disk it's located:

https://github.com/shiftkey/desktop/blob/dcb67bc7fdf4090a7106f80fa765988f39a621ff/app/src/lib/editors/win32.ts#L353-L359

shiftkey avatar May 30 '22 19:05 shiftkey

Ok. In Windows version there is IntelijjIdea in editors list, in Linux it is not in list. It installed in custom directory and I suspect it is the problem. Maybe there is some solution for my problem?

@borodinalive the custom directory is an issue here, and an upstream PR from @patinthehat https://github.com/desktop/desktop/pull/15375/ added support for the Snap packages for other JetBrains tools that seem to be available under /snap/bin/. If there's a similar default setup for IntelliJ I'd recommend following this convention to add support for it.

shiftkey avatar Jan 29 '23 20:01 shiftkey

@borodinalive the custom directory is an issue here, and an upstream PR from @patinthehat desktop#15375 added support for the Snap packages for other JetBrains tools that seem to be available under /snap/bin/. If there's a similar default setup for IntelliJ I'd recommend following this convention to add support for it.

I've just opened a PR https://github.com/desktop/desktop/pull/16029 which adds IntelliJ IDEA among others

adil192 avatar Jan 29 '23 20:01 adil192

Ok. In Windows version there is IntelijjIdea in editors list, in Linux it is not in list. It installed in custom directory and I suspect it is the problem. Maybe there is some solution for my problem?

@borodinalive the custom directory is an issue here, and an upstream PR from @patinthehat desktop#15375 added support for the Snap packages for other JetBrains tools that seem to be available under /snap/bin/. If there's a similar default setup for IntelliJ I'd recommend following this convention to add support for it.

I've installed IntellijIdea from original *.deb to custom directory. This won't work for me, unfortunately Anyway, thank you!

borodinalive avatar Jan 30 '23 15:01 borodinalive

This would be nice. I've read through this, and I still cannot get IntelliJ to show up. I've installed a desktop entry as both privileged and unprivileged and it still does not show up as an option. :(

jordan4ibanez avatar Apr 27 '23 22:04 jordan4ibanez

I'm inclined to close this out because I worry about deviating from the extensibility provided by the upstream project from a support perspective (I spend enough bandwidth on managing dependencies currently and am currently stuck trying to maintain compatibility with different architectures), and without someone to champion this work and figure out a solution this is not going to progress...

shiftkey avatar Dec 18 '23 21:12 shiftkey

I'm going to close this out for now as it hasn't moved in a while, and point anyone who is curious to https://github.com/shiftkey/desktop/issues/1113 where the upstream project is working on "Custom integrations" as a way to make this experience more tailored to those power users.

Please try it out and see if that helps with what you need.

shiftkey avatar Aug 17 '24 12:08 shiftkey