Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to put "enter" or "return" when sending text in iTerm2

Tags:

iterm

iterm2

This is an image of where I want to put "enter" or "return" i.e. inside the "command"

While I can put characters, I do not know how to "enter" so that it can run a line and another one inside command. I am having a same problem for "send text" -- I want to be able to send a text and have the shortcut run it by "enter"ing.

i would appreciate your help.

thanks

like image 413
CottonCandy Avatar asked Oct 26 '17 08:10

CottonCandy


1 Answers

Try adding \n after the command in "send text" e.g a key mapped to code . \n will open vscode in the current folder.

like image 172
Christian Hagdorn Avatar answered Nov 18 '22 00:11

Christian Hagdorn