akinsho / toggleterm.nvim

A neovim lua plugin to help easily manage multiple terminal windows
GNU General Public License v3.0
4.06k stars 170 forks source link

fix: autochdir for custom terminals #553

Closed ttytm closed 3 months ago

ttytm commented 4 months ago

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.

diegodario88 commented 4 months ago

+1 waiting for this fix

ttytm commented 3 months ago

Ping @akinsho. Might be a trivial one.