Tools: ITERM2 points record

Smart selection and copy

  • In iTerm2,
    double click to select,
    Three clicks to select the entire line,
    four clicks to select smartly (smart rules are configurable), which can identify URLs, strings surrounded by quotation marks, email addresses, etc. (In many cases, the double-click selection is already very smart)
  • In iTerm2, select and copy. That is, any character string in the selected state is placed in the system clipboard.
  • Choose to copy + middle mouse button to paste

Use the Command key ingeniously

Hold down the ⌘ key:< /p>

  • You can drag and drop the selected string;
  • Click on the url: call the default browser to access the URL;
  • click on the file: call the default program to open the file ;
  • If the file name is filename:42 and the default text editor is Macvim, Textmate or BBEdit, it will directly open to this line;
  • Click on the folder: in the finder Open the folder;
  • Hold down the option key at the same time to select a rectangle, similar to the ctrl v operation in vim.

Common shortcut keys

  • Empty the current line (no matter where the cursor is): ctrl + u
  • < li>Cursor to the beginning of the line: Ctrl+a

  • Cursor to the end of the line: Ctrl+e
  • Search command history: Ctrl+r
  • New tab: ⌘+ t;
  • Clear screen: Ctrl+l or command + r
  • Full screen/Exit full screen: Command+enter
  • Smart search, support regular search: ⌘+ f.
  • Delete the string before the cursor: Ctrl+w
  • Delete the entire line after the cursor: Ctrl+k
  • Split the screen: ⌘+d split horizontally , ⌘+Shift+d split vertically;

Highlight the current mouse position: ⌘+/

Open in one tab There are too many windows/vi editing content, sometimes the current mouse is not found

Use history

⌘+Shift+h: pop up History window

picture description

Use the current path when creating a new window

In Preferences, set the Working Directory to reuse previous session’s directory

clipboard.png

Display all tabs in full screen, you can search: ⌘+Option+e
picture description

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 5214 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.