-
-
Notifications
You must be signed in to change notification settings - Fork 624
Next / Prev Git File Item #1389
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
An alternative might be simply a Both would be nice. |
Maybe just skipping if the file is a directory in the next/prev action would work too. |
@alex-courtis is this working now ? |
Closing. 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. |
…2525) * feat(#1389): add next recursive for git and diag moves The recurse opt can be used to directly go to the next item showing git/diagnostic status recursively. Signed-off-by: Antonin Godard <[email protected]> * refactor: status logic in single function Rename get_status to status_is_valid. Use status_is_valid function in multiple place to avoid duplicating code. Signed-off-by: Antonin Godard <[email protected]> * feat(#1389): add prev recursive for git and diag moves Signed-off-by: Antonin Godard <[email protected]> * fix(#1389): next recursive: take root node into account The root node cannot have a status. Previously if moving from the root node, status_is_valid was trying to fetch the status from it and errored. Signed-off-by: Antonin Godard <[email protected]> * fix(#1389): doc: remove show_on_open_dirs limitation Signed-off-by: Antonin Godard <[email protected]> * feat(#1389): move find_node_line to utils Signed-off-by: Antonin Godard <[email protected]> * feat(#1389): doc: note recursive moves are to files only, tidy --------- Signed-off-by: Antonin Godard <[email protected]> Co-authored-by: Alexander Courtis <[email protected]>
…2525) * feat(#1389): add next recursive for git and diag moves The recurse opt can be used to directly go to the next item showing git/diagnostic status recursively. Signed-off-by: Antonin Godard <[email protected]> * refactor: status logic in single function Rename get_status to status_is_valid. Use status_is_valid function in multiple place to avoid duplicating code. Signed-off-by: Antonin Godard <[email protected]> * feat(#1389): add prev recursive for git and diag moves Signed-off-by: Antonin Godard <[email protected]> * fix(#1389): next recursive: take root node into account The root node cannot have a status. Previously if moving from the root node, status_is_valid was trying to fetch the status from it and errored. Signed-off-by: Antonin Godard <[email protected]> * fix(#1389): doc: remove show_on_open_dirs limitation Signed-off-by: Antonin Godard <[email protected]> * feat(#1389): move find_node_line to utils Signed-off-by: Antonin Godard <[email protected]> * feat(#1389): doc: note recursive moves are to files only, tidy --------- Signed-off-by: Antonin Godard <[email protected]> Co-authored-by: Alexander Courtis <[email protected]>
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.The text was updated successfully, but these errors were encountered: