iterm2 shortcuts Daquan [Mac]

label

New tags: command + t
off-label: command + w
switching label: digital command + command + direction key
switch full: command + enter
find: command + f

Split Screen

Vertical Split Screen: command + d
level Layout: command + shift + d
switch the screen: command + option + arrow key command + [or command +]
view history command: command +;
View clipboard history: command + shift + h

other

Clear the current line: ctrl + u
to the beginning: ctrl + a
to the end of the line: ctrl + e
forward-reverse: ctrl + f / b (corresponding to the left and right arrow keys)
on a command: ctrl + p
search command history: ctrl + r
delete the current cursor character: ctrl + d
characters before the cursor is deleted: ctrl + h
word before the cursor is deleted: ctrl + w
removed to the end of the text: ctrl + k
exchanger cursor text: ctrl + t
clear screen 1: command + r
clear screen 2: ctrl + l

What comes with a very useful feature / shortcut

⌘ + toggle directly in the digital label tab
select i.e. + mouse button to copy and paste, this is very useful
content ⌘ + F looking for is automatically copied
⌘ + D transversely split screen / ⌘ + shift + d vertically split screen
⌘ + r = clear, and only switch to a new screen, do not want to create a clear, like a blank screen
ctrl + u to clear the current line, no matter what position the cursor at
the beginning of the input command press ⌘ +; automatically entered in the command list
⌘ + shift + h lists the clipboard history
may Preferences> keys to set global keyboard shortcut to bring up the iterm, this can also be used to achieve Alfred

I used some of the shortcuts

Switching back and forth between the left and right ⌘ + 1/2 tab, this has already been introduced in the
⌘ ← / ⌘ → command line to the leftmost / rightmost, with this function A + C / C + E
⌥ ← / ⌥ by word → forward / backward, equivalent to C + f / C + b, in fact, this feature has been booked in Iterm righteousness, ⌥f / ⌥b, see personal habits

Setting is as follows

In addition to these of course can be customized can not forget those combinations useful in linux

C + a / C + e where this can be used in almost
C + command on a P / !!
C + K deleted from the cursor to the end of the command line (C + U would be deleted to the first command, but is iterm delete whole line)
C + D + W a prefix to be deleted from point / trailing
C + h C + d deleted before and after the cursor ego
C + y attached to the cursor
C + r search command history, the more commonly used

Choose your favorite color scheme.

In Preferences-> Profiles-> Colors of load presets you can select a color scheme. You can also download their own. In the website http://iterm2colorschemes.com/, you can find almost all the available color schemes.

Select Copy That

iterm2 There are two kinds of useful Copy mode that is selected.

One is with the mouse, in iterm2, select a path or a certain vocabulary, then, iterm2 automatically copied.
The other is no mouse mode, command + f, pop-up search mode iterm2, and you want to find and copy the contents of the first few letters, after confirming the find of their own content, input tab, find the window will automatically change the content, and copy it. If the input is shift + tab, you will find everything to the left automatically selected and copied.

Cutting screen

command + d: vertical segmentation;
Command + Shift + D: split horizon

automatic completion

Input starts a few letters, and then enter the command +; iterm2 automatically lists similar commands entered previously.

Shear history
input command + shift + h, iterm2 history will automatically list clipboard. If you need to save the history of the clipboard to disk, in Preferences> General> Save copy / paste history to disk. Set.

Full-screen toggle

command + enter into the full-screen mode and return

All Tab Exposé

command + option + e, and may search for

To be continued ~ ~

Guess you like

Origin blog.csdn.net/gqzydh/article/details/95041225