Parameter for Smart Selection Action: Copy

8 views
Skip to first unread message

Robbie Gates

unread,
Apr 30, 2026, 11:51:07 PMApr 30
to iterm2-discuss
Hi George (and thanks as always for an awesome tool).

Is it possible for the Smart Selection Action "Copy" to get a parameter field like "Send Text..." or "Run Command..." have?

My use case is I'd like to set it to `\(matches[1])` so I can copy just part of the Smart Selection. I could do this with `Run Command...` and pbcopy (thanks Gemini for noticing this), regex lookahead isn't ideal because the prefix in my case has a `*` in it (which yes I could bound for practical purposes) - but it feels like Copy being able to take a value is a natural extension?

 - Robbie

George Nachman

unread,
May 4, 2026, 9:47:01 PMMay 4
to iterm2-...@googlegroups.com
Commit 4eea484d8bcbcd6fa474bf5fef914256cb50a256 modifies the Copy Smart Selection action to take a parameter. For backward compatibility, an empty value means “copy the selection according to user prefs”. Otherwise, the unstyled string derived from the parameter is copied. You can verify in tomorrow’s nightly build.

--
You received this message because you are subscribed to the Google Groups "iterm2-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to iterm2-discus...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/iterm2-discuss/c2caff75-571c-461f-850c-afc49943a459n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages