You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I often work deep inside a Git repository, for example:
/home/user/github/project/this/is/getting/deep/
When I run lazygit from this subdirectory, it shows me all changes across the entire repo (root at /home/user/github/project), which can be overwhelming.
Is there a way to make lazygit only show files and changes under the current working directory? Something like:
cd /home/user/github/project/this/is/getting/deep/
lazygit --filter .
or maybe lazygit respects the current directory by default, showing only files under it?
If this isn’t currently supported, are there plans to add this feature? It would really help when working in large repos or monorepos, to focus only on the relevant subfolder.
Real use case: managing .dotfiles with stow
I manage my .dotfiles repo which has a .dotfiles/ folder with lots of config files organized in subdirectories. I use stow to symlink config files into my home directory.
When I’m working inside a linked subfolder of .dotfiles and run lazygit, it shows me changes across the entire dotfiles repo, which is large and cluttered.
Being able to filter lazygit to just the current subfolder would let me focus only on the part I’m editing, making staging and commits easier.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I often work deep inside a Git repository, for example:
When I run
lazygit
from this subdirectory, it shows me all changes across the entire repo (root at/home/user/github/project
), which can be overwhelming.Is there a way to make lazygit only show files and changes under the current working directory? Something like:
or maybe lazygit respects the current directory by default, showing only files under it?
If this isn’t currently supported, are there plans to add this feature? It would really help when working in large repos or monorepos, to focus only on the relevant subfolder.
Real use case: managing
.dotfiles
withstow
I manage my
.dotfiles
repo which has a.dotfiles/
folder with lots of config files organized in subdirectories. I usestow
to symlink config files into my home directory.When I’m working inside a linked subfolder of
.dotfiles
and runlazygit
, it shows me changes across the entire dotfiles repo, which is large and cluttered.Being able to filter lazygit to just the current subfolder would let me focus only on the part I’m editing, making staging and commits easier.
Thanks for any pointers or suggestions!
Beta Was this translation helpful? Give feedback.
All reactions