From e1349b9c4a787913dbe0941bfae221afa6312142 Mon Sep 17 00:00:00 2001 From: Max Jacobson Date: Sun, 19 Jan 2025 19:24:10 -0500 Subject: [PATCH] Fix formatting of abbr example I'm running fish 4.0b1 locally and I tried running `help abbr` and browsing the docs. I noticed one example which wasn't formatted correctly. I'm not too familiar with rst, but based on looking at the file, it seems that this is how example code should be represented. (cherry picked from commit d47a4899b4179addaedd73f18cc1219bb6d9564a) --- doc_src/cmds/abbr.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/doc_src/cmds/abbr.rst b/doc_src/cmds/abbr.rst index b4cd9a7aa..91f952d25 100644 --- a/doc_src/cmds/abbr.rst +++ b/doc_src/cmds/abbr.rst @@ -125,6 +125,7 @@ This first creates a function ``vim_edit`` which prepends ``vim`` before its arg This creates an abbreviation "4DIRS" which expands to a multi-line loop "template." The template enters each directory and then leaves it. The cursor is positioned ready to enter the command to run in each directory, at the location of the ``!``, which is itself erased. :: + abbr --command git co checkout Turns "co" as an argument to "git" into "checkout". Multiple commands are possible, ``--command={git,hg}`` would expand "co" to "checkout" for both git and hg.