Summary: | JJ: Jump to next/previous change | ||
---|---|---|---|
Product: | [Applications] kate | Reporter: | rjwgnr27 |
Component: | general | Assignee: | KWrite Developers <kwrite-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | wishlist | CC: | davestechshop |
Priority: | NOR | Keywords: | junior-jobs |
Version: | Git | ||
Target Milestone: | --- | ||
Platform: | Fedora RPMs | ||
OS: | Linux | ||
Latest Commit: | http://commits.kde.org/kate/8c2f4bb0eb33ac3b1b05b3148b9f8f722612c904 | Version Fixed In: | 4.13 |
Sentry Crash Report: |
Description
rjwgnr27
2012-11-26 22:31:56 UTC
A valid wish, and easy to implement. The jumping would be analog to bookmarks, i.e. not chronologically in time, but in text lines. Proposed patch for KDE Framworks 5: https://git.reviewboard.kde.org/r/115633/ Glad to see the proposed patch! Git commit 6d3b2f62d409b990ecf45733f0710d78c21a4a36 by Dominik Haumann. Committed on 19/02/2014 at 20:49. Pushed by dhaumann into branch 'master'. Feature: Jump to next/previous change Currently, no shortcut is assigned. Any suggestions? REVIEW: 115633 M +9 -5 src/data/katepartui.rc M +15 -0 src/document/katedocument.cpp M +3 -0 src/document/katedocument.h M +32 -0 src/view/kateview.cpp M +2 -0 src/view/kateview.h http://commits.kde.org/ktexteditor/6d3b2f62d409b990ecf45733f0710d78c21a4a36 Git commit 8c2f4bb0eb33ac3b1b05b3148b9f8f722612c904 by Dominik Haumann. Committed on 19/02/2014 at 21:29. Pushed by dhaumann into branch 'master'. Feature: Jump to next/previous change Currently, these two actions are now directly in the Edit menu: - Move to Previous Modified Line - Move to Next Modified Line - Go To... Is that ok for 4.x, or do you want it all in a "Go To" submenu? CCMAIL: kwrite-devel@kde.org By default, no shortcuts are assigned. FIXED-IN: 4.13 M +3 -1 part/data/katepartui.rc M +15 -0 part/document/katedocument.cpp M +3 -0 part/document/katedocument.h M +32 -0 part/view/kateview.cpp M +2 -0 part/view/kateview.h http://commits.kde.org/kate/8c2f4bb0eb33ac3b1b05b3148b9f8f722612c904 (In reply to comment #5) > Feature: Jump to next/previous change > > Currently, these two actions are now directly in the Edit menu: > - Move to Previous Modified Line > - Move to Next Modified Line > - Go To... > > Is that ok for 4.x, or do you want it all in a "Go To" submenu? That menu layout sounds good to me. I am personally not in favor of a "Go To" submenu. > By default, no shortcuts are assigned. Thinking of appropriate shortcuts isn't as easy as it would seem! What about these? CTRL-[ for jump to next modified line (that's control + open square bracket) CTRL-] for jump to prior modified line As far as I can tell, those are not used. And they seem fitting as well as easy to remember for this action. That's just my 2 cents. Thanks! This works really nice, I have been using it for a couple days. I think though, that it would be more useful to jump to the next group of changes, not the next change. So if lines 10,11,12 and 100,101, and 102 are changed, from line 11, the jump to next would be 100. From 101, the jump to previous would be 12 (or should it be 10, the top of the previous block?). Again, thank you for the work, it's a big help. (In reply to comment #7) > This works really nice, I have been using it for a couple days. I think > though, that it would be more useful to jump to the next group of changes, > not the next change. > > So if lines 10,11,12 and 100,101, and 102 are changed, from line 11, the > jump to next would be 100. From 101, the jump to previous would be 12 (or > should it be 10, the top of the previous block?). > > Again, thank you for the work, it's a big help. I agree with all that. There was also a related discussion with Dominik on this topic here: https://unix.stackexchange.com/questions/66261/kate-editor-how-to-jump-to-modified-lines Well, jumping to the previous block might be an option. I'll have a look into this when I find the time. Meanwhile, if you want, you can try to patch the code yourself and attach a patch? :-) |