Closed hlascelles closed 6 years ago
@hlascelles: You are absolutely right. My muscle memory is used to type Ctrl+R
to open the history selection, and then write the search terms, but indeed it would be much nicer to reuse the text that has been already typed. I have noticed that the Zsh script provided with fzf
behaves this way as well. I'll be glad to merger a PR.
Great stuff.... Done: https://github.com/aperezdc/zsh-fzy/pull/5
Steps:
1) Type something 2) Press bindkey 3) Expect that the initial search should have happened with what was already typed
Code fix would make use of something along the lines of...
If you agree, I'll create a PR?