Git Scope Explorer is a focused file explorer for changed files.
It shows only directories and files touched by git status, so you can work inside active paths without scanning the full project tree.
- Dedicated activity bar view called Changed Directories
- Git status badges on files and roots
- Quick file actions from tree context menu
- Automatic refresh when git index or filesystem state changes
- Neovim module at
lua/git_file_explorer/init.lua
M: ModifiedA: AddedD: DeletedU: UntrackedR: RenamedC: Conflict
Hovering an item shows staged and unstaged status details.
From the tree view context menu:
- New File
- New Folder
- Rename
- Delete with confirmation
- Open a git repository in VS Code.
- Select the Git Scope Explorer icon in the activity bar.
- Use the Changed Directories tree to browse changed paths.
Activation is automatic when a .git directory exists in the workspace.
When the Git Scope Explorer tree has focus:
Enterorl: Open file or expand folderh: Collapse folder/: Start filter input in Neovima: New fileA: New folderr: Renames: Stage or unstage file or directory in Neovimd: DeleteR: Refreshq: Close Git Scope Explorer window in Neovim
Create ~/.config/nvim/lua/plugins/git-scope-explorer.lua:
return {
{
"Kandeel4411/git-file-explorer",
lazy = true,
cmd = { "GitScope" },
keys = {
{
"gs",
function()
vim.cmd("GitScope")
end,
desc = "Git Scope Explorer",
mode = "n",
},
},
config = function()
require("git_file_explorer").setup()
end,
},
}Then run :Lazy sync and restart Neovim.
Usage notes:
- Run
:GitScopein any git repo. - The panel opens in a left split.
- Use
sto stage a file or directory. - Use
sagain to unstage it.
- VS Code
1.85.0or later - Git available in your
PATH
npm install
npm run compile
npm run watch
npm run test
npm run packagePress F5 in VS Code to launch an Extension Development Host.
For contribution workflow and hook setup, see CONTRIBUTING.md.
Quick start:
pip install pre-commit
pre-commit install
npm test
pre-commit run -aMIT