Live data from Hacker News

Little known features of iTerm2

banga.github.io

11–20 of 156 posts

Re: Little known features of iTerm2

#11

A couple more that I use often: * imgcat: you can view images without leaving your terminal. Somehow this works even across SSH connections… * Python scripting API: basically AppleScript for iTerm except it lets you touch pretty much everything and it's not soul-crushing to write. I have mine switch between themes based on the system appearance (which changes based on the time of day).

On imgcat, those extensions to the xterm protocol[0] seem really nice. I've long thought that there needs to be a simple escape sequence for a horizontal divider that doesn't break upon resizing, they should do that next!

Also check out tiv[1] which is an alternative that works with any unicode terminal.

[0]: https://www.iterm2.com/documentation-images.html

[1]:https://github.com/stefanhaustein/TerminalImageViewer

Re: Little known features of iTerm2

#12
post #3

I'm a little jealous of iTerm, not going to lie. The UX is pretty nice from what I've seen, but I can't find a like for like replacement for either Windows or Linux.

Tilix can be a decent alternative.

Looks great! Will install it on my Ubuntu VM, cheers :)

Re: Little known features of iTerm2

#13
Semantic History is pretty handy and not well-known. It lets you Command+Click on a path to open it in your editor (or associated application).

It also lets you Command+Drag a path to get a usable file-handle to drop into other apps that handle file-related dropzones.

Demo video I made when I added the feature: https://vimeo.com/21872771

Re: Little known features of iTerm2

#14

A couple more that I use often: * imgcat: you can view images without leaving your terminal. Somehow this works even across SSH connections… * Python scripting API: basically AppleScript for iTerm except it lets you touch pretty much everything and it's not soul-crushing to write. I have mine switch between themes based on the system appearance (which changes based on the time of day).

[deleted]

Re: Little known features of iTerm2

#15

Semantic History is pretty handy and not well-known. It lets you Command+Click on a path to open it in your editor (or associated application). It also lets you Command+Drag a path to get a usable file-handle to drop into other apps that handle file-related dropzones. Demo video I made when I added the feature: https://vimeo.com/21872771

Wow, thanks for creating it!

Re: Little known features of iTerm2

#16

Semantic History is pretty handy and not well-known. It lets you Command+Click on a path to open it in your editor (or associated application). It also lets you Command+Drag a path to get a usable file-handle to drop into other apps that handle file-related dropzones. Demo video I made when I added the feature: https://vimeo.com/21872771

Use it with care, though: it's not shy about creating invalid file references when it doesn't know what it's talking about :)

Re: Little known features of iTerm2

#19
I was one of those vim users that was stuck on MacVim for years because my brain was too wired to hitting "cmd-s" for save and other dedicated app niceties. I mean, sure I can :w or bind it to another key, but there are a couple shared OS-level shortcuts like this I just like to retain. No worry, iTerm2 can capture ANYTHING, and rebind it as needed. This means I have a few remaps like "cmd-s" in iterm2 to map to obscure key combinations, which I then have vim interpret and pass along to whatever I want to bind over there. I had no idea the feature existed for years. And sure, I know you're all laughing, why would I even do such a thing... but vim is vim, and we all have our own weird version of it.

iTerm2 is amazing. I've been using it for years daily and it is 100% one of the best, most reliable pieces of software in my toolkit, right next to Alfred.

Show you love for George and contribute to his Patreon[0]. We always love to complain about how to make money with open source on HN. I'd love to see him making a lot more than he does, if for no other reason than we can get more people working full time on the project and provide some redundancy for a critical tool we all love. I wish I could pay for it, but I guess Patreon works.

[0]: https://www.patreon.com/gnachman

Re: Little known features of iTerm2

#20
post #3

I'm a little jealous of iTerm, not going to lie. The UX is pretty nice from what I've seen, but I can't find a like for like replacement for either Windows or Linux.

Every time I've considered a full-on switch to Linux, the many little tools that I'd have to give up weigh heavily the cons column.

[deleted]
Post reply on HN