zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
34.48k stars 1.71k forks source link

Option to open directory/file in project panel on first click #11396

Closed XDeme1 closed 1 week ago

XDeme1 commented 2 weeks ago

Check for existing issues

Describe the feature

Right now, the project panel requires 2 clicks to open a file/directory after losing focus.

If possible, I suggest adding an option to allow users to open files/directory in 1 click after losing focus.

If applicable, add mockups / screenshots to help present your vision of the feature

No response

JosephTLyons commented 1 week ago

Hey @XDeme1, can you give a bit more info on what you are referring to by "2 clicks" after losing focus? For me, when the project panel isnt' focused, it only takes a single click on a directory to open that directory. If you are talking about files taking 2 clicks in order for the file tab to persist in Zed, that behavior can be changed. The default way tabs open is Zed is "tab preview," which means a single click opens the buffer in a temporary tab that gets replaced as you click on more files, but that can be turned off via:

"preview_tabs": {
  "enabled": false
},

Not sure if this is what you are referring to or not - let me know.

XDeme1 commented 1 week ago

When you lose focus of the window, directories and files require 2 click to open:

https://github.com/zed-industries/zed/assets/66138117/12c2629b-9767-4d9c-849f-d00e6aef177a

Just moving the mouse out of the window will force you to click 2 times

mikayla-maki commented 1 week ago

I believe this bug has been fixed in https://github.com/zed-industries/zed/pull/11371