zsh-workers
 help / color / mirror / code / Atom feed
From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@math.gatech.edu
Subject: Re:  copy-prev-word and 3.1.5-pws5
Date: Mon, 25 Jan 1999 13:29:17 +0100 (MET)	[thread overview]
Message-ID: <199901251229.NAA13179@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: Louis-David Mitterrand's message of Mon, 25 Jan 1999 08:37:58 +0100


z69@csi.com wrote:

> X-Mailing-List: <zsh-workers@math.gatech.edu> archive/latest/4963
> 
> % ls
> schumacher_1995_germany_01_hr.jpg
> % mv sch<TAB>
> % mv schumacher_1995_germany_01_hr.jpg 
> (cursor is here------------------------^)
> % mv schumacher_1995_germany_01_hr.jpg <copy-prev-word ESC-^_>
> % mv schumacher_1995_germany_01_hr.jpgschumacher_1995_germany_01_hr.jpg
> 
> The whitespace introduced by completion is lost when doing the
> copy-prev-word.

The simple solution is to just make the inserted suffix be kept by
adding ZLE_KEEPSUFFIX in iwidgets.list.

Bye
 Sven

diff -c os/Zle/iwidgets.list Src/Zle/iwidgets.list
*** os/Zle/iwidgets.list	Mon Jan 25 12:57:46 1999
--- Src/Zle/iwidgets.list	Mon Jan 25 13:25:35 1999
***************
*** 26,32 ****
  "capitalize-word", capitalizeword, 0
  "clear-screen", clearscreen, ZLE_MENUCMP | ZLE_KEEPSUFFIX | ZLE_LASTCOL | ZLE_NOTCOMMAND
  "complete-word", completeword, ZLE_MENUCMP | ZLE_KEEPSUFFIX | ZLE_ISCOMP
! "copy-prev-word", copyprevword, 0
  "copy-region-as-kill", copyregionaskill, ZLE_KEEPSUFFIX
  "delete-char", deletechar, ZLE_KEEPSUFFIX
  "delete-char-or-list", deletecharorlist, ZLE_MENUCMP | ZLE_KEEPSUFFIX | ZLE_ISCOMP
--- 26,32 ----
  "capitalize-word", capitalizeword, 0
  "clear-screen", clearscreen, ZLE_MENUCMP | ZLE_KEEPSUFFIX | ZLE_LASTCOL | ZLE_NOTCOMMAND
  "complete-word", completeword, ZLE_MENUCMP | ZLE_KEEPSUFFIX | ZLE_ISCOMP
! "copy-prev-word", copyprevword, ZLE_KEEPSUFFIX
  "copy-region-as-kill", copyregionaskill, ZLE_KEEPSUFFIX
  "delete-char", deletechar, ZLE_KEEPSUFFIX
  "delete-char-or-list", deletecharorlist, ZLE_MENUCMP | ZLE_KEEPSUFFIX | ZLE_ISCOMP

--
Sven Wischnowsky                         wischnow@informatik.hu-berlin.de


             reply	other threads:[~1999-01-25 12:40 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-01-25 12:29 Sven Wischnowsky [this message]
  -- strict thread matches above, loose matches on Subject: below --
1999-01-25  7:37 Louis-David Mitterrand

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=199901251229.NAA13179@beta.informatik.hu-berlin.de \
    --to=wischnow@informatik.hu-berlin.de \
    --cc=zsh-workers@math.gatech.edu \
    /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).