junegunn / junegunn/fzf.vim

Why does the History command not specify --tiebreak=index?

Open
#1,254 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Vim Script
Stars
10.3k
Forks
608
Avg merge
5d 8h
Merged PRs (30d)
2

Description

- [x] I have fzf 0.23.0 or above
- [x] I have read through https://github.com/junegunn/fzf.vim/blob/master/README.md
- [x] I have read through https://github.com/junegunn/fzf/blob/master/README-VIM.md
- [x] I have read through the manual page of fzf (`man fzf`)
- [x] I have searched through the existing issues

This is a question, and depending on the answer, a feature request. For the `:History` commands it is very useful to be able to quickly get the recently used entries. For that reason `:History:` and `:History/` specify only `--tiebreak=index`, because getting the most recent entry almost always trumps the shortest command.

I would argue that the same logic would apply to `:History` (file history), but it doesn't specify `--tiebreak=index`. It uses the default `length, index` tiebreak, which means that file you opened 10 mins ago gets less preference than the file you opened a week ago which has a slightly smaller path.

So my question is, why doesn't `:History` specify `--tiebreak=index`? I really would argue that 'get the most recent matching file' is almost always what the user wants.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.