- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 634
Closed
Labels
Description
Is your feature request related to a problem? Please describe.
next_git_item will take you to the directory containing the git item. It would be useful to navigate directly to the file.
In this case, you need to next_git_item 5 times to get to the file.
Describe the solution you'd like
next_git_file_item to navigate directly to the file.
Describe alternatives you've considered
Directories could also be recursively opened until the file item is found.
Additional context
I find myself using next_git_item edit next_git_item edit next_git_item ... very frequently.
Metadata
Metadata
Assignees
Labels
Type
Projects
Milestone
Relationships
Development
Select code repository

Activity
alex-courtis commentedon Jul 3, 2022
An alternative might be simply a
show_on_dirsoption for git, as per diagnostics.Both would be nice.
feat(#1389): add git.show_on_dirs
kyazdani42 commentedon Jul 3, 2022
Maybe just skipping if the file is a directory in the next/prev action would work too.
feat(#1389): add git.show_on_dirs (#1390)
kyazdani42 commentedon Jul 9, 2022
@alex-courtis is this working now ?
alex-courtis commentedon Jul 10, 2022
Closing.
show_on_dirsis a good enough solution.I'd still like some means of finding the git items in collapsed nodes, however I don't have a user story for that. Perhaps it involves fugitive instead of nvim-tree.
feat(nvim-tree#1389): add git.show_on_dirs (nvim-tree#1390)
feat(#1389): api: recursive node navigation for git and diagnostics (#…
feat(#1389): api: recursive node navigation for git and diagnostics (#…
16 remaining items