Iterm2 option arrow4/5/2023 ![]() I am working on a series of posts that aren’t specific to the SharePoint Framework but are tangentially related to the development experience. In spending time with and talking to developers making this jump, I’m finding they are interested in some of the tools and things I use. This style of development leverages popular open source tools built on Node.js and developers more time in the terminal/console than they are used to. ![]() I used to have ⌃⌘T mapped to do this for Terminal.Many if not most traditional SharePoint developers are new to the dev stack and build tool chain Microsoft selected for SharePoint Framework development. If you right-click on the dock and request a new window, it creates it on the current desktop. If you hit ‘⌘N’ on iTerm 2 (or any other OS X app), OS X switches you to the app’s desktop, then creates a new window over there, not what I want. Like now, for example, I have a database migration running on Desktop 1 for Kifu and am blogging on Desktop 2, both of which require running iTerm 2 windows. While it’s nice to have the hotkey window, I often find myself working on Desktop 1 (Work) and need to jump to Desktop 2 (Alternate) to do some other stuff and leave a terminal running there. The red tabs were annoying, gone ( Preferences / Appearance):Īdded the border around frames, I like this because my terminal background and screen backgrounds are both dark ( Preferences / Appearance):Īnd got rid of the bell icon and Growl notifications in all profiles ( Preferences / Profiles / ****** / Terminal):Īnd lowered the line spacing to match Apple’s ( Preferences / Profiles / ****** / Text / Change Font) - just move the vertical back 1 notch: New iTerm 2 in Current Space I love copy on select, it’s one less keystroke and I usually select with the mouse ( Preferences / General): I don’t need to confirm quitting ( Preferences / General): Note: I do not set the Left Option and Right Option keys in profiles to +ESC, I leave them as Normal (as per Scott Lee’s response in the comments). Thanks to Brett Terpstra for sharing some of these in his Option-arrow navigation in iTerm2 and Twitter. ⌃⌘↓: Down to bottom (not standard Cocoa, but I find it very useful when perusing real time rails logs).⌘→: Go to end of line (Send Hex Code | 0x05).⌘←: Go to start of line (Send Hex Code | 0x01).⌥→: Go right one word (Send Escape Sequence | f).⌥←: Go left one word (Send Escape Sequence | b). ![]() Since I’m not a vi or emacs pianist, I prefer standard Apple Cocoa Text bindings when editing the command line, so I set them up in iTerm 2’s Global Shortcut Keys in Preferences / Keys. Some of the usual Mac editing keys did not work, I got rid of a few annoyances and added a few lovely preferences, and I needed the ability to create a new terminal window on the current space as part of my being productive with virtual desktops flow (Just like Browser Windows on All Desktops). I’m already loving the hot-key profiles to launch uniquely colored remote sessions, the split panes, and the brilliant hotkey window (useful to run a single command and get rid of it).īut there are a few things that needed some work. I just switched from using Apple’s built-in Terminal.app to the free iTerm 2 on a recommendation from Brett Terpstra. ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |