Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iterm2 snippets and actions are disabled

Tags:

iterm2

On MacOS, I tried creating some actions and snippets under Pref>Shortcuts. And they do get listed under Edit>Actions> and Edit>Snippets. However the menu item is grayed out or disabled. Are there any settings am missing ?

like image 826
Sathyakumar Seshachalam Avatar asked Dec 04 '20 07:12

Sathyakumar Seshachalam


People also ask

What is an iTerm2 snippet?

A Snippet is a string of text with a title. By activating the snippet, the associated text is sent as though it had been typed. iTerm2 by George Nachman. Website by Matthew Freeman, George Nachman, and James A. Rosen.

How to configure key combinations in iTerm2?

You can configure any key combination to perform any action in two places: in Preferences > Keys, you can define global key shortcuts that affect all profiles. In Preferences > Profiles > Keys, you can define key shortcuts that affect only a single profile. You can remap modifiers like Option and Cmd within iTerm2.

How does iTerm2 handle the status of a file?

When iTerm2 receives this it will respond with a status of ok or abort followed by a newline. If the status is ok then it will be followed by a base-64 encoded tar.gz file. If the user selects multiple files they will be placed in a directory within the tar file. You can configure touch bar key labels for function keys and for the "status" button.

What actions are available in iTerm2?

The following actions are available: Annotate: Attaches text to the matched region as an annotation. Bounce Dock Icon: Makes the dock icon bounce until the iTerm2 window becomes key. Capture Output: Save the line to the Captured Output toolbelt tool. See Captured Output.


1 Answers

I did some digging, having run into this issue myself, and found a way to enable them. From the iTerm2 docs:

Go to Preferences > Profiles > Session. Turn on Status bar enabled. Then click Configure Status Bar to begin setting up your status bar configuration.

You will then need to drag the Snippets… button down to the Active Components area. Now a Send Snippet… button should appear in your iTerm2 window:

Send Snippet button

like image 177
Todd Prouty Avatar answered Jan 03 '23 05:01

Todd Prouty