News for hackers. Stuff that matters.
Re:Helix-gpui: A simple GUI for the Helix editor by innocentoldguy on Monday May 27, 2024 @05:06PM (#40494708)
I used to use tree explorers all the time, but once I discovered fuzzy-search file explorers, I never used a tree explorer again. It’s been too long for me to remember why I liked tree explorers before or why I stopped using them, so I’m curious, what are the benefits of a tree explorer over a fuzzy-search file explorer?

I’m not questioning the usefulness or validity of tree explorers. I’m just trying to see things from a different perspective.

Re:Helix-gpui: A simple GUI for the Helix editor by spartanatreyu on Monday May 27, 2024 @07:49PM (#40495926)
Tree-based finders allow you to explore a project.

Fuzzy finders only work when you already know what files exist.

Without a tree-based finder, you have no way to know which files exist in an unfamiliar project. Imagine being asked to change something in a project (e.g. add some extra space between two things on screen) without knowing what files existed. If you only rely on searching for names/terms that come to mind, you're probably going to miss the best way to accomplish the task at hand.

Re:Helix-gpui: A simple GUI for the Helix editor by mgrandl on Tuesday May 28, 2024 @02:58AM (#40498116)
For discovering files in an unknown codebase I use the grep feature in Helix (or just ripgrep CLI). Way faster than going through a tree in most cases.
Re:Helix-gpui: A simple GUI for the Helix editor by spartanatreyu on Tuesday May 28, 2024 @07:07PM (#40506540)
Can you give an example of how it is faster than a tree?

How would it work if you don't know the names of all the files or directories?

Re:Helix-gpui: A simple GUI for the Helix editor by Charlie_e on Monday May 27, 2024 @06:20PM (#40495301)
Tbh, I like having both, I find a fuzzy search is faster at finding what I want but a file tree is really helpful for building a mental model of directory relationships in a complex project.