CHAPTER 14Writing Editor Commands
Sometimes you may find that zsh's line editor doesn't quite provide the features you'd like, or that you'd like a quick way of performing frequent tasks. For example, there are commands to move the cursor by characters, words, and lines; maybe you frequently want to move a certain number of characters, or to a particular character, instead. Maybe a command you use frequently to search in the shell's history doesn't leave the cursor in the position you want. Maybe you'd like an editor command to delete a complete command-line argument, even if the argument consists of a complicated quoted expression. Perhaps a command behaves slightly differently from the way it does in another shell; you've seen that bash often ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access