feat: add history expansions and interactive keybindings #1
Reference in New Issue
Block a user
Delete Branch "feat/bangs-and-subs"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR adds bash-style history expansions and interactive keybindings to the Fish configuration.
Changes:
!^: First argument of the previous command.!*: All arguments of the previous command.^old^new: Quick substitution.!string: Last command starting withstring.!?string?: Last command containingstring.!-n:n^{th}previous command.Ctrl+G: Previous Path Head (Bash!$:h).Ctrl+F: Interactive History Substitution (Bash!!:s/old/new/).Ctrl+Alt+U: Replace Command Token (strips the command and moves cursor to front).README.mdwith a new "Key Bindings" section and expanded the "Abbreviations" section.