Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

In theory it seems neat but in practice I'm here with 10 tabs all called "+page.svelte" or "+page.server.ts" and it completely breaks my workflow since I can't tell them apart or navigate with fuzzy name matching. How do you deal with that?


Generally you should try to get away from clicking around on file tabs and use your command palette but one thing you can do, if you're using VS Code, is change the "Label format" to "short" in the settings.


As I've grown older, I've seen lots of improvements to software usability - it warms my hear to see the attitude of yesteryear's "you're not using it right, consider changing your lifestyle" still alive and well.


Why should you get away from clicking tabs, apart from having to deal with this issue?


Because it's much faster, goes for most navigation in code editors, try it! :)


I'm offended! I don't click around like some lowly peasant, I navigate by keyboard like God intended.


For anyone wishing for a VS Code fix, comment on this issue: https://github.com/microsoft/vscode/issues/41909#issuecommen...


It would be great if VSCode provided an API for the tab labels but the Svelte team really created the problem in the first place.

This whole file-based routing wasn't a great idea to begin with, as a general solution to routing. It works (up to a point) for a static site generator, but most SSGs provide a permalink setting so there's an escape hatch.

The whole thing gets even worse when you start introducing issues like having dozens if not hundreds of files with the same filename, weird characters in folder and file names, etc.


Try a JetBrains IDE - if two tabs with the same filename are open, it will automatically prepend the name of the containing folder (recursively up, until the names are different). I wouldn't know how to stay sane for the same reason otherwise.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: