On Fri, 6 Jul 2007 11:27:39 -0400, "John Gabriele" jmg3000@gmail.com wrote:
On 7/6/07, Enrico Tröger enrico.troeger@uvena.de wrote:
On Thu, 5 Jul 2007 21:00:51 +0200, Enrico Tröger enrico.troeger@uvena.de wrote:
On Thu, 5 Jul 2007 12:57:04 -0400, "John Gabriele" jmg3000@gmail.com wrote:
On 7/5/07, John Gabriele jmg3000@gmail.com wrote:
On 7/5/07, Enrico Tröger enrico.troeger@uvena.de wrote:
On Wed, 4 Jul 2007 20:20:45 -0400, "John Gabriele" jmg3000@gmail.com wrote:
> * Shift-Alt-P to select paragraph
No problem, just needs to be implemented. Could paragraph defined in some way? To avoid further discussions (;-)) we should use a common way of defining a paragraph(start and end). Do you know what I mean?
I think paragraphs are separated by blank lines (space is allowed).
Actually, since Ctrl-] and Ctrl-[ already move the cursor by-paragraph, all "select paragraph" needs to do is:
- Ctrl-] (go to end of current paragraph).
- Mark this as the end of the selection.
- Ctrl-[ (go to beginning of paragraph).
- Mark this as the start of the selection.
Not exactly because Ctrl-] jumps to the next paragraph not the end of the current one. But it doesn't matter. I'll implement it by going to the beginning of the current paragraph and then going down until an empty line(completely empty or a line with only whitespace) is found and then spawn a selection between these two points.
Done in SVN r1669. Please test it.
Very nice! Thanks! A couple quick issues I noted:
- When I select a paragraph and hit Ctrl-D to duplicate it, it
doesn't behave like when duplicating lines. It pastes the copy of the paragraph directly onto the end of the selected paragraph, which makes that first line begin right where the paragraph ends, instead of on the next line.
- If the last line of the paragraph is very long, the window scrolls
right to show me the end of that line. This is a bit jarring. It would be nicer, IMO, if the window view stayed scrolled left, regardless of line length.
As a solution to both of those, it seems like select-paragraph should select the paragraph, *including* the last newline at the end of it.
Yes, this is exactly the problem. I wasn't sure about the selection boundaries and decided to not include the new line character(s). Obviously it is better when it is included. So, fixed it in SVN r1673. Thanks.
Regards, Enrico