9 ms·
One feature I really wish iTerm2 2.0 would have introduced was better session restoration support. With Terminal.app, you can issue a command like 'ls' and then
by PaulMest 12y ago
One feature I really wish iTerm2 2.0 would have introduced was better session restoration support. With Terminal.app, you can issue a command like 'ls' and then quit and re-open Terminal.app and the previous output from 'ls' shows up. This is incredibly useful when you have to restart or if your system crashes and you have some output that you wanted to preserve.
I see from the changelog that some type of restoration has been included: "Support for OS 10.7 features including fullscreen, retina graphics, and window restoration"... but upon actually trying it out, it doesn't do what Terminal.app does.
- klausa 12y agoI assume it pertains to Lion-style window restoration. Before 10.7, when you restarted your computer, you had to open each and every app (and every window!) again. Since 10.7, system (assuming the app cooperates, that is) does that for you and reopens everything.
- kybernetyk 12y ago> One feature I really wish ... It's open source. Why don't you add it yourself? I wanted a borderless terminal and as I couldn't find one I hacked the functionality into iTerm: http://i.imgur.com/jOc04sf.jpg http://i.imgur.com/jOc04sf.jpg /edit: Wow, being downvoted for suggesting to hack something yourself on Hacker News ... that's a new one. I guess I'll take a time out.
- riquito 12y ago> It's open source. Why don't you add it yourself? In your mind a developer can realistically contribute to any possible open source project, whatever the language and the domain? He may have to learn an humongous quantity of things to implement a feature and then never use that knowledge anymore. Founding the project while asking for a feature could be a better advice.
- quarterto 12y agoYou're getting downvoted for the dismissive tone, not the content.
- skue 12y agoI agree with your sentiment and it is depressing to see you downvoted. On HN I would have hoped your comment would stimulate those familiar with the code base to offer hints of where to start hacking, rather than rapid down arrow clicks.
- danudey 12y agoHe was downvoted for the dismissive and condescending attitude, which helps no one. The idea that anyone can work on iTerm is fantastic, but when someone posts a suggestion/request/wishlist item and is essentially told to 'do it yourself' that just comes across as hostile and unwelcoming. The exact same sentiment could have easily been posted in a friendly and welcoming manner, but that didn't happen and that's why he's getting downvoted.
- jasonlotito 12y ago> Wow, being downvoted for suggesting to hack something yourself on Hacker News ... that's a new one. I guess I'll take a time out. You'll also get downvoted for complaining about being downvoted. That's almost verboten here, and explicitly mentioned in the guidelines. When you get downvoted, accept that possible your comment detracts from the conversation. It doesn't just not add anything, but takes away. It's noise. If your first reaction is to edit your comment and complain, then that's a clear sign you aren't in the right frame of mind to contribute meaningfully. Your original comment was, if I may be so bold, cliche. Maybe that's the wrong word, but it comes up by someone with your attitude generally every time a thread about an open source project comes along. It literally is something that can go without saying.
- kordless 12y agoHis original comment didn't lack originality because he posted something that he did that was quite interesting. I, for one, believe that anyone is capable of anything they set out to complete. I don't think noticing a polarized reaction from a community you participate in is always a transgression. No ruleset rationalizes the community's reactions 100% of the time.
- jedanbik 12y agoI upvoted you. Got a Github page to share?
- cujo 12y agoAs others have pointed out, it's just an inappropriate comment. Yes it's open source, and yes, anyone can hack on it themselves. But 99.99999% of the time it's not realistic. Nearly every piece of software on my computer could be enhanced to fit me personally, but there's no way I could justify the time and energy to work on it. Also, in most cases I have no desire to learn the stack/underpinnings for a particular enhancement. Lastly, the comment comes off as condescending. Are we really not allowed to wish for things? Must we personally fix everything we find an inconvenience or problem with?
- ionforce 12y agoThough I agree with you, where is the stick in the ground? The OSS community's theme song has always been "you can do it yourself", even though that has long been not realistic for many people. So, nothing here is different as far as I can tell.
- danudey 12y ago> The OSS community's theme song has always been "you can do it yourself" In my experience over the last 15 years, that theme song can often veer from "you can do it yourself" (empowerment) to "do it yourself" (dismissal); replying to a reasonable feature request, in any context, with 'fix it yourself' is one of the things that turned a lot of people off OSS around the time of the first 'year of linux on the desktop'. The GIMP was the best example of this, with professional graphics editors, illustrators, etc. requesting features and being told 'no one needs those features' and 'if you want it so much, do it yourself', and it hurt their image a lot with many potential users, both technical and non-technical. Personally, I'm glad that attitude has largely disappeared (though apparently, not entirely).
- jason_slack 12y agoLove your hack, I want it! LOL.
- Igglyboo 12y ago> It's open source. Why don't you add it yourself? This attitude seriously needs to die.
- akerl_ 12y agoThe open source community cannot simultaneously use "anybody can fix bugs and add features" as one of their loudest pitches and then get offended when people suggest doing so. Either being able to dive in and fix it yourself is an edge case or it is not.
- danudey 12y agoBeing able to dive in and fix it yourself is definitely an edge case. Even among people who use terminals, I don't know that many who are able or willing, or who have the time or energy, to learn the codebase enough to add a feature. 'The open-source community' isn't pitching this idea and also rejecting it. 'Tone-deaf open-source proponents' are pitching it (or, in this case, suggesting it, and rudely) and regular, well-socialized people are criticizing it as a good idea poorly said.
- akerl_ 12y agoBoth those groups of people comprise 'the open source community'.
- tlrobinson 12y agoI dislike your comment but I like your borderless hack. Have you attempted to contribute it back?
- 72deluxe 12y agoErrr are you running the Yosemite beta? I love the dark menu bars. How do you find it? Do you find the kindergarten icon colours irritating? What about the blurriness? Do you feel like you've switch to varifocal lenses and are constantly rubbing your eyes? What about the lack of Maximise/Zoom button? I don't want everything fullscreen - the menubar has MenuMeters running in it and a clock which you can't see in Fullscreen mode. I use ShiftIt to maximise the window when Zoom is being dumb and fear for my future with this insane "maximise" button removal.
- ansimionescu 12y agoI wish tabs would have separate (non-shared) history. I did try this [0] but it doesn't work all the time (!?). 0: http://apple.stackexchange.com/questions/75571/the-history-is-shared-between-my-iterm2-terminal-tabs-how-can-i-switch-that-off http://apple.stackexchange.com/questions/75571/the-history-i...
- paddyoloughlin 12y agoThe history is a property of the shell (bash, zsh), not the terminal. Edit: I wrote a thing here about the difficulty of carrying history across terminal sessions and how can you associate a tab you open now with a tab you had open in a previous session, but then I realised that I misread your post. I would expect the answer in the posted link to work. The 'share_history' option, when set, tells zsh to reread the history file before performing history lookups. Maybe try the set-local-history option documented here? 1: http://zsh.sourceforge.net/Doc/Release/Zsh-Line-Editor.html#Keymaps http://zsh.sourceforge.net/Doc/Release/Zsh-Line-Editor.html#...
- clin_ 12y agoYou can get session management by using tmux integration. Terminal.app almost certainly does not do what you're describing by default.
- LeoPanthera 12y ago> Terminal.app almost certainly does not do what you're describing by default. Yes, it does. http://i.imgur.com/kYmlBk8.png http://i.imgur.com/kYmlBk8.png
- ghshephard 12y agotmux doesn't help you in this scenario, because the tmux process is lost during a system reboot. I concur with the parent - Terminal.App's ability to restore the previous sessions output after a system crash (which on my macbook Air ranges from daily to weekly - FTDI USB Drivers and Display Port cable being to the two major reason) really make me appreciate that feature.
- nicholassmith 12y ago"FTDI USB Drivers", if it's the VCP ones the very latest ones have been reasonably stable for me. I've not had a system crash for quite a while now, whereas I was having them weekly with an older version.
- ghshephard 12y agoNope - I'm on the latest 2.2.18 drivers still flakey as can be - This has been an ongoing issue for me for about two years - it's a pain when you are working on a Cisco Router, and you unplug the cable and kernel panic. I guess on the (weirdly?) pro side, it's at least fairly consistent - about 20% of the time, the Macbook (two generations now for me, 2010, and 2013) kernel panics. This is where Terminal.app (or possibly OS X 10.9 + Terminal.app) ability to show you your terminal history on recovery from Kernel Panic is really appreciated. If only there was a reliable USB-Serial cable/controller/interface for the Mac. Unfortunately, RS-232 is so rare (except for consoling into Cisco Routers?) that there is no incentive for any vendor to actually write a half stable driver.
- lukasm 12y agoAgree. Session restoration is really great. I would go further, though. I use `source` for virtualenv and it would be awesome if terminal could restore that as well.
- ibisum 12y agoOne problem I have with this is that its a massive security hole. Where does the output get stored? If its in an encrypted file, okay .. but if not: deal breaker.
- interpol_p 12y agoYou can disable it system wide. But it also works on a per-app basis: if you don't want the UI state restored, then just quit the app with Cmd+Option+Q (instead of the regular Cmd+Q) and OS X will not save the application state.
- nnnnni 12y agoI wish that there would have been a setting in the program options ("Preferences"... I don't know why, but that word annoys me in this context) so that the user wouldn't always have to do cmd-opt-q. Maybe the best option would be to have a checkbox that swaps the behavior ("don't save the output unless I press cmd-opt-q"). THANKS for letting us know about cmd-opt-q! I'll have to start using that all the time since it does seem like a potential security hole.
- interpol_p 12y agoYou can disable window restoration system wide (System Preferences -> General -> "Close windows when quitting an app"). So you don't have to use the shortcut at all in that case. Personally I prefer getting used to using it on a case-by-case basis. For example, when I leave work I tend to quit most apps on my laptop with Cmd+Option+Q, so that when I get home they don't re-open with work and I can start working on personal projects.
- nnnnni 12y agoI don't want to disable it system-wide -- just for the terminal! I'll just have to get used to cmd-opt-q.
- 12y ago
- gnachman 12y agoNope, no restoration support yet. I'm concerned about the performance hit.
- swift 12y agoI can see it being a performance issue if you need to fsync session updates to disk constantly, but personally I'd be pretty much happy if the session was only saved at normal shutdown. Maybe saving it after a certain idle period would also be useful. Would that mitigate your performance concerns, or did I not guess the source of the issue correctly?