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

Add an option to open a file from the FileSystem dock with a single click #1699

Open
Kalabasa opened this issue Oct 21, 2020 · 1 comment
Open

Comments

@Kalabasa
Copy link

Describe the project you are working on:
Demo pong project to check out Godot.

Describe the problem or limitation you are having in your project:
Opening a file from the Filesystem tab requires an extra click in quick succession. I'm used to opening files in a single click because it's less strain on the wrist.

Describe the feature / enhancement and how it helps to overcome the problem or limitation:
Open a file with a single click. This will remove the extra time-based click required to open a file.

Describe how your proposal will work, with code, pseudocode, mockups, and/or diagrams:
Quick solution would be to add an option to "automatically open files when selected" in the Filesystem tab.

Better solution would be to set a consistent preference for opening things in lists in the Editor (Related #1507).

Here's a similar setting in VSCode
Screen Shot 2020-10-21 at 23 18 45

If this enhancement will not be used often, can it be worked around with a few lines of script?:
Pressing Enter after highlighting the file is a workaround.

Is there a reason why this should be core and not an add-on in the asset library?:
It's the Editor UI.

Also, double-clicking is difficult for some people, especially those who lack specific fine motor ability. It could at least be an accessibility option.

@Calinou
Copy link
Member

Calinou commented Oct 21, 2020

If we support this, this should probably be a global toggle for most actions that currently require a double-click. Selecting items would be done by hovering them for a certain period of time instead.

For examples of implementations out there, see Windows Explorer (disabled by default) or KDE Plasma (enabled by default).

On second reading, it seems this proposal is about opening files on a single click, not directories. Keep in mind this may still interfere with selection…

@Calinou Calinou removed the topic:gui label Oct 21, 2020
@Calinou Calinou changed the title Option to open a file from the Filesystem with a single click. Add an option to open a file from the FileSystem dock with a single click Oct 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants