LeaderF
LeaderF copied to clipboard
how to use '--heading' in the interactive mode
- vim or neovim?
- [x] vim
- [ ] neovim
- Output of
vim --version
ornvim --version
: 8.2 - Output of
:echo has("python")
: - Output of
:echo has("python3")
: - Output of
:echo &pythondll
(only vim, not neovim): - Output of
:echo &pythonthreedll
(only vim, not neovim): - Output of
:py print(sys.version)
: - Output of
:py3 print(sys.version)
: - Output of
:echo g:Lf_Debug_Cmd
: - Output of
:echo g:Lf_FilesFromCache
: - Operating system:
- [x] Linux
- [ ] Mac OS X
- [ ] Windows
- [ ] Etc.
- Configurations related to LeaderF in vimrc:
nnoremap
g :Leaderf rg --fullScreen --heading
Describe your question, feature request, or bug.
I can use "--heading" like ":Leaderf rg --fullScreen foo --heading" to search "foo", but I can't use it in the interactive mode.
Steps to reproduce
Actual behaviour
Currently, it will return the heading format search result of "".
Expected behaviour
heading format in the interactive mode
let g:Lf_RgConfig = [
\ "--heading"
\]
didn't work as well
"--heading" does not support interactive mode, because interactive mode will lose the file name information.
Thank you for the quick reply.
I don't quite get your point. The information in "no-heading" and "heading" mode are quite alike, the difference is how they are organized, and we can use the "heading" mode to show the search results for the current word. what does it mean by "lose the file name information"?
What do you mean by interactive mode
?
Sorry for the late reply, for the
interactive mode
I mean typing interactively and get the instant search results response for the keyword.
I can
rg
the current word in the heading
format, but can't use this format when I want to change the keyword.
I think now you can use Leaderf rg --live --heading
.