zsh-users
 help / color / mirror / code / Atom feed
* completion position
@ 2000-07-15 14:13 Mglcel
  2000-07-15 16:16 ` Christoph Lange
  0 siblings, 1 reply; 3+ messages in thread
From: Mglcel @ 2000-07-15 14:13 UTC (permalink / raw)
  To: zsh

Hi,

I can't find how to move the completion cursor position :
i've always that :

shell> cd /usr/<tab>				_
X11R6/            i486-linuxlibc1/  local/            spool/
bin/              include/          man/              src/
doc/              info/             sbin/
games/            lib/              share/

and if i press again <tab> :

shell> cd /usr/					X11R6/
X11R6/            i486-linuxlibc1/  local/            spool/
bin/              include/          man/              src/
doc/              info/             sbin/
games/            lib/              share/

this is not a real problem but where it is so funny it's when i try 
to backward on history with the up cursor key:

shell> cd /usr/					man tidy

the commands have wrote at the completion position and not at the
end of the shell prompt !

I can't find how to modify that...

notify I use screen (Screen version 3.09.05 (FAU) 1-Sep-99)

mglcel@amnesty mglcel-> export | grep TERM
TERM=screen
TERMCAP='SC|screen|VT 100/ANSI X3.64 virtual terminal:\

the zsh version is the 3.1.6 compiled but the actual zsh .deb version
make me the same thing.

with a 'setopt SINGLE_LINE_ZLE' the completion cursor position is
right a the end of the actual word to be completed but i've always
a problem with this backward in my history.

mglcel@amnesty setup-> setopt
autocd
noautoparamslash
autopushd
autoresume
nobgnice
cdablevars
noclobber
correct
correctall
extendedglob
globdots
histignoredups
interactive
longlistjobs
mailwarning
monitor
pushdminus
pushdsilent
pushdtohome
rcquotes
recexact
shinstdin
zle

but if i remove these options :

setopt   notify globdots correct pushdtohome cdablevars autolist
setopt   correctall autocd recexact longlistjobs
setopt   autoresume histignoredups pushdsilent noclobber
setopt   autopushd pushdminus extendedglob rcquotes mailwarning
unsetopt bgnice autoparamslash

the problem is always here.

Thx for some answers or indications.

-- 
---

 Mglcel
 mglcel@linuxfr.net

It's simply unbelievable how much energy and creativity people have
invested into creating contradictory, bogus and stupid licenses...
        --- Sven Rudolph about licences in debian/non-free.



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: completion position
  2000-07-15 14:13 completion position Mglcel
@ 2000-07-15 16:16 ` Christoph Lange
  2000-07-15 20:57   ` Danny Dulai
  0 siblings, 1 reply; 3+ messages in thread
From: Christoph Lange @ 2000-07-15 16:16 UTC (permalink / raw)
  To: dias-d_l; +Cc: zsh

> I can't find how to move the completion cursor position :
> i've always that :
> 
> shell> cd /usr/<tab>				_
> X11R6/            i486-linuxlibc1/  local/            spool/
> bin/              include/          man/              src/
> doc/              info/             sbin/
> games/            lib/              share/

I had a similar problem when I had some escape codes in my prompt, which set
the xterm title bar. I think zsh calculates the cursor position depending on
the length of the prompt. Of course, zsh did not understand that a certain
part of the text actually appeared in the title bar and not in the command
line prompt and therefore assumed a wrong length andq set the cursor to a
wrong position.

Christoph

-- 
Microsoft Windows(TM): A thirty-two bit extension and graphical shell
to a sixteen bit patch to an eight bit operating system originally
coded for a four bit microprocessor which was written by a two-bit
company that can't stand one bit of competition.
Christoph Lange, langec@gmx.de, http://www.cul.de/home/yaph/, ICQ #51191833


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: completion position
  2000-07-15 16:16 ` Christoph Lange
@ 2000-07-15 20:57   ` Danny Dulai
  0 siblings, 0 replies; 3+ messages in thread
From: Danny Dulai @ 2000-07-15 20:57 UTC (permalink / raw)
  To: Christoph Lange, dias-d_l; +Cc: zsh

On 07/15/00, Christoph Lange said:
>> I can't find how to move the completion cursor position :
>> i've always that :
>> 
>> shell> cd /usr/<tab>				_
>> X11R6/            i486-linuxlibc1/  local/            spool/
>> bin/              include/          man/              src/
>> doc/              info/             sbin/
>> games/            lib/              share/
>
>I had a similar problem when I had some escape codes in my prompt, which set
>the xterm title bar. I think zsh calculates the cursor position depending on
>the length of the prompt. Of course, zsh did not understand that a certain
>part of the text actually appeared in the title bar and not in the command
>line prompt and therefore assumed a wrong length andq set the cursor to a
>wrong position.

from the zshall manpage, under PROMPT EXPANSION:

       %{...%}
              Include a string as a literal escape sequence.  The
              string within the braces should not change the cur-
              sor position.  Brace pairs can nest.

-- 
___________________________________________________________________________
Danny Dulai                                           Feet. Pumice. Lotion.
http://www.ishiboo.com/~nirva/                            nirva@ishiboo.com


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2000-07-15 20:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-07-15 14:13 completion position Mglcel
2000-07-15 16:16 ` Christoph Lange
2000-07-15 20:57   ` Danny Dulai

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).