{"action":"created","issue":{"url":"https://api.github.com/repos/mawww/kakoune/issues/383","repository_url":"https://api.github.com/repos/mawww/kakoune","labels_url":"https://api.github.com/repos/mawww/kakoune/issues/383/labels{/name}","comments_url":"https://api.github.com/repos/mawww/kakoune/issues/383/comments","events_url":"https://api.github.com/repos/mawww/kakoune/issues/383/events","html_url":"https://github.com/mawww/kakoune/issues/383","id":102617656,"number":383,"title":"kakoune and fzf","user":{"login":"cvlmtg","id":6401008,"avatar_url":"https://avatars.githubusercontent.com/u/6401008?v=3","gravatar_id":"","url":"https://api.github.com/users/cvlmtg","html_url":"https://github.com/cvlmtg","followers_url":"https://api.github.com/users/cvlmtg/followers","following_url":"https://api.github.com/users/cvlmtg/following{/other_user}","gists_url":"https://api.github.com/users/cvlmtg/gists{/gist_id}","starred_url":"https://api.github.com/users/cvlmtg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cvlmtg/subscriptions","organizations_url":"https://api.github.com/users/cvlmtg/orgs","repos_url":"https://api.github.com/users/cvlmtg/repos","events_url":"https://api.github.com/users/cvlmtg/events{/privacy}","received_events_url":"https://api.github.com/users/cvlmtg/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-08-23T13:22:43Z","updated_at":"2016-04-11T20:53:11Z","closed_at":"2015-08-23T14:23:50Z","body":"I'm playing a bit with kakoune and fzf and I'm having a couple of issues\r\n\r\n1) I'm able to have a fuzzy selector for the buffers, but if I select the buffer currently displayed, the screen is completely erased except for the status line and I have to move the cursor to force a redraw\r\n\r\n2) the file selector is not working as fzf opens with an empty list and I still haven't figured out what's wrong...\r\n\r\n```\r\ndef·-docstring·'invoke·fzf·to·open·a·file'·\\¬\r\n··fzf-file·%{·%sh{¬\r\n····if·[·-z·\"$TMUX\"·];·then¬\r\n······echo·echo·only·works·inside·tmux¬\r\n····else¬\r\n······FILE=`ag·-l·-g·\"\"·|·fzf-tmux·-d·15`¬\r\n······if·[·-n·\"$FILE\"·];·then¬\r\n········echo·\"eval·-client·'$kak_client'·'edit·${FILE}'\"·|·kak·-p·${kak_session}¬\r\n······fi¬\r\n····fi¬\r\n}}¬\r\n¬\r\ndef·-docstring·'invoke·fzf·to·select·a·buffer'·\\¬\r\n··fzf-buffer·%{·%sh{¬\r\n····if·[·-z·\"$TMUX\"·];·then¬\r\n······echo·echo·only·works·inside·tmux¬\r\n····else¬\r\n······BUFFER=`echo·${kak_buflist}·|·tr·:·'\\n'·|·fzf-tmux·-d·15`¬\r\n······if·[·-n·\"$BUFFER\"·];·then¬\r\n········echo·\"eval·-client·'$kak_client'·'buffer·${BUFFER}'\"·|·kak·-p·${kak_session}¬\r\n······fi¬\r\n····fi¬\r\n}}¬\r\n¬\r\nmap·global·user·f·:fzf-file<ret>¬\r\nmap·global·user·b·:fzf-buffer<ret>¬\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/mawww/kakoune/issues/comments/208556772","html_url":"https://github.com/mawww/kakoune/issues/383#issuecomment-208556772","issue_url":"https://api.github.com/repos/mawww/kakoune/issues/383","id":208556772,"user":{"login":"Kareeeeem","id":2920965,"avatar_url":"https://avatars.githubusercontent.com/u/2920965?v=3","gravatar_id":"","url":"https://api.github.com/users/Kareeeeem","html_url":"https://github.com/Kareeeeem","followers_url":"https://api.github.com/users/Kareeeeem/followers","following_url":"https://api.github.com/users/Kareeeeem/following{/other_user}","gists_url":"https://api.github.com/users/Kareeeeem/gists{/gist_id}","starred_url":"https://api.github.com/users/Kareeeeem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kareeeeem/subscriptions","organizations_url":"https://api.github.com/users/Kareeeeem/orgs","repos_url":"https://api.github.com/users/Kareeeeem/repos","events_url":"https://api.github.com/users/Kareeeeem/events{/privacy}","received_events_url":"https://api.github.com/users/Kareeeeem/received_events","type":"User","site_admin":false},"created_at":"2016-04-11T20:53:11Z","updated_at":"2016-04-11T20:53:11Z","body":"Yes. It works fine when using the `find` command but not with ag. And like cvlmtg it works fine on it's own."}}