Automatic Profile Switching: either explanation is incomplete or important feature is missing
Thanks for filing an issue! Please answer the questions below so I can help you.
- iTerm2 version: 3.4.4beta3
- OS version: 11.1
- Attach ~/Library/Preferences/com.googlecode.iterm2.plist here com.googlecode.iterm2.plist
- Attach a debug log, if possible. Instructions at https://iterm2.com/debuglog
- Attach a screen capture video if it would make the reproduction steps clearer.
- Are you reporting a performance issue, excessive CPU usage, or a hang? Please attach a sample. Instructions at https://gitlab.com/gnachman/iterm2/wikis/HowToSample
- Are you reporting a crash? Please attach the crash log. Instructions at https://gitlab.com/gnachman/iterm2/wikis/crash-logs
- Are you reporting excessive memory usage? Please attach a heap analysis: https://gitlab.com/gnachman/iterm2/wikis/heapshot
Detailed steps to reproduce the problem:
- Go to Preferences > Profiles > Advanced > Automatic Profile Switching
- There is no rule to specify subprocesses using
&
, or if there is it isn't explained in the instructions.
What happened:
Suppose I have a profile called "Python" that uses the &Python
"Automatic Profile Switching" rule. Now suppose I invoke help()
- Python opens less
for viewing documentation, and so iTerm leaves my "Python" profile.
What should have happened:
It should be possible to specify a rule with subprocesses, such as &Python&less
or some similar syntax. I know iTerm keeps track of some sort of subprocess stack, as it is visible in the "Job Name" status bar component (see screenshot)
Maybe this is already possible, just not with the &Python&less
syntax I tried; if not, it would be a very useful feature for me.
Thank you as always for this very pleasant-to-use free software!