Bug 148978 - move to the beginning or end of a sentence
Summary: move to the beginning or end of a sentence
Status: RESOLVED WORKSFORME
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Debian testing Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords: triaged
: 148979 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-08-18 22:13 UTC by petr břeň
Modified: 2018-10-27 02:36 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description petr břeň 2007-08-18 22:13:33 UTC
Version:           2.5.7 (using KDE KDE 3.5.7)
Installed from:    Debian testing/unstable Packages
OS:                Linux

I'd like very much to have a keystroke that would move the cursor to the beginning or end of a sentence, similarly to what meta+a/meta-e does in Emacs. I understand that navigating to beginning/end of words and lines is flexible enough in most cases, but inside long paragraphs moving by sentences could be very useful as well.
Comment 1 Pino Toscano 2007-08-18 22:53:14 UTC
Ctrl+Left and Ctrl+Right?
Comment 2 petr břeň 2007-08-18 23:12:44 UTC
This moves the cursor to the beginning/end of a word. I'd like it to move to the beginning/end of a sentence.
Comment 3 Pino Toscano 2007-08-18 23:45:39 UTC
*** Bug 148979 has been marked as a duplicate of this bug. ***
Comment 4 Anders Lund 2007-08-26 19:56:27 UTC
On Saturday 18 August 2007, petr břeň wrote:

Like HOME and END?
Comment 5 petr břeň 2007-08-26 20:09:28 UTC
HOME and END move the cursor to the beginning/end of a line, not a sentence.:)
Comment 6 Matthew Woehlke 2007-08-28 00:55:31 UTC
What's a sentence? :-)

int foo;
for (foo = 0; foo < 5; foo++)
  printf("%i\n", foo);

I guess a "sentence" is marked by a ';'... Yeah, that would be a nice feature.
Comment 7 Andreas Pakulat 2007-08-28 01:39:10 UTC
Not really a good idea:

printf("some cool sentence;or not?");

Or what about python (would need 2 sentence delimiters - at least):

if foo is None:
  boo()

Kate would need a new file-type for this: Human Text.
Comment 8 petr břeň 2007-08-28 11:32:25 UTC
Well, it is true that there are different modes for source code and for human text in Emacs, but I don't think it would be necessary in Kate. A sentence delimiter (I guess) is either a full stop, a question mark or an exclamation mark, followed by a space and a capital letter. Therefore, none of the above examples would count as a sentence delimiter. (Also, the feature could be disabled for file-types that are known to be source code.)

But when I think about it now, it wouldn't work for Spanish, and it certainly wouldn't work for such languages as Thai or Hindi, which don't have full stops etc. at all. (I admit I really have no idea how Emacs handles this, if at all.)
Comment 9 Dominik Haumann 2007-08-28 11:38:11 UTC
This, again, is a perfect use case for scripts. If we already could bind a script to a shortcut, the answer/solution would be: Write yourself a script. It can be done already with a plugin.

I don't think such a feature should be hard coded in C++ into the Kate Part.
Comment 10 Paul Giannaros 2007-08-29 19:19:59 UTC
Dominik:
It can already be done with a script, and you can already bind scripts to shortcuts if you're using Pâté. (n.b I suggest you get the repository version if you want to use it)
Comment 12 Christoph Cullmann 2014-09-11 15:38:43 UTC
If no script is provided, this is a wontfix. People can contribute that now easily.
Comment 13 Andrew Crouthamel 2018-09-25 03:33:22 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days, the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please set the bug status as REPORTED so that the KDE team knows that the bug is ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 14 Andrew Crouthamel 2018-10-27 02:36:30 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 30 days. The bug is now closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!