Skip to content

Add Open In External Editor to the file system dock menu #108142

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

no-arr
Copy link

@no-arr no-arr commented Jun 30, 2025

Implements an "Open In External Editor" option/menu button to the file system dock menu which opens by right clicking any file/directory. Below is the demonstration of how the option works. The option is not visible to the users who have text_editor/external/use_external_editor disabled.

Under the hood: it makes use of OS.execute where the program path is the user defined code editor path and in the arguments it passes the current selected directory's path globalized.

godot.windows.editor.x86_64_zPI9N3NnXW.mp4

This improves the developer workflow by reducing the need to open a terminal just to launch the external editor from a project folder.

@no-arr no-arr requested a review from a team as a code owner June 30, 2025 13:58
@AThousandShips AThousandShips added this to the 4.x milestone Jun 30, 2025
@im-aeo

This comment was marked as off-topic.

@KoBeWi
Copy link
Member

KoBeWi commented Jul 1, 2025

How is it different from "Open in External Program"?

@no-arr
Copy link
Author

no-arr commented Jul 1, 2025

How is it different from "Open in External Program"?

Open In External Program does not work with directories. It may feel unintuitive to see that option when right-clicking a directory, since directories aren't typically opened by the OS with an "external program" the same way files are.

@KoBeWi
Copy link
Member

KoBeWi commented Jul 1, 2025

Wouldn't it be better then to make Open in External Program support directories, instead of adding another option?

@no-arr
Copy link
Author

no-arr commented Jul 1, 2025

Wouldn't it be better then to make Open in External Program support directories, instead of adding another option?

Yes, though that might be confusing for users, since there's already a dedicated "Open in File Manager" option for opening directories in the system file explorer or for those users who have external code editor option disabled.

@KoBeWi
Copy link
Member

KoBeWi commented Jul 1, 2025

Then you could make it only appear if there is an external editor configured.
Or if has to be a new option, the name could be more explicit, like Open in External Text Editor or something.

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

Successfully merging this pull request may close these issues.

4 participants