{"action":"created","issue":{"url":"https://api.github.com/repos/junegunn/fzf/issues/144","labels_url":"https://api.github.com/repos/junegunn/fzf/issues/144/labels{/name}","comments_url":"https://api.github.com/repos/junegunn/fzf/issues/144/comments","events_url":"https://api.github.com/repos/junegunn/fzf/issues/144/events","html_url":"https://github.com/junegunn/fzf/issues/144","id":60825550,"number":144,"title":"Option for Ctrl-R to use current command-line content as a search pattern [idea]","user":{"login":"balta2ar","id":340676,"avatar_url":"https://avatars.githubusercontent.com/u/340676?v=3","gravatar_id":"","url":"https://api.github.com/users/balta2ar","html_url":"https://github.com/balta2ar","followers_url":"https://api.github.com/users/balta2ar/followers","following_url":"https://api.github.com/users/balta2ar/following{/other_user}","gists_url":"https://api.github.com/users/balta2ar/gists{/gist_id}","starred_url":"https://api.github.com/users/balta2ar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/balta2ar/subscriptions","organizations_url":"https://api.github.com/users/balta2ar/orgs","repos_url":"https://api.github.com/users/balta2ar/repos","events_url":"https://api.github.com/users/balta2ar/events{/privacy}","received_events_url":"https://api.github.com/users/balta2ar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-12T14:19:57Z","updated_at":"2015-03-12T15:37:44Z","closed_at":null,"body":"Very often I reuse parts of commit messages from previous commands (history) in command line. zsh-autosuggestions helps me with that. For example, I type `hg ci` and it suggests `hg ci -m \"RT123456 Some previous commit message\"`. However, sometimes it doesn't suggest the right thing. That's when I press `Ctrl-R`.\r\n\r\nI thought that when my command line already contains `hg ci` and I press `Ctrl-R` to search in the history, it would be handy to use what I've already typed as initial search pattern to avoid typing it again.\r\n\r\nI have a feeling this might be useful. Do you think you could add an option to enable such behavior? I'm using zsh. Thank you."},"comment":{"url":"https://api.github.com/repos/junegunn/fzf/issues/comments/78505024","html_url":"https://github.com/junegunn/fzf/issues/144#issuecomment-78505024","issue_url":"https://api.github.com/repos/junegunn/fzf/issues/144","id":78505024,"user":{"login":"junegunn","id":700826,"avatar_url":"https://avatars.githubusercontent.com/u/700826?v=3","gravatar_id":"","url":"https://api.github.com/users/junegunn","html_url":"https://github.com/junegunn","followers_url":"https://api.github.com/users/junegunn/followers","following_url":"https://api.github.com/users/junegunn/following{/other_user}","gists_url":"https://api.github.com/users/junegunn/gists{/gist_id}","starred_url":"https://api.github.com/users/junegunn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/junegunn/subscriptions","organizations_url":"https://api.github.com/users/junegunn/orgs","repos_url":"https://api.github.com/users/junegunn/repos","events_url":"https://api.github.com/users/junegunn/events{/privacy}","received_events_url":"https://api.github.com/users/junegunn/received_events","type":"User","site_admin":false},"created_at":"2015-03-12T15:37:44Z","updated_at":"2015-03-12T15:37:44Z","body":"I like the idea, though I think it will be only possible on zsh, or maybe fish.. but I'm not really into that and growing weary of dealing with its non-standard stuff.\r\n\r\nI'll look into it when I get some time. (I'm a bash user and honestly not really familiar with zsh stuff) Feel free to send me a PR if you feel like it."}}