diff --git a/README.rst b/README.rst index 05216ba66..5256d0a5d 100644 --- a/README.rst +++ b/README.rst @@ -90,7 +90,7 @@ Running fish requires: - some common \*nix system utilities (currently ``mktemp``), in addition to the basic POSIX utilities (``cat``, ``cut``, ``dirname``, - ``file``, ``ls``, ``mkdir``, ``mkfifo``, ``rm``, ``sh``, ``sort``, ``tee``, ``tr``, + ``ls``, ``mkdir``, ``mkfifo``, ``rm``, ``sh``, ``sort``, ``tee``, ``tr``, ``uname`` and ``sed`` at least, but the full coreutils plus ``find`` and ``awk`` is preferred) @@ -100,6 +100,7 @@ The following optional features also have specific requirements: messages require ``man`` for display - automated completion generation from manual pages requires Python 3.5+ - the ``fish_config`` web configuration tool requires Python 3.5+ and a web browser +- the :ref:`alt-o ` binding requires the ``file`` program. - system clipboard integration (with the default Ctrl-V and Ctrl-X bindings) require either the ``xsel``, ``xclip``, ``wl-copy``/``wl-paste`` or ``pbcopy``/``pbpaste`` utilities diff --git a/doc_src/interactive.rst b/doc_src/interactive.rst index f40fc9174..485e187c4 100644 --- a/doc_src/interactive.rst +++ b/doc_src/interactive.rst @@ -353,6 +353,8 @@ Some bindings are common across Emacs and vi mode, because they aren't text edit - :kbd:`alt-l` lists the contents of the current directory, unless the cursor is over a directory argument, in which case the contents of that directory will be listed. +.. _shared-binds-alt-o: + - :kbd:`alt-o` opens the file at the cursor in a pager. If the cursor is in command position and the command is a script, it will instead open that script in your editor. The editor is chosen from the first available of the ``$VISUAL`` or ``$EDITOR`` variables. - :kbd:`alt-p` adds the string ``&| less;`` to the end of the job under the cursor. The result is that the output of the command will be paged. If you set the ``PAGER`` variable, its value is used instead of ``less``.