mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-25 17:52:02 +02:00
Migrate an action spec to the new syntax
This commit is contained in:
@@ -974,12 +974,12 @@ class Window:
|
|||||||
data = self.pipe_data(text, has_wrap_markers=True)
|
data = self.pipe_data(text, has_wrap_markers=True)
|
||||||
get_boss().display_scrollback(self, data['text'], data['input_line_number'])
|
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
|
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)
|
text = self.last_cmd_output(as_ansi=True, add_wrap_markers=True)
|
||||||
get_boss().display_scrollback(self, text, title='Last command output')
|
get_boss().display_scrollback(self, text, title='Last command output')
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user