https://bugs.kde.org/show_bug.cgi?id=499268

            Bug ID: 499268
           Summary: text editors "wrap around" when moving between
                    bookmarks and reaching first/last bookamrk
    Classification: Frameworks and Libraries
           Product: frameworks-ktexteditor
           Version: 6.10.0
          Platform: unspecified
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: kwrite-bugs-n...@kde.org
          Reporter: peter.ujfal...@gmail.com
  Target Milestone: ---

SUMMARY
Since commit
https://invent.kde.org/frameworks/ktexteditor/-/commit/87b2184be467e5f2747c7583b77675b57710f875
the text editor behavior changed and now it unconditionally cycles between the
bookmarks.
If the cursor is at the first bookmark and using <ALT>+<PGUP> the cursor moves
to the _last_ bookmark instead of staying where it is as there is no previous
bookmark in text file.
Similarly at the last bookmark pressing <ALT>+<PGDOWN> will jump to the _first_
bookmark instead of staying as there is no next bookmark in document.

The commit is made in response to https://bugs.kde.org/show_bug.cgi?id=472354,
so it looks like there is at least one person who prefers this operation...

I have been holding on to older ktexteditor with Krusader, but it got ported to
KF6, so now it's editor also cycles without an option to restore the old
behavior.

STEPS TO REPRODUCE
1.  Open a text file
2. Place several bookmarks
3. Try to find the _first_ or _last_ bookmark with keyboard navigation (ALT+
PGUP/DOWN)

OBSERVED RESULT
Instead of stopping at the first/last bookmark the cursor cycles back at the
other end, one cannot just blindly smash the PGUP/DOWN to reach the first/last
bookmark but needs to carefully watch the line numbers/position to determine
which one is the first or last one.

This is extremely annoying when working with large log files with mostly
identical locations bookmarked and trying to identify changes and then figure
out where that places is compared to the first/last bookmark.

EXPECTED RESULT
No wrap around happens at the first/last bookmark.

SOFTWARE/OS VERSIONS
ktexteditor since commit 87b2184be467e5f2747c7583b77675b57710f875

ADDITIONAL INFORMATION
Since the change to wrap around was made in response to a request, it might be
best to have an option to 'do not wrap around when moving between bookmarks' so
users can select what best fits their use?

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to