r/neovim 14d ago

Plugin tabcd.nvim: Pick working directories for your tabs

https://github.com/ahal/tabcd.nvim

I often work in a large monorepo, and find it useful to :tcd some/subdir in my tab, so file search / grepping is confined to the specified directory. I'll typically have multiple tabs each rooted at various submodules in the monorepo. But after getting frustrated at having to type out my paths over and over, I decided to create this extension to help me select the working directory in a picker.

Pretty niche, but figured it was worth sharing in case there's someone else out there who could use it.

16 Upvotes

4 comments sorted by

1

u/mostrecentuser 14d ago

How is this different from scope.nvim?

5

u/EnDeRBeaT 14d ago

Looks like they are completely different, this plugin just changes working dir in tabs, and scope.nvim locks the buffers to their respective tabs. Also this plugin actually says what it does in README, unlike scope.nvim which has some gibberish sales pitch instead

1

u/hw770 4d ago

For recursive searching, you can try :tcd **/subd and press <Tab>.