Skip to content

Instantly share code, notes, and snippets.

@YumaInaura
Last active January 3, 2020 01:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save YumaInaura/08b8467acb3014fd31600021a1fe0153 to your computer and use it in GitHub Desktop.
Save YumaInaura/08b8467acb3014fd31600021a1fe0153 to your computer and use it in GitHub Desktop.
iTerm2 — search keyword and copy and paste text

iTerm2 — search keyword and copy and paste text

Output example

image

Command + F to start search mode

image

Enter to search next

iTerm2 search keywords from bottom to up.

image

image

Esc to escape search mode

Searched keyword is keeping on selected.

image

Command + C to Copy

Command + V to Paste

image

Done 🎉

In the same way You can search keyword and start Copy Mode

Copy Mode - Documentation - iTerm2 - macOS Terminal Replacement

Command+Shift+C to Start Copy Mode

image

Move cursor and change selected area

image

Y to yank ( copy )

Command+V to Paste

image

Versions

  • Max OS X High Sierra
  • iterm2 3.2.0

Links

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment