Bug 452126

Summary: Lack "Shell integration" which enables advanced features.
Product: [Applications] konsole Reporter: shenlebantongying <shenlebantongying>
Component: generalAssignee: Konsole Developer <konsole-devel>
Status: RESOLVED NOT A BUG    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Other   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description shenlebantongying 2022-03-31 20:27:14 UTC
SUMMARY

konsole lacks a new type of terminal functionality called "Shell integration".

OBSERVED RESULT

The shell inside the terminal emulator is just a stream of chars, the emulator cannot know what is happening semantically. "Shell integration" is to gain extra insight into the strings within the terminal.

It can enable a lot of previously unimplementable features, and there are a lot. Please see the links below for more details.

EXPECTED RESULT:

Some kind of framework or API or examples to implement them strategically. 

These 3 features probably are the easiest and pretty useful. They can be shipped as a "starter" if the shell integration is ever going to happen.

+ Command history in sidebar
+ Recent Directories in sidebar (when click => do a `cd` )
+ Jump between promotes (jumping through the scrollback to the start of an earlier command)
+ Select all output of the last command

LINKS:

** iterm2 
open-source macOS software, but maybe the first that come up with this idea
https://iterm2.com/documentation-shell-integration.html

** wezterm
https://wezfurlong.org/wezterm/shell-integration.html

** Kitty
https://sw.kovidgoyal.net/kitty/shell-integration/

** vscode
https://code.visualstudio.com/docs/editor/integrated-terminal#_shell-integration

** intellij idea (can only do history recording now, )
https://web.archive.org/web/20220218091836/https://www.jetbrains.com/help/idea/terminal-emulator.html#d5264a0e