The zsh function percol_select_history is so cool!
I want to make it greater by adding branch after finish.
To realize it, I changed finish_with_exit_code so that it can return the value.
Using this feature, you can change the history-search behavior as below.
If you push enter, zsh accept the history line immediately.
If you push C-k, zsh load the history line but doesn't accept it. You can edit the line after percol finishes.
The zsh function percol_select_history is so cool!
I want to make it greater by adding branch after finish. To realize it, I changed finish_with_exit_code so that it can return the value. Using this feature, you can change the history-search behavior as below.
C-k
, zsh load the history line but doesn't accept it. You can edit the line after percol finishes.In your
.zshrc
, put the lines below.In your
rc.py
, put the lines below.