{"action":"created","issue":{"url":"https://api.github.com/repos/junegunn/fzf/issues/771","repository_url":"https://api.github.com/repos/junegunn/fzf","labels_url":"https://api.github.com/repos/junegunn/fzf/issues/771/labels{/name}","comments_url":"https://api.github.com/repos/junegunn/fzf/issues/771/comments","events_url":"https://api.github.com/repos/junegunn/fzf/issues/771/events","html_url":"https://github.com/junegunn/fzf/pull/771","id":195506896,"number":771,"title":"Append '/' to folders in the file widget","user":{"login":"Ambrevar","id":1489143,"avatar_url":"https://avatars.githubusercontent.com/u/1489143?v=3","gravatar_id":"","url":"https://api.github.com/users/Ambrevar","html_url":"https://github.com/Ambrevar","followers_url":"https://api.github.com/users/Ambrevar/followers","following_url":"https://api.github.com/users/Ambrevar/following{/other_user}","gists_url":"https://api.github.com/users/Ambrevar/gists{/gist_id}","starred_url":"https://api.github.com/users/Ambrevar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ambrevar/subscriptions","organizations_url":"https://api.github.com/users/Ambrevar/orgs","repos_url":"https://api.github.com/users/Ambrevar/repos","events_url":"https://api.github.com/users/Ambrevar/events{/privacy}","received_events_url":"https://api.github.com/users/Ambrevar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-12-14T11:28:59Z","updated_at":"2016-12-16T05:24:37Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/junegunn/fzf/pulls/771","html_url":"https://github.com/junegunn/fzf/pull/771","diff_url":"https://github.com/junegunn/fzf/pull/771.diff","patch_url":"https://github.com/junegunn/fzf/pull/771.patch"},"body":"This helps differentiating folders from files.\r\n\r\nBesdies, writing a folder with an appended slash on the commandline is\r\nusually what the user wants: the user can keep on completing/fzf-ing, it\r\nsaves one key stroke."},"comment":{"url":"https://api.github.com/repos/junegunn/fzf/issues/comments/267519724","html_url":"https://github.com/junegunn/fzf/pull/771#issuecomment-267519724","issue_url":"https://api.github.com/repos/junegunn/fzf/issues/771","id":267519724,"user":{"login":"Ambrevar","id":1489143,"avatar_url":"https://avatars.githubusercontent.com/u/1489143?v=3","gravatar_id":"","url":"https://api.github.com/users/Ambrevar","html_url":"https://github.com/Ambrevar","followers_url":"https://api.github.com/users/Ambrevar/followers","following_url":"https://api.github.com/users/Ambrevar/following{/other_user}","gists_url":"https://api.github.com/users/Ambrevar/gists{/gist_id}","starred_url":"https://api.github.com/users/Ambrevar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ambrevar/subscriptions","organizations_url":"https://api.github.com/users/Ambrevar/orgs","repos_url":"https://api.github.com/users/Ambrevar/repos","events_url":"https://api.github.com/users/Ambrevar/events{/privacy}","received_events_url":"https://api.github.com/users/Ambrevar/received_events","type":"User","site_admin":false},"created_at":"2016-12-16T05:24:37Z","updated_at":"2016-12-16T05:24:37Z","body":" OK, got it, that was quite obvious actually: I'm using the `+` argument, which means \"all folders\" here. So no folder (only files) gets printed till the search finishes, at which point the folder list gets passed to `printf`.\r\n\r\nEasy fix: use `;` instead. This will spawn one printf per folder, maybe costly.\r\nOther fix: filter out the root in the first place, so that the `sed` call isn't needed anymore."}}
{"actor":{"display_login":"Ambrevar"}}