Comments (4)
See junegunn/fzf#2916 (comment)
fzf#run
returning values on regular Vim is a happy coincidence, and you shouldn't rely on this behavior because it's not guaranteed if you open fzf in different layouts. And there's no way to implement blocking fzf#run
on Neovim unless you set up fzf to open using fzf-tmux. It's a shame we don't have better options.
from fzf.vim.
After using the minimal setup using vim -Nu <(curl https://gist.githubusercontent.com/junegunn/6936bf79fedd3a079aeb1dd2f3c81ef5/raw)
I realized that fzf#run
already returns the selected line(s). I must have a problem somewhere in my .vimrc that's making fzf#run
not return the selected lines.
from fzf.vim.
Ok I'm reopening because :echo fzf#run()
works with the minimal vim setup but it doesn't work with a minimal Neovim setup!
Steps to reproduce:
- Open a minimal neovim setup:
$ nvim --version
NVIM v0.9.1
...
nvim -Nu <(curl https://gist.githubusercontent.com/junegunn/6936bf79fedd3a079aeb1dd2f3c81ef5/raw)
- Run
:echo fzf#run()
. Nothing is echo'd.
from fzf.vim.
Thanks for your reply, @junegunn. If my understanding is correct, the fundamental issue is that vim/neovim have a single-threaded event loop. This makes it difficult to escape from the callback paradigm without using green threads.
Thanks also for the tip about fzf-tmux. I'll give that a try.
from fzf.vim.
Related Issues (20)
- Question: can I change my fzf query with a shortcut
- Feature Request: let preview command highlight line HOT 3
- Getting `;5u` when pressing C-/ to toggle preview
- FZF Popup breaks when you scroll on windows
- How to use Rg to search recent file contents HOT 5
- Feature Request: add a fzf#vim#buffer_grep
- Unable to use commands like :Files and :Buffers HOT 3
- Splits with WinBar change size when opening and closing FZF
- custom fzf_action behaviour have been broken by recent commit HOT 2
- :Helptags perl command failing HOT 11
- "Tab drop" no longer works as fzf action for jumping to existing tab HOT 2
- FZF Preview and Light themes colors not looking ok HOT 7
- Errors when running 'History:' and 'History/' commands HOT 1
- preview.sh not previewing files with nested path on Windows HOT 5
- Ctrl+T/Ctrl+X/Ctrl+V actions don't work correctly in some cases when a swap file exists HOT 4
- How to get fzf.vim to index files at startup? HOT 1
- cursor shape changed from underscore to block in iTerm2 HOT 4
- how to grep through a passed filelist
- Regression/error when running :Tags HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fzf.vim.