vim-fugitive icon indicating copy to clipboard operation
vim-fugitive copied to clipboard

Feature request: fugitive_gi opens "local" .gitignore

Open ANaumann85 opened this issue 2 years ago • 1 comments

Currently the map gi with a counter opens the top-most .gitignore. It would be nice if the mapping would choose the nearest file.

Example:

.git/
.gitignore
report/.gitignore
report/README.md
report/README.pdf

If I choose to ignore report/README.pdf, then fugitive_gI should add the line README.pdf to the file report/.gitignore.

For even deeper levels, I think the first ignore file should be choosen.

ANaumann85 avatar May 03 '23 10:05 ANaumann85

The idea I had was that 1gi would open the top-level, 2gi would go one level deep, etc. I just never got around to implementing it.

tpope avatar Jul 04 '23 22:07 tpope