junegunn / junegunn/fzf.vim

Is it possible to show line number in GFiles ?

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

Description

- Category
- [x] Question
- [x] Bug ?
- [ ] Suggestion
- OS
- [ ] Linux
- [x] macOS
- [ ] Windows
- [ ] Etc.
- Vim
- [ ] Vim
- [x] Neovim

I added `blank line` at line 8, then saved
![screen shot 2561-07-08 at 23 15 11](https://user-images.githubusercontent.com/13719896/42421753-020f743a-8305-11e8-9330-e013725a543a.png)

![screen shot 2561-07-08 at 23 15 23](https://user-images.githubusercontent.com/13719896/42421754-0af84f0e-8305-11e8-9c6a-731d11443ef8.png)

I wonder if we could config `GFiles?` to show absolute line number (without relative like the second picture).

If you notice, the red plus sign should be at the bottom because it's line 8.

My configure is
```
command! -bang -nargs=* Find call fzf#vim#grep(
\ 'rg --column --line-number --no-heading --follow --color=always '., 1,
\ 0 ? fzf#vim#with_preview('up:60%') : fzf#vim#with_preview('right:50%:hidden', '?'), 0)
command! -bang -nargs=? -complete=dir Files
\ call fzf#vim#files(, fzf#vim#with_preview('right:50%', '?'), 0)
command! -bang -nargs=? -complete=dir GitFiles
```

Thanks!

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.