Currently, autochdir won't work for custom terminals.
So currently I encounter scenarios like the following: Opening a custom terminal with i.e lazygit in a git project then closing the terminal, switching buffers to another git project and re toggling it, keeps opening lazygit in the first directory.
The changes in the PR aim to make this functionality work - switching buffers in the same session to another git project and opening a custom terminal should open it with the new git projects working directory.
Currently, autochdir won't work for custom terminals.
So currently I encounter scenarios like the following: Opening a custom terminal with i.e lazygit in a git project then closing the terminal, switching buffers to another git project and re toggling it, keeps opening lazygit in the first directory.
The changes in the PR aim to make this functionality work - switching buffers in the same session to another git project and opening a custom terminal should open it with the new git projects working directory.