4 ms·
The problem is, my terminal already has a concept of scrolling, and its own concept of a buffer, with its own concept of keeping unlimited contents based on ava
by ninkendo 10y ago
The problem is, my terminal already has a concept of scrolling, and its own concept of a buffer, with its own concept of keeping unlimited contents based on available memory, etc.
I've never seen a tmux setup that doesn't fail horribly when these two concepts collide (I can't cmd-f search the buffer for interesting things, I don't get a scroll bar on the right that shows me how far up the buffer I am, scroll acceleration doesn't work, etc.)
Terminal.app already does split panes, tabs, scroll acceleration, search, etc. I don't get persistence, but I don't really understand the workflow where you'd want it. I typically open new tabs exactly because I want a fresh workspace, and I close them exactly because I want to clear my workspace. I can just manually call tmux when I know the thing I'm running should outlast a window (and actually, 99% of the time that's on a server I'm SSH'd into, not on my local machine.)
Can anyone convince me why I need to be all-tmux all-the-time?
- balac 10y agoSessions are the killer feature for me. I have a session for each project I work on and can have all my tabs, panes, vim, etc set up and switch between them at any time. Sessions can be persisted so that even if I reboot my machine all my project workspace configurations are saved and ready to go.
- jdormit 10y agoHow do you persist sessions between reboots?
- bigtunacan 10y agoThe session doesn't actually persist between boots. I think what the parent must be referring to is the ability to create tmux session configurations. Then after a reboot if you try to connect to the session which no longer exists the conf will spin it up for you.
- jdormit 10y agoGotcha. I'll have to look up some docs on that, sounds useful.
- balac 10y agoYeah, I use https://github.com/tmux-plugins/tmux-continuum https://github.com/tmux-plugins/tmux-continuum to auto save sessions, and https://github.com/tmux-plugins/tmux-resurrect https://github.com/tmux-plugins/tmux-resurrect to restore them when tmux is started.
- ethagnawl 10y agoI haven't used it, but there's a plugin which allows for this behavior: https://github.com/tmux-plugins/tmux-resurrect https://github.com/tmux-plugins/tmux-resurrect
- coldtea 10y ago>The problem is, my terminal already has a concept of scrolling, and its own concept of a buffer, with its own concept of keeping unlimited contents based on available memory, etc. Perhaps try iTerm2 (for Mac) native tmux integration. You can have tmux panes and split panes that are (and behave like) regular terminal panes and tabs.
- dijit 10y agoThat program is so disgustingly good it was almost the sole reason I bought this generations macbook pro. If any terminal emulator programmers are listening cough konsolecough please consider following the same method of integration <3
- pmoriarty 10y ago"You can have tmux panes and split panes that are (and behave like) regular terminal panes and tabs." What's the advantage of that exactly?
- coldtea 10y agoProper fucking scrolling? Less terminal behavior that needs to be multiplexed by tmux? More integration with other iTerm features (instead of tmux panes being agnostic to them)?
- ctrlrsf 10y agoI disable my Terminal.app buffer. If not in tmux, can't scroll back. All scrolling and copy and pasting is done with tmux. Also use vi keybindings so I select text and copy using same keys in vim and tmux.