Live data from Hacker News

Little known features of iTerm2

banga.github.io

151–156 of 156 posts

Re: Little known features of iTerm2

#151

Earlier quoted context omitted.

Karabiner-elements is good for mapping single keys to other keys. It doesn’t handle key combinations. (There is something called complex modifiers, but I can’t figure out how to edit them.) BetterTouchTool is good for mapping key sequences. Further, it can do it selectively based on what application is active.

Is it per program or global? If it's global, it fixes nothing for this specific issue.

BTT can do both. Karabiner Elements is global only.

Re: Little known features of iTerm2

#152

Earlier quoted context omitted.

Karabiner-elements is good for mapping single keys to other keys. It doesn’t handle key combinations. (There is something called complex modifiers, but I can’t figure out how to edit them.) BetterTouchTool is good for mapping key sequences. Further, it can do it selectively based on what application is active.

The complex modifiers are just a json file that’s fairly easy to edit. I have a file that has caps+hjkl to arrow keys. Caps by itself is Esc. caps with anything else is Cmd-shift-option-control+anything else. And finally right shift plus caps toggles caps lock.

Wow. That’s good know. I will poke around. Thank you.

I like KE and have contributed to the dev several times. In typical modest Japanese fashion, contributions are limited to $10 max. Mapping ‘Enter’ to ‘Caps’ and ‘right shift‘ to ‘right command‘ staved off RSI in my right pinky, so I’m happy to send him/her some cash.

Re: Little known features of iTerm2

#153
post #34

Not sure whether or not this is a little-known feature. iTerm2 has _fantastic_ integration with tmux (software used for persisting a terminal session across multiple logins). Tmux can be a pretty complex piece of software, but iTerm can basically wrap it all up into a nice package. You don't need to know anything at all about tmux to use iTerm's tmux integration. If you're SSHed into a server that has tmux installed,…

More of a normal tmux question, but is there a way to input the window number, or is there a fast way to open up ssh to 4 servers numbered sequentially? pane 1: ssh -1 pane 2: ssh -2 pane 3: ssh -3 pane 4: ssh -4

I like tmuxp: https://github.com/tmux-python/tmuxp/blob/master/README.rst

Re: Little known features of iTerm2

#154

iTerm2 is what made me finally use Emacs in the terminal, completely replacing vim for me. You can configure Emacs when running from the terminal to respond to mouse input or to integrate with the system's clipboard. You make it run in server mode, via a Launchd config and you get instant startup times too. iTerm2 also has built-in powerline glyphs. It was actually easier to configure Emacs's powerline package to wor…

Why using Emacs in terminal though? I find it much better to run in gui.

Re: Little known features of iTerm2

#155

Earlier quoted context omitted.

The complex modifiers are just a json file that’s fairly easy to edit. I have a file that has caps+hjkl to arrow keys. Caps by itself is Esc. caps with anything else is Cmd-shift-option-control+anything else. And finally right shift plus caps toggles caps lock.

Wow. That’s good know. I will poke around. Thank you. I like KE and have contributed to the dev several times. In typical modest Japanese fashion, contributions are limited to $10 max. Mapping ‘Enter’ to ‘Caps’ and ‘right shift‘ to ‘right command‘ staved off RSI in my right pinky, so I’m happy to send him/her some cash.

https://pqrs.org/osx/karabiner/json.html if you want to know a bit more about them

Re: Little known features of iTerm2

#156
post #123

Earlier quoted context omitted.

Out of curiosity, why do you use iTerm2? As a heavy tmux user, I made the switch back to Terminal recently and never looked back.

- visor mode: I always have a fullscreen terminal one keypress away - genuine fullscreen mode, not the crazy Apple thing where you try to fullscreen an app and it creates another "workspace" or "desktop" or something and you can no longer switch efficiently between fullscreened and non-fullscreened apps without seeing some sliding animation. - Powerful keybinding support for simple and sophisticated cases. E.g. I use…

> What does Terminal.app give you over iTerm2?

Ease. I've been down many a custom-config-rabbit-hole but these days I find greater pleasure in paths of least resistance. I'll admit, however, that I love my hyper key and BetterTouchTool gestures.

Post reply on HN