From 8d8095a2d158f91288ddd6867dff5f01df0a153b Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 5 Aug 2021 06:53:38 +0530 Subject: [PATCH] Migrate an action spec to the new syntax --- kitty/window.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/kitty/window.py b/kitty/window.py index fd7c27070..4eb7bbf55 100644 --- a/kitty/window.py +++ b/kitty/window.py @@ -974,12 +974,12 @@ class Window: data = self.pipe_data(text, has_wrap_markers=True) get_boss().display_scrollback(self, data['text'], data['input_line_number']) - def show_last_command_output(self) -> None: - ''' - @ac:cp: Show output from the last shell command in a pager like less + @ac('cp', ''' + Show output from the last shell command in a pager like less Requires :ref:`shell_integration` to work - ''' + ''') + def show_last_command_output(self) -> None: text = self.last_cmd_output(as_ansi=True, add_wrap_markers=True) get_boss().display_scrollback(self, text, title='Last command output')