Comment 2 for bug 213317

Revision history for this message
Jordan Callicoat (monkeesage) wrote :

This should be relatively easy to implement. Just add a new section (e.g., "[actions]") to the config file. If that section exists, create a submenu in the right-click menu, and populate it with the values from that section (e.g., "SSH1 = ssh host1.org"). When an action is activated, feed the active term the command associated with the action. The only drawback would be that action names must be valid config item names (e.g., no spaces). It would also be relatively easy to add UI for this in the profile editor.

An alternate approach would be to use a separate config file (e.g., ~/.config/terminator/actions), that allows for arbitrary action names (simply split lines on "="?), without all the bells and whistles of the config class.

I'll try to play with this in the next few days.