zsh-users
 help / color / mirror / code / Atom feed
From: DervishD <raul@pleyades.net>
To: Bart Schaefer <schaefer@brasslantern.com>
Cc: Zsh Users <zsh-users@sunsite.dk>
Subject: Re: delete-word does not delete the entire word...
Date: Sat, 11 Oct 2003 21:51:49 +0200	[thread overview]
Message-ID: <20031011195149.GA22610@DervishD> (raw)
In-Reply-To: <1031011173654.ZM13301@candle.brasslantern.com>

    Hi Bart :)

 * Bart Schaefer <schaefer@brasslantern.com> dixit:
> }     where '_' is the cursor position, the entire word jfinvnck is not
> } deleted, just the portion between the cursor and the end of the word.
> } That's not what I expect
> Out of curiosity, WHY is that not what you expect?

    Because when I want to delete a word, I mean the entire word, not
just a portion from the cursor O:) Back when I used bash, I didn't
mess with words, really. In fact I wasn't doing with zsh, neither,
but recently I bind delete-word and delete-backward-word for speed. I
don't know what happens in other shells :??? Anyway, with zsh I can
modify this behaviour :)

> It's pretty standard behavior of unix-derived text editors to treat
> the cursor position as dividing the buffer into two parts, and then
> acting on only one of those parts at a time.

    Maybe, I don't really know. I don't feel like telling what I
think about vi or emacs, but when documentation say 'word' I assume
'entire word', not 'from cursor position to...' ;)) You're right: my
usual editor, joe, does just the same, and I suppose all editors do
the same (believe it or not, I don't use delete word commands in joe
at all...). That's why I was asking. Obviously, it's my fault O:)
I'll write a wrapper around word deletion commands so they act on the
entire word ;)

    Thanks for pointing that, I thought that 'joe' was acting on
complete words, but it is not true! 

    Raúl Núñez de Arenas Coronado

-- 
Linux Registered User 88736
http://www.pleyades.net & http://raul.pleyades.net/


  reply	other threads:[~2003-10-11 19:47 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-11 12:10 DervishD
2003-10-11 17:36 ` Bart Schaefer
2003-10-11 19:51   ` DervishD [this message]
2003-10-11 21:00     ` Bart Schaefer
2003-10-12  8:57       ` DervishD
2003-10-12 16:32         ` Bart Schaefer
2003-10-12 17:05           ` DervishD
2003-10-12 18:31             ` Peter Stephenson
2003-10-12 20:12               ` Bart Schaefer
2003-10-13 10:04                 ` Peter Stephenson
2003-10-13  9:09               ` DervishD

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20031011195149.GA22610@DervishD \
    --to=raul@pleyades.net \
    --cc=schaefer@brasslantern.com \
    --cc=zsh-users@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).