mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-03 03:41:14 -03:00
docs/string: Separate "pad" and "shorten"
This isn't the same as "join"/"join0", where one is just a special case of the other. These are two different, if basically opposite commands. But more importantly this was a huge mess and the formatting was broken.
This commit is contained in:
@@ -81,13 +81,15 @@ Examples
|
||||
# Taking 20 columns from the right instead:
|
||||
…in-path-with-expand
|
||||
|
||||
.. END EXAMPLES
|
||||
|
||||
See Also
|
||||
--------
|
||||
|
||||
.. BEGIN SEEALSO
|
||||
|
||||
- :ref:`string<cmd-string>`'s ``pad`` subcommand does the inverse of this command, adding padding to a specific width instead.
|
||||
|
||||
- The :doc:`printf <printf>` command can do simple padding, for example ``printf %10s\n`` works like ``string pad -w10``.
|
||||
|
||||
- :doc:`string length <string-length>` with the ``--visible`` option can be used to show what fish thinks the width is.
|
||||
|
||||
.. END EXAMPLES
|
||||
|
||||
Reference in New Issue
Block a user