junegunn / junegunn/fzf.vim

question: anyway to make Commands work with visual selections

Open
#1,226 0 comments 2 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

### question:
is there anyway to have the `:Commands` command work with visual selection and ranges? currently when I map it in vim, with visual selection I got `no range allowed` error. I can work around this limitation with `:` to consume the `'<,'>` that vim puts automatically in front. however, I don't have a good way to bring it back, so the command selected by `Commands` ends up always not having any ranges, e.g., I end up executing `:MyCommand` instead of `:'<,'>MyCommand` even if I started fzf `Commands` with a visual selection.

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.