| Summary: | Treat underscores as symbols instead of letters | ||
|---|---|---|---|
| Product: | [Frameworks and Libraries] frameworks-ktexteditor | Reporter: | Riccardo Robecchi <sephiroth_pk> |
| Component: | general | Assignee: | KWrite Developers <kwrite-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | wishlist | CC: | jat255, nate, sephiroth_pk, waqar.17a |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Neon | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Riccardo Robecchi
2020-01-08 20:42:49 UTC
Implementation hint: In kateviewinternal.cpp, there is a CalculatingCursor, see: https://github.com/KDE/ktexteditor/blob/master/src/view/kateviewinternal.cpp#L887 This CalculatingCursor supports basic text navigation. From this class, other classes are derived, e.g. the BoundedCursor, or the WrappingCursor. To fix this, one could either derive a new Cursor with the desired behavior, or add a switch to the other existing cursor classes. It's unclear to me if that component also controls file open/save windows, but that is where this behavior tends to bother me the most. I know KDE is not at all responsible for GNOME apps, but since GTK-based dialogs treat the underscore as a separation character, different apps on one system have inconsistent behavior. It would be great if this could be configured somehow. (In reply to jat255 from comment #2) > It's unclear to me if that component also controls file open/save windows, > but that is where this behavior tends to bother me the most. I know KDE is > not at all responsible for GNOME apps, but since GTK-based dialogs treat the > underscore as a separation character, different apps on one system have > inconsistent behavior. It would be great if this could be configured somehow. It is unclear to me as well and the use case you mention is what actually brought me to open this bug report. But I agree wholeheartedly, this is an issue that needs fixing as it is neither logical nor consistent. Fixed with the introduction of Camel case movement. Please enable "Editing -> Text Navigation -> Enable camel cursor movement" (In reply to Waqar Ahmed from comment #4) > Fixed with the introduction of Camel case movement. Please enable "Editing > -> Text Navigation -> Enable camel cursor movement" Thanks. Would this apply elsewhere in Plasma (e.g. in Dolphin)? If that's not the case, what component should this bug be reopened against? > Thanks. Would this apply elsewhere in Plasma (e.g. in Dolphin)? If that's not the case, what component should this bug be reopened against?
It only applies to Ktexteditor and childern (KDevelop / Kate / KWrite ... ). For any other apps, everyone will need to implement that for whatever editor they have.
Even in Kate for instance, this will only work in the text area and not for example in a search line edit.
|