From ea53cd29b56394f263a48067a6c4844c7ffa7776 Mon Sep 17 00:00:00 2001 From: Michele Cereda Date: Sat, 30 Nov 2024 01:28:41 +0100 Subject: [PATCH] chore(fish): note down key bindings --- knowledge base/fish.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/knowledge base/fish.md b/knowledge base/fish.md index b0d7473..7f46175 100644 --- a/knowledge base/fish.md +++ b/knowledge base/fish.md @@ -5,6 +5,7 @@ The friendly interactive shell. 1. [TL;DR](#tldr) 1. [Configuration](#configuration) 1. [Prompt](#prompt) +1. [Key bindings](#key-bindings) 1. [Further readings](#further-readings) 1. [Sources](#sources) @@ -100,6 +101,21 @@ end See [Starship] or [Tide]. +## Key bindings + +```sh +# Show all active key bindings. +bind +``` + +| Key combination | Binding name | Effect | +| --------------- | ------------------------------ | ----------------------------------------------------------------- | +| `CTRL` + `k` | `kill-line` | Delete text from the cursor position to the end of the line | +| `CTRL` + `e` | `end-of-line` | Move the cursor to the end of the line | +| `CTRL` + `w` | `backward-kill-path-component` | Delete previous word | +| `CTRL` + `u` | `backward-kill-line` | Delete text from the beginning of the line to the cursor position | +| `CTRL` + `l` | `clear-screen` | Clear screen | + ## Further readings - [Website]