[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Nano-devel] [PATCH] cutting: when deleting whole words, don't join
From: |
Brand Huntsman |
Subject: |
Re: [Nano-devel] [PATCH] cutting: when deleting whole words, don't join lines unexpectedly |
Date: |
Thu, 6 Sep 2018 16:04:41 -0600 |
On Thu, 6 Sep 2018 20:18:42 +0200
Benno Schulenberg <address@hidden> wrote:
> > And before you mention
> > using backspace or delete key to join lines, try it in nano's NEWS
> > file (13 key presses to remove those indents).
>
> Oh come on. Until now I would use <Shift+Ctrl+Right> ^K, or
> <Shift+Home> ^K <Backspace>, depending on the direction.
You are cutting some words with one bind, reach an indent, change to another
bind, then change back to the other bind to finish cutting words on another
line. Why do that when one bind could simply change behavior like smarthome
does.
> The problem with not cutting a word when crossing a line boundary is
> that it joins words when cutting leftward -- my lines don't end in
> spaces. I don't see a simple way to solve that: to insert a space
> when there is none, just like justifying does.
That isn't really an issue, and nano shouldn't handle it. After joining a line,
you are either going to keep cutting, in which case it doesn't matter if there
is space or not, or you are finished. When cutting right, you probably started
on a word, so there is a space behind cursor. If there isn't a space before or
after a right/left cut, just press the spacebar.
There is also the case when a word was split over two lines with a hyphen. You
join the lines with a right/left cut and then delete/backspace the hyphen, if
needed. That is another reason cutting words over lines should only join
instead of also taking a word with the newline.
- [Nano-devel] [PATCH] cutting: when deleting whole words, don't join lines unexpectedly, Benno Schulenberg, 2018/09/02
- Re: [Nano-devel] [PATCH] cutting: when deleting whole words, don't join lines unexpectedly, Brand Huntsman, 2018/09/02
- Re: [Nano-devel] [PATCH] cutting: when deleting whole words, don't join lines unexpectedly, Benno Schulenberg, 2018/09/06
- Re: [Nano-devel] [PATCH] cutting: when deleting whole words, don't join lines unexpectedly,
Brand Huntsman <=
- Re: [Nano-devel] [PATCH] cutting: when deleting whole words, don't join lines unexpectedly, Benno Schulenberg, 2018/09/07
- Re: [Nano-devel] [PATCH] cutting: when deleting whole words, don't join lines unexpectedly, Brand Huntsman, 2018/09/09
- Re: [Nano-devel] [PATCH] cutting: when deleting whole words, don't join lines unexpectedly, Benno Schulenberg, 2018/09/10
- Re: [Nano-devel] [PATCH] cutting: when deleting whole words, don't join lines unexpectedly, Brand Huntsman, 2018/09/10