Possible to change mappings while certain FZF buffers open?
- Dominant language
- Vim Script
- Stars
- 10.3k
- Forks
- 608
- Avg merge
- 5d 8h
- Merged PRs (30d)
- 2
Description
Hey all, I really love the fzf plugin, it's totally changed the way I use vim and I love it.
I'm wondering if there's a way to make a remap for the fzf buffer for certain commands?
in my case, I want to make a keybinding, only for the `:Files` command (and derivatives) to bind `` to `/` so that space separating words will produce a proper filepath.
Currently, if I type "outer inner file name .py" - it won't find the file, but the file I wanted was `outerdirectory/innerdirectory/files/name.py`
I think mapping space to `/` should solve, this, as space is never needed in filepaths, and it's so automatic to press ( I use it in every other command so hard to train myself out of)
I did see that we can set autocommands for the `fzf` buffer type, but that will be for all fzf buffers; perhaps if there was a way to find out what was used to invoke the fzf command? I could also see the `g:fzf_actions` but that also didn't seem to be quite what I was looking for.
- [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
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.