Display stylized feedback messages
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Abreu aca47658c1
Updated README.md
11 months ago
completions Initial commit 11 months ago
functions Initial commit 11 months ago
hooks Initial commit 11 months ago
LICENSE Initial commit 11 months ago
README.md Updated README.md 11 months ago
completions.fish Initial commit 11 months ago
feedback.fish Initial commit 11 months ago
feedback_instructions.fish Initial commit 11 months ago

README.md

GPL License Fish Shell Version Oh My Fish Framework

feedback

A plugin for Oh My Fish.

Display feedback and diagnostic messages - that is, messages that are printed to stderr and, as such, are not part of s program's output - stylized through control characters. Text placed between pipe characters, i.e. |, will be displayed in bold. Messages come in the following flavors:

  • win, a confirmation message.

  • wrn, a warning message.

  • err, an error message. It is a good practice to prefix your error message with the name of the command that failed, such as command: error message.

  • dim, a dimmed message. Commonly used to point out some activity in the background.

  • reg, a regular message.

Example Usage

asciicast

Syntax

[win/err/wrn/dim/reg] [-nsEeh] [MESSAGE]

Options

  • -o, overwrite current line.

  • -n, do not output a newline.

  • -s, do not separate arguments with spaces.

  • -E, disable interpretation of backslash escapes (default).

  • -e, enable interpretation of backslash escapes.

  • -h, display instructions.

Escape sequences

If -e is used, the following sequences are recognized:

  • \, backslash.

  • \a, alert (BEL).

  • \b, backspace.

  • \c, produce no further output.

  • \e, escape.

  • \f, form feed.

  • \n, new line.

  • \r, carriage return.

  • \t, horizontal tab.

  • \v, vertical tab.

  • \0NNN, byte with octal value NNN (1 to 3 digits).

  • \xHH, byte with hexadecimal value HH (1 to 2 digits).

Install

omf repositories add https://gitlab.com/argonautica/argonautica
omf install feedback

Dependencies

Plugin contains_opts. If not installed, it'll be installed together with feedback.