From 30df4e5de2c3787beb48a000a2efe081a74b1747 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 19 Aug 2022 09:34:52 +0530 Subject: [PATCH] Improve formatting of --stdin-source --- kitty/launch.py | 37 ++++++++++++++++++++++++++----------- 1 file changed, 26 insertions(+), 11 deletions(-) diff --git a/kitty/launch.py b/kitty/launch.py index 8f5c4899a..d8ad5d39c 100644 --- a/kitty/launch.py +++ b/kitty/launch.py @@ -186,17 +186,32 @@ type=choices default=none choices=none,@selection,@screen,@screen_scrollback,@alternate,@alternate_scrollback,@first_cmd_output_on_screen,@last_cmd_output,@last_visited_cmd_output Pass the screen contents as :file:`STDIN` to the child process. -:code:`@selection` is the currently selected text. :code:`@screen` is the -contents of the currently active window. :code:`@screen_scrollback` is the same -as :code:`@screen`, but includes the scrollback buffer as well. -:code:`@alternate` is the secondary screen of the current active window. For -example if you run a full screen terminal application, the secondary screen will -be the screen you return to when quitting the application. -:code:`@first_cmd_output_on_screen` is the output from the first command run in -the shell on screen, :code:`@last_cmd_output` is the output from the last -command run in the shell, :code:`@last_visited_cmd_output` is the first output -below the last scrolled position via :ac:`scroll_to_prompt`, this three needs -:ref:`shell integration ` to work. + +:code:`@selection` + is the currently selected text. + +:code:`@screen` + is the contents of the currently active window. + +:code:`@screen_scrollback` + is the same as :code:`@screen`, but includes the scrollback buffer as well. + +:code:`@alternate` + is the secondary screen of the current active window. For example if you run + a full screen terminal application, the secondary screen will + be the screen you return to when quitting the application. + +:code:`@first_cmd_output_on_screen` + is the output from the first command run in the shell on screen. + +:code:`@last_cmd_output` + is the output from the last command run in the shell. + +:code:`@last_visited_cmd_output` + is the first output below the last scrolled position via :ac:`scroll_to_prompt`, + this needs :ref:`shell integration ` to work. + +#placeholder_for_formatting# --stdin-add-formatting