<html>
<body>
<div style="font-family: Verdana, Arial, Helvetica, Sans-Serif;">
<table bgcolor="#f9f3c9" width="100%" cellpadding="8" style="border: 1px #c9c399 solid;">
<tr>
<td>
This is an automatically generated e-mail. To reply, visit:
<a href="http://git.reviewboard.kde.org/r/112983/">http://git.reviewboard.kde.org/r/112983/</a>
</td>
</tr>
</table>
<br />
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">Am aware of some bugs I need to fix when scrolling upwards. Please bear with me.</pre>
<br />
<p>- Phillip Taylor</p>
<br />
<p>On September 29th, 2013, 2:57 a.m. UTC, Phillip Taylor wrote:</p>
<table bgcolor="#fefadf" width="100%" cellspacing="0" cellpadding="8" style="background-image: url('http://git.reviewboard.kde.org/static/rb/images/review_request_box_top_bg.ab6f3b1072c9.png'); background-position: left top; background-repeat: repeat-x; border: 1px black solid;">
<tr>
<td>
<div>Review request for Konsole.</div>
<div>By Phillip Taylor.</div>
<p style="color: grey;"><i>Updated Sept. 29, 2013, 2:57 a.m.</i></p>
<div style="margin-top: 1.5em;">
<b style="color: #575012; font-size: 10pt;">Repository: </b>
konsole
</div>
<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Description </h1>
<table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" style="border: 1px solid #b8b5a0">
<tr>
<td>
<pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">I'm not a KDE developer or QT person myself, but I had an "itch to scratch" as we say. A desire to add a new feature to Konsole. The feature is called 'Scroll Marks' and in a nutshell it allows you to mark line numbers in Konsole's output and then using next and previous menu options, quickly scroll to those points.
It basically makes scrolling up and down easier because you can jump through your output history even more quickly.
I went a step further and made these scroll marks automatically get created when the control character 6 is seen. This means that you can put 'echo -en \\06' in your PS1 prompt and Ctrl+Up and Ctrl+Down immediately scroll you up and down between all the commands you've executed. So when that cat or grep statement surprises you with a massive amount of output, it's just a key combination away to go up past it again. And no annoyance of manually scrolling too far in each direction.
Since it works using a simple control character approach, it works recursively across ssh, screen and older systems really well. If you're a dev you can put it in your warn statements so when tailing logs it's easier to navigate to where you want to. If you work with grep/cat a lot, a simple sed command can make finding stuff much quicker and simpler.
The feature works quite well and I think a lot of people would like it. I hope some of you will take the time to try it out!
I'm casually requesting its integration into Konsole depending on how others feel, but if you don't like it, I enjoyed writing it and will still probably continue to use it myself.
I would also appreciate a code review of the work so that even if you don't want this feature, I don't introduce bugs into my own forks.</pre>
</td>
</tr>
</table>
<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Testing </h1>
<table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" style="border: 1px solid #b8b5a0">
<tr>
<td>
<pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">I'm not really sure how to do this. Some pointers would be very much appreciated. The feature does work though. :-)</pre>
</td>
</tr>
</table>
<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Diffs</b> </h1>
<ul style="margin-left: 3em; padding-left: 0;">
<li>src/SessionController.cpp <span style="color: grey">(62c1d0b)</span></li>
<li>src/Vt102Emulation.cpp <span style="color: grey">(0b6d2ed)</span></li>
<li>src/Session.cpp <span style="color: grey">(e27bf78)</span></li>
<li>src/SessionController.h <span style="color: grey">(2ff7910)</span></li>
<li>src/Emulation.cpp <span style="color: grey">(02ed4be)</span></li>
<li>src/Session.h <span style="color: grey">(9e982df)</span></li>
<li>src/Emulation.h <span style="color: grey">(92a0ea7)</span></li>
<li>desktop/konsoleui.rc <span style="color: grey">(1dd4f69)</span></li>
<li>desktop/sessionui.rc <span style="color: grey">(67d89ae)</span></li>
</ul>
<p><a href="http://git.reviewboard.kde.org/r/112983/diff/" style="margin-left: 3em;">View Diff</a></p>
</td>
</tr>
</table>
</div>
</body>
</html>