top | item 35598699

(no title)

almostdigital | 2 years ago

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?

discuss

order

kevinak|2 years ago

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.

preommr|2 years ago

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.

xboxnolifes|2 years ago

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

almostdigital|2 years ago

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

arxpoetica|2 years ago

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

pier25|2 years ago

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.

9dev|2 years ago

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.