This PR adds bash-style history expansions and interactive keybindings to the Fish configuration.
Changes:
History Expansions: Implemented via abbreviations and helper functions to replicate common Bash "bang" operations:
!^: First argument of the previous command.
!*: All arguments of the previous command.
^old^new: Quick substitution.
!string: Last command starting with string.
!?string?: Last command containing string.
!-n: n^{th} previous command.
Interactive Key Bindings:
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).
Documentation: Updated README.md with a new "Key Bindings" section and expanded the "Abbreviations" section.
This PR adds bash-style history expansions and interactive keybindings to the Fish configuration.
### Changes:
- **History Expansions:** Implemented via abbreviations and helper functions to replicate common Bash "bang" operations:
- `!^`: First argument of the previous command.
- `!*`: All arguments of the previous command.
- `^old^new`: Quick substitution.
- `!string`: Last command starting with `string`.
- `!?string?`: Last command containing `string`.
- `!-n`: $n^{th}$ previous command.
- **Interactive Key Bindings:**
- `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).
- **Documentation:** Updated `README.md` with a new "Key Bindings" section and expanded the "Abbreviations" section.
- Replicate bash bang-operations (!^, !*, !string, etc.) via abbreviations
- Add Ctrl+G for previous path head insertion
- Add Ctrl+F for interactive history substitution
- Add Ctrl+Alt+U to quickly replace command tokens
- Update README documentation for all new features
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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.