{"action":"opened","issue":{"url":"https://api.github.com/repos/junegunn/fzf/issues/426","labels_url":"https://api.github.com/repos/junegunn/fzf/issues/426/labels{/name}","comments_url":"https://api.github.com/repos/junegunn/fzf/issues/426/comments","events_url":"https://api.github.com/repos/junegunn/fzf/issues/426/events","html_url":"https://github.com/junegunn/fzf/issues/426","id":117760848,"number":426,"title":"fzf nvim terminal issue","user":{"login":"acornejo","id":83786,"avatar_url":"https://avatars.githubusercontent.com/u/83786?v=3","gravatar_id":"","url":"https://api.github.com/users/acornejo","html_url":"https://github.com/acornejo","followers_url":"https://api.github.com/users/acornejo/followers","following_url":"https://api.github.com/users/acornejo/following{/other_user}","gists_url":"https://api.github.com/users/acornejo/gists{/gist_id}","starred_url":"https://api.github.com/users/acornejo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acornejo/subscriptions","organizations_url":"https://api.github.com/users/acornejo/orgs","repos_url":"https://api.github.com/users/acornejo/repos","events_url":"https://api.github.com/users/acornejo/events{/privacy}","received_events_url":"https://api.github.com/users/acornejo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-19T07:53:52Z","updated_at":"2015-11-19T07:53:52Z","closed_at":null,"body":"I use fzf for almost everything these days. I recently tried out neovim, and realized fzf doesn't work in some settings.\r\n\r\nSometimes I chain two FZF's, first I select from one list of items, then based on that selection, I then present a second list of items. In these cases, the second selection is NOT in insert mode when using neovim, which cause all my keystrokes to be interpreted by neovim instead of FZF. Here is the smallest example I could come up with that reproduces the behavior (in reality I am doing more complicated things, but the issue is the same):\r\n\r\n```viml\r\ncommand! FZFChainExample call fzf#run({                                                                                                                                               \r\n\\ 'source': \"ls -1p ~ | awk -F/ '/\\\\/$/ {print $1}'\",                                                                                                                         \r\n\\ 'sink': function('<sid>rec_handler'),                                                                                                                                           \r\n\\ 'options': '-m',                                                                                                                                                                \r\n\\ 'down': '50%'                                                                                                                                                                   \r\n\\ }) \r\n\r\nfunction! s:rec_handler(dir)                                                                                                                                                      \r\n  execute 'lcd ~/'.a:dir                                                                                                                                                      \r\n  execute 'FZF'                                                                                                                                                                   \r\nendfunction\r\n```\r\n\r\nthis command will first display a list of directories in the home folder, and then (once a directory is selected) it will present a second FZF with all files in that directory. The example doesn't matter, what matters is that this works well in vim, but in neovim the second FZF is not receiving the keystrokes (I have to press i to go to insert mode)."}}