* Re: copy-prev-word and 3.1.5-pws5
@ 1999-01-25 12:29 Sven Wischnowsky
0 siblings, 0 replies; 2+ messages in thread
From: Sven Wischnowsky @ 1999-01-25 12:29 UTC (permalink / raw)
To: zsh-workers
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* copy-prev-word and 3.1.5-pws5
@ 1999-01-25 7:37 Louis-David Mitterrand
0 siblings, 0 replies; 2+ messages in thread
From: Louis-David Mitterrand @ 1999-01-25 7:37 UTC (permalink / raw)
To: zsh-workers
% 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.
--
Louis-David Mitterrand - mito@aparima.com - http://www.aparima.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1999-01-25 12:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-01-25 12:29 copy-prev-word and 3.1.5-pws5 Sven Wischnowsky
-- strict thread matches above, loose matches on Subject: below --
1999-01-25 7:37 Louis-David Mitterrand
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).