Bug 338901 - Add markers for scroll positions for easy finding
Summary: Add markers for scroll positions for easy finding
Status: RESOLVED FIXED
Alias: None
Product: konsole
Classification: Applications
Component: history (show other bugs)
Version: unspecified
Platform: Kubuntu Linux
: NOR wishlist
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-08 10:37 UTC by Bernhard Friedreich
Modified: 2024-07-17 15:43 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bernhard Friedreich 2014-09-08 10:37:45 UTC
Add the possibility to insert position markers into the scrollbar (like the "markers" feature in kate). I would suggest adding a contextmenu to the scrollbar draghandle (or middle mousebutton) to add a marker and when clicked I would show a little star in the scrollbar which can be removed using middleclick (or contextmenu).

Usecases:
1.) Tomcat startup of your favorite search engine (in this case lucene) - directly after startup it will do a complete reindex outputting every object it has indexed - there may be errors in between - and of course you want to fix those - so you have to scroll back to those errors - but there will be more when scrolling down - so I would just mark them in the scrollbar to be able to jump back and forth between those errors
2.) mark position where you started to install software xyz and where the password was generated and output for later reference

Reproducible: Always

Steps to Reproduce:
1. tail -f on Tomcat catalina.out, wait some time for logoutput to appear - meanwhile do some stuff in other konsole tabs
2. switch back to the tail-Tab and scroll back to quickly grasp whether there were any errors
3. each error I find I add a mark in the scrollbar
4. jump back and forth between those errors by clicking on the stars to compare if it is the same error
Comment 1 Gregor Petrin 2015-06-17 06:45:19 UTC
It would be great if Konsole had this option, as for the tail -f example I was very pleased with multitail - http://www.vanheusden.com/multitail/

Even the project's demo screenshots were made in Konsole ;)
Comment 2 Kurt Hindenburg 2017-02-12 23:58:04 UTC
I agree this would be nice - other KDE apps have it
Comment 3 Bug Janitor Service 2024-06-25 13:10:29 UTC
A possibly relevant merge request was started @ https://invent.kde.org/utilities/konsole/-/merge_requests/1009
Comment 4 Kurt Hindenburg 2024-07-17 15:43:59 UTC
Git commit d0754cc3e46f35feb3a3891caa7a15be5c01fbca by Kurt Hindenburg, on behalf of Theodore Wang.
Committed on 17/07/2024 at 15:43.
Pushed by hindenburg into branch 'master'.

Add functionality for markers on scrollbar

Users can add markers to the scrollbar by double clicking on the
scrollbar. A user can remove a marker by double clicking on it again.

The position of the marker is stored internally as a percentage offset
of the scrollbar's length and is not attached to any line of output.
This means that on resize, a scrollbar marker originally created at
x percentile of the scrollbar's length from the top will still remain
at x percentile of the scrollbar's length from the top.

In the "Scrolling" tab in the settings, there are options for the
user to change the color of the markers and the size of the markers.
The size of the marker can be specified as a floating point number,
representing the percentage of the entire scrollbar's length it occupies.

GUI:

M  +2    -0    src/profile/Profile.cpp
M  +6    -0    src/profile/Profile.h
M  +3    -0    src/terminalDisplay/TerminalDisplay.cpp
M  +146  -0    src/terminalDisplay/TerminalScrollBar.cpp
M  +50   -0    src/terminalDisplay/TerminalScrollBar.h
M  +18   -0    src/widgets/EditProfileDialog.cpp
M  +3    -0    src/widgets/EditProfileDialog.h
M  +34   -0    src/widgets/EditProfileScrollingPage.ui

https://invent.kde.org/utilities/konsole/-/commit/d0754cc3e46f35feb3a3891caa7a15be5c01fbca