Feature request: Add new type 'vcs' for g:startify_lists
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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