Bug 418344

Summary: Konsole feature: go to last command
Product: [Applications] konsole Reporter: Tobias Theuer <tobias.theuer97>
Component: historyAssignee: Konsole Developer <konsole-devel>
Status: RESOLVED WORKSFORME    
Severity: wishlist CC: a.samirh78, tobias.theuer97
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Tobias Theuer 2020-03-01 00:47:14 UTC
SUMMARY
It is often helpful to scroll to the previous command.
This is especially useful when compiling code that can produce many error messages, but only the first error message message is of interest.
Of course, there are ways to circumvent the need for this, such as piping to less or temporarily disabling the auto scroll feature, e.g. by scrolling up one line.
But all of these workarounds need to be applied before running the command and it's often more convenient to decide after the command has already produced lots of output.
In addition, depending on the way the prompt is formatted, it is often not easy to manually scroll to the last command because it is hard to distinguish the prompt from the program's output.

STEPS TO REPRODUCE


OBSERVED RESULT
Scrolling manually (with the mouse wheel or shift + up-arrow) is slow, distracting, prone to missing the prompt and therefore scrolling too far up,
etc.
Searching for a part of the prompt (by pressing ctrl + shift + f) is the best current solution I know of, but it's also far from ideal.
Remembering to make Konsole not scroll to the next prompt is difficult, annoying and needlessly complicated.

EXPECTED RESULT
It would be cool if there was a quick and simple way to move the viewport to the last command.
This is a feature that would in my opinion help almost all users, from beginners to already experienced users.
Konsole could store a queue of viewport positions, where each command inserts another entry, and positions that are no longer inside the scrollback buffer leave the queue.
A key binding such as ctrl + shift + up arrow could then move the screen to the previous command, and ctrl + shift + down arrow could move the screen to the next command.
As far as I know, this feature is not currently implemented in Konsole, but there are other terminal emulators with this feature.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 5.5.6 (fedora 31)
(available in About System)
KDE Plasma Version: 5.17.5
KDE Frameworks Version: 5.67.0
Qt Version: 5.13.2

ADDITIONAL INFORMATION
Comment 1 Ahmad Samir 2020-03-14 09:38:56 UTC
Did you try Ctrl + Shift + PageUP/PageDown/Home/End ? this all work by default in konsole IIRC. Also you can configure the behaviour of Ctrl + Shift + PageUp/Down to scroll half/full screen in the profile settings.

About making the prompt more distinguished, research "bash prompt color", some interesting stuff.
Comment 2 Bug Janitor Service 2020-03-29 04:33:10 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Bug Janitor Service 2020-04-13 04:33:12 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!