|
From: SourceForge.net <no...@so...> - 2008-05-07 00:41:37
|
Patches item #1953878, was opened at 2008-04-29 14:45 Message generated for change (Comment added) made by cmcqueen1975 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=300588&aid=1953878&group_id=588 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Nick Afleo (nalfeo) Assigned to: Nobody/Anonymous (nobody) Summary: Smarter End Key Initial Comment: For a class project, my partner and I implemented the Smarter End Key feature request: http://sourceforge.net/tracker/index.php?func=detail&aid=1903596&group_id=588&atid=350588 We added an option to the Editing Options menu to create a comma separated list of comment delimiters. On hitting the end key, it will move the caret to after the last non-whitespace character before a delimiter. For example, if Delimiter list is: //, /* Before: this| is some text. //This is a test<space><space> After End x 1: this is some text.| //This is a test<space><space> After End x 2: this is some text. //This is a test|<space><space> After End x 3: this is some text. //This is a test<space><space>| If no delimiters are set, then the smart end function should work as it does currently. Any comments, suggestions, or responses are greatly appreciated. (for direct contact, na...@an...) ---------------------------------------------------------------------- Comment By: Craig McQueen (cmcqueen1975) Date: 2008-05-07 10:41 Message: Logged In: YES user_id=1579704 Originator: NO Can I suggest an improvement. Rather than requiring a list of comment delimiters, use the pre-existing syntax awareness of jEdit -- for its syntax highlighting. That is, surely there is some way to read the syntax type that the cursor is on. I have implemented this in the past for another editor (Ed for Windows). The logic is fairly simple, something like: Go to end of line while (not at the start of the line, and character left of cursor is whitespace or comment) { Go left one character } (I'd be interested in doing this myself for jEdit, but currently have neither the time nor the Java skills.) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=300588&aid=1953878&group_id=588 |