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
46.87k stars 2.68k forks source link

Clicking on filename in terminal shouldn't open file editor #16520

Open truh opened 3 weeks ago

truh commented 3 weeks ago

Check for existing issues

Describe the feature

Most of the time when I click on a filename in the terminal I do so to highlight the file name with a double click so I copy it. In Zed this opens 1-2 editor tabs for the file and may or may not highlight the.

Terminals embedded in other editors I've used don't always open the file when I click on the name, they only do so when hold a key pressed, usually alt/cmd.

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

No response

Moshyfawn commented 3 weeks ago

I was going to type out the fact that the usual behaviour you're describing is the one Zed's implemented, but I was able to reproducible this by cmd-clicking on the filename in the terminal once and after that every filename hover acts as if the cmd key is held - the file can be open by just right-clicking.