Skip to content

Next / Prev Git File Item #1389

@alex-courtis

Description

@alex-courtis
Member

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.

20220703_094542 409x466

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.

Activity

alex-courtis

alex-courtis commented on Jul 3, 2022

@alex-courtis
MemberAuthor

An alternative might be simply a show_on_dirs option for git, as per diagnostics.

Both would be nice.

added a commit that references this issue on Jul 3, 2022
kyazdani42

kyazdani42 commented on Jul 3, 2022

@kyazdani42
Member

Maybe just skipping if the file is a directory in the next/prev action would work too.

added a commit that references this issue on Jul 3, 2022
736cc84
kyazdani42

kyazdani42 commented on Jul 9, 2022

@kyazdani42
Member

@alex-courtis is this working now ?

alex-courtis

alex-courtis commented on Jul 10, 2022

@alex-courtis
MemberAuthor

Closing. show_on_dirs is 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.

added a commit that references this issue on Oct 11, 2022
added a commit that references this issue on Jan 6, 2024
5d13cc8
added a commit that references this issue on Jan 7, 2024

16 remaining items

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @alex-courtis@kyazdani42

        Issue actions

          Next / Prev Git File Item · Issue #1389 · nvim-tree/nvim-tree.lua