Prompt triggers

I want to be able to set up triggers so that, if certain text is found in a terminal, it will trigger the prompt automatically.

Some examples of where this could be useful:

  • cursor attempting to access files or directories that don’t exist because it forgot what directory the terminal is in. Could have it detect this and run pwd or ls
  • cursor attempting to use the wrong package manager. Could detect this and redirect

I’ve tried to fix these problems with rules but it only works sometimes. This would at least reduce the number of times I have to guide cursor back on the rails.

1 Like