Allow Smart Selection Actions to be different depending on the foreground process
It'd be great if it was possible to set different Smart Selection Actions depending on the foreground process name. For example, if I'm in the shell, right clicking on a git SHA might give me actions like "git log" or "git rebase -i" that would send text to run the appropriate commands. If I'm in vim, I might instead want to send text that would open the files which were changed in that commit in tabs, just as an example.
All of these could certainly be in the same context menu, but you'd run the risk of clicking on something intended for a different program and performing actions you didn't expect. The biggest reason I'd like them to be different, though, is that I'd like the Command-Click default action to be different depending on which program is running.
Sound feasible? Again, I'm happy to implement this, but I'd need some mentoring.