Skip to content
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

Feature request: Add new type 'vcs' for g:startify_lists #548

Open
karamellpelle opened this issue Aug 17, 2023 · 1 comment
Open

Feature request: Add new type 'vcs' for g:startify_lists #548

karamellpelle opened this issue Aug 17, 2023 · 1 comment

Comments

@karamellpelle
Copy link

I have let g:startify_change_to_vcs_root = 1 and thought I could list all recent files from that VCS project like so:

let g:startify_lists = [
      \ { 'type': 'dir',       'header': ['   Recent files in project '. fnamemodify(getcwd(), ':t')] },
      \ ]

But getcwd() is not vcs_root but the current directory (suppose I am in a subfolder of the project).

Suggestion add an additional type 'vcs' (instead of 'dir' here) that lists recent files from the latest edited VCS project.

@Konfekt
Copy link
Contributor

Konfekt commented Mar 23, 2024

Does this setting work for you? If found Fugitive's

        autocmd BufRead,BufNewFile *
                    \ if !empty(FugitiveGitDir()) |
                    \   Glcd |
                    \ endif

more reliable and was about to open an issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants