{"action":"closed","issue":{"url":"https://api.github.com/repos/junegunn/fzf/issues/873","repository_url":"https://api.github.com/repos/junegunn/fzf","labels_url":"https://api.github.com/repos/junegunn/fzf/issues/873/labels{/name}","comments_url":"https://api.github.com/repos/junegunn/fzf/issues/873/comments","events_url":"https://api.github.com/repos/junegunn/fzf/issues/873/events","html_url":"https://github.com/junegunn/fzf/issues/873","id":214201051,"number":873,"title":"Sort Input","user":{"login":"laktak","id":959858,"avatar_url":"https://avatars3.githubusercontent.com/u/959858?v=3","gravatar_id":"","url":"https://api.github.com/users/laktak","html_url":"https://github.com/laktak","followers_url":"https://api.github.com/users/laktak/followers","following_url":"https://api.github.com/users/laktak/following{/other_user}","gists_url":"https://api.github.com/users/laktak/gists{/gist_id}","starred_url":"https://api.github.com/users/laktak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laktak/subscriptions","organizations_url":"https://api.github.com/users/laktak/orgs","repos_url":"https://api.github.com/users/laktak/repos","events_url":"https://api.github.com/users/laktak/events{/privacy}","received_events_url":"https://api.github.com/users/laktak/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-03-14T20:45:36Z","updated_at":"2017-03-19T10:28:57Z","closed_at":"2017-03-19T10:28:57Z","body":"<!-- Check all that apply [x] -->\r\n- Category\r\n    - [x] fzf binary\r\n    - [ ] fzf-tmux script\r\n    - [ ] Key bindings\r\n    - [ ] Completion\r\n    - [ ] Vim\r\n    - [ ] Neovim\r\n    - [ ] Etc.\r\n- OS\r\n    - [x] Linux\r\n    - [x] Mac OS X\r\n    - [ ] Windows\r\n    - [ ] Windows Subsystem for Linux\r\n    - [ ] Etc.\r\n- Shell\r\n    - [x] bash\r\n    - [ ] zsh\r\n    - [ ] fish\r\n\r\nWould it be possible to add an option to sort the input dynamically?\r\n\r\nI'm using this to get all files of my notes folder sorted by modified date:\r\n\r\n```\r\nag -f -la '.*' | while read file\r\ndo\r\n  DATE=$(stat -c %y \"$file\" 2> /dev/null)\r\n  echo ${DATE/%\\ */} $file\r\ndone | sort -r\r\n```\r\n\r\nThis gives me a list like:\r\n```\r\n2017-03-12 foo\r\n2017-03-13 bar\r\n2017-03-14 foobar\r\n```\r\n\r\nWhich is fine except that because of `| sort` fzf has to wait for the process to complete before it receives any data. If it could sort the input data itself it could start displaying the results immediately."}}
{"actor":{"display_login":"junegunn"}}