![]() In the Keyboard Shortcut field, push the keys ctrl + shift + b or ctrl + shift + f and you should see something like ^⬆︎B or ^⬆︎F. Select the + button at the bottom to add a new shortcut. To assign the shortcut open the iTerm preferences and choose the keys tab. How To Use Ctrl + Shift + f and Ctrl + Shift + b To Jump Words If you don’t use those keyboard shortcuts they will take time to get used to, but I like them particularily because I don’t have to lift my hands off of home row to reach the arrow keys. If you use ctrl + b and ctrl + f to navigate cursor, I recommend give these steps a try. I found this to be easier to use given the placement of capslock (which should be your ctrl!) and shift on the keyboard, compared to option. I’m already used to using ctrl + f and ctrl + b to move the cursor forward and backward in terminal and, instead of option, decided to give ctrl + shift a try. I tried it for a while and found the option key to be placed in such a weird position on the Apple keyboards that I wouldn’t use option and often forget about it while in the “programming zone”. This page was generated by GitHub Pages.I really feel like I’m missing out on being able to jump words when working in terminal and found some blogs on how to do it by using option. ⌘ + / or use a theme or cursor shape that is easy to see Search the Command History FunctionĬtrl + R and type the search term Repeat Ctrl + R to loop through resultĬancel the search and restore original lineĬlear the screen/pane (when Ctrl + L won’t work)īroadcast command to all panes in window (nice when needed!) 什么使用场景? FunctionĮnter Character Selection Mode in Copy ModeĬopy actions goes into the normal system clipboard which you can paste like normal. Moving by word on a line (this is a shell thing but passes through fine)Ĭursor Jump with Mouse (shell and vim - might depend on config)Ĭopy and Paste with iTerm without using the mouse (go to beginning of current line) but that doesn’t work in the shell. For example ⌘ + Left Arrow is usually the same as Home Keys and Mac equivalents don’t always work. Use this instead of typing clear over and over.Ī lot of shell shortcuts work in iterm and it’s good to learn these because arrow keys, home/end When this doesn’t work ⌘ + K will tell iTerm to do it which works when you aren’t in a shell. Last command was wrong by a single typo or something. This takes you off the home row but it’s easy to rememberįast way to jump to a word to correct a typo or “run again” Use this with command history to repeat commands andĬycle and browse your history with up and down.Ĭtrl-R is faster if you know the string you are looking for. Use this to start over typing without hitting Ctrl-C Hopefully some of these change your life. To do it sometimes so adopt what you like best. There are many tips but I use these quite a bit. I’m assuming you are using bash or zsh on Mac. ![]() These might be helpful to getting you faster with the shell but really this ⌘+ Left Arrow (I usually move by tab number) ⌘ + Shift + Enter (use with fullscreen to temp fullscreen a pane!)Ĭtrl + ⌘ + Arrow (given you haven’t mapped this to something else) ![]() ⌘ + Alt + Shift and then drag the pane from anywhere ⌘ + Shift + D (mnemonic: shift is a wide horizontal key) ⌘ + backtick (true of all mac apps and works with desktops/mission control)
0 Comments
Leave a Reply. |