<p>This is tricky. The problem is that we only want meaningful jumps in the history, so that "back" and "forward" bring you to meaningful positions. This is especially importand when you jump somewhere (without knowing where exactly it takes you) using quickopen or similar, because else you have a hard time finding the old position back.</p>

<p>On the other hand if you switch the tab manually, you can easily manually switch back. The same is true for manual navigation using the cursor.</p>
<p>I'm not sure whether adding an entry on tab-switching would be a good thing. The position after a tab-switch may be completely meaningless because you simply wanted to take a look on what's in the tab or similar.</p>

<p>There may be other occassions that would be better for adding a history entry:<br>
- when the user edited some code<br>
- when the cursor was within a function or class block for a specific minimum time (10s maybe?)</p>
<p>Greetings, David</p>
<p><blockquote type="cite">Am 15.07.2010 20:09 schrieb "Milian Wolff" <<a href="mailto:mail@milianw.de">mail@milianw.de</a>>:<br><br>Heyho,<br>
<br>
I notice that switching tabs does not add items to the context browser, as<br>
that only listens to documentJumpPerformed. Should the latter also be emitted<br>
in such cases? Or should I instead manually listen to documentActivated?<br>
<br>
I personally find it strange that e.g. quickOpen adds items to the context<br>
browser (even if the file was open), but switching tabs does not.<br>
<br>
Furthermore files without DUChain integration always get the cursor at 0,0<br>
placed which sucks really bad. I'm tempted to integrate basic features there,<br>
which would essentially add history items, when the user changes the cursor<br>
significantly, where I'd probably define that as abs(currentLine - lastLine) ><br>
X. X = 1 would already exclude arrow navigation and cover mouse clicking, pos<br>
1, end, pageup/down scrolling. What do you think?<br>
<font color="#888888">--<br>
Milian Wolff<br>
<a href="mailto:mail@milianw.de">mail@milianw.de</a><br>
<a href="http://milianw.de" target="_blank">http://milianw.de</a><br>
</font><br>--<br>
KDevelop-devel mailing list<br>
<a href="mailto:KDevelop-devel@kdevelop.org">KDevelop-devel@kdevelop.org</a><br>
<a href="https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel" target="_blank">https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel</a><br>
<br></blockquote></p>