mhinz / mhinz/vim-startify

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

Open
#548 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Vim Script
Stars
5.4k
Forks
181
PR merge metrics
No merged PRs in 30d

Description

I have `let g:startify_change_to_vcs_root = 1` and thought I could list all recent files from that VCS project like so:
```vim
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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the handling for g:startify_lists and the existing 'dir' type, then inspect how g:startify_change_to_vcs_root affects the current directory. Define the expected behavior for a new 'vcs' list type that uses the latest edited VCS project, and verify the resulting recent-file list against a project subfolder scenario.

Written by the indexing model from the issue text.

Assessment

Tech stack
vim
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.