Integrating iterm2-tools into the official iterm2 Python library
As you may know, I have a Python library called iterm2-tools that provides a few functionalities relating to some iTerm2 escape codes. In particular, it has
- Some functions to manage shell integration
- Some functions to manage images
- IPython integration for the shell integration (which has been broken on the latest IPython versions for some time)
I do use the library myself, particularly the shell integration and image support, but I've had less time to support it. Now that iTerm2 has its own official Python library, I think it would make sense to just merge it into that, and to deprecate iterm2-tools. I know of a few other projects that use it aside from my own, but the uptake hasn't been that much, and I doubt too many people would be sad to see it deprecated. For example, no one has complained that the IPython integration has been broken for years now.
If you agree, I can start a pull request. I think there should be a new submodule
iterm2.escape_codes which has functions for all the proprietary escape sequences. We can discuss the API naming. I chose some unfortunate names for my iterm2-tools images API, although I like my choices for the shell integration API.
The IPython integration we can hold off on. It could be interesting to have, but I don't use IPython myself anymore do I don't care about it personally, and I would be fine if you consider it out of scope.