3 ms·
There are some dueling abstractions, yes! There was a good write-up from Anil Dash that picked up one of my favorite pieces of the recent TabFS write-up[1][2],
by rektide 6y ago
There are some dueling abstractions, yes! There was a good write-up from Anil Dash that picked up one of my favorite pieces of the recent TabFS write-up[1][2], _Keeping Tabs on Abstractions[3],_ noting that the browser & OS are each running competing abstractions for tabs. The application's invention of the Multi Document Interface (MDI) has done weird things! And I feel like most consumer OSes have done little to try to unify or provide options in the OS level, to take back territory.
I as quite happy & pleased when Google's Chrome on Android had tabs each appear as tabs in the OS. I have too many tabs, but I enjoyed that it was up to my launcher, up to my os to help me work with that. It gave me flexibility & options to approach the problem. Where-as, when Chrome went back to managing tabs itself, it's both been a disaster for me (new tab window shows me the start of my tabs, which has some years old tabs i only need occasionally), and a sadness, a defeat, that the OS can no longer manage this thing.
> I do see the point of reattaching to shell sessions or attaching from multiple devices.
I've recommended dtach[4] elsewhere[5] in this topic & here-by recommend it again! Very lightweight detachable proxy for persistent programs. I run vim inside of it, so I can attach/detach. Vim has terminals inside of it, so that's all I needed.
[1] https://omar.website/tabfs/ https://omar.website/tabfs/
[2] https://news.ycombinator.com/item?id=25600338 https://news.ycombinator.com/item?id=25600338
[3] https://anildash.com/2021/01/03/keeping-tabs-on-your-abstractions/ https://anildash.com/2021/01/03/keeping-tabs-on-your-abstrac...
[4] https://github.com/crigler/dtach https://github.com/crigler/dtach
[5] https://news.ycombinator.com/item?id=25792205 https://news.ycombinator.com/item?id=25792205
- kevincox 6y agoI agree with you there. I actually wrote a blog post about this recently: https://kevincox.ca/2021/01/11/tabs-were-a-mistake/ https://kevincox.ca/2021/01/11/tabs-were-a-mistake/ The Chrome is an interesting example because it seems that some people liked it but it was arguably a bit of a botched implementation. (It seems like when Chome was killed and opened again it would put all of the tabs at the front, instead of sorting them by the time each tab was last used). Also people were complaining about no longer being able to swipe between tabs, but with Android gesture navigation this shouldn't be an issue anymore. I'll take a look at dtach too. I think one of the benefits of using tmux just for reattaching is that tmux is widely used and tested against all sort of shell escape codes. I have a slight worry that the less popular tools will not handle all of the cases as gracefully. I'm hoping that I am wrong though and it works well.
- cxr 6y ago> I feel like most consumer OSes have done little to try to unify or provide options in the OS level Yeah, I've always thought it was weird that the X11 window management protocol wasn't extended to accommodate native tabs, so it's always handled in-client. > I've recommended dtach dtach is great! I've always wondered why people were so enamored with screen and tmux, when I don't really want a second, full-fledged terminal emulator running inside my desktop terminal emulator—I just want to detach from sessions. Most importantly, though, I want this to be baked in, ideally at the system level, but would settle for dtach-like integration with gnome-terminal; whatever allows this to be done lazily, without needing the foresight to use dtach from the beginning—just like you're not required to specify ahead of time whether you want to use job control (Ctrl-Z) at the time that you start the process. It's a big shame. Two examples of natural growth with high utility that have just never happened, because we're supposed to stay stuck at the state things were in in the early 90s or something.