Hot answers tagged zsh
There is zsh-cmd-architect created specifically to do what you describe. It displays you current command, allows to move blocks of it left and right, and also displays searchable history, from which you can choose blocks of commands there.
Answering because this was the first DDG result in searching for the same issue. First, you need to get the code for the delete key. Go to your shell prompt, for example: alec@su:~$ Execute the 'cat' program, which you will use to determine which code corresponds to your 'delete' key. alec@su:~$ cat Press 'delete' on your keyboard and cat will ...
There is a plugin: zsh-snippets. Use it with a plugin manager like zplugin. It binds to Meta-x, tested it – works. Here is complete zplugin report on it: Plugin report for willghatch/zsh-snippets ----------------------------------------- Source snippets.plugin.zsh Zle -N snippet-expand Bindkey ^[x snippet-expand Zle -N run-help-list-snippets Functions ...
You can use two projects/plugins: https://github.com/psprint/history-search-multi-word https://github.com/psprint/zsh-navigation-tools Each of them allows multi-word incremental searching through Zshell's history. Zsh Navigation Tools also allows approximate matching and has other features.
Only top voted, non community-wiki answers of a minimum length are eligible