* cursor position
@ 1999-05-17 2:47 Edi Cahyadi
1999-05-31 4:26 ` Bart Schaefer
0 siblings, 1 reply; 2+ messages in thread
From: Edi Cahyadi @ 1999-05-17 2:47 UTC (permalink / raw)
To: zsh-users
Hello,
Any body knows how to set an option such that when we go to the history
list, the cursor is on the first character, not the last, of the line?
ZSH_VERSION=3.1.5
Thanks,
-edi-
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: cursor position
1999-05-17 2:47 cursor position Edi Cahyadi
@ 1999-05-31 4:26 ` Bart Schaefer
0 siblings, 0 replies; 2+ messages in thread
From: Bart Schaefer @ 1999-05-31 4:26 UTC (permalink / raw)
To: Edi Cahyadi, zsh-users
On May 17, 10:47am, Edi Cahyadi wrote:
} Subject: cursor position
}
} Any body knows how to set an option such that when we go to the history
} list, the cursor is on the first character, not the last, of the line?
There isn't any such option, but there are several things you can do. The
easiest is probably:
eval "$(bindkey -L | sed -ne s/up-line-or-history/beginning-of-line-hist/p)"
(Note, that won't work directly in 3.0.x because there's no -L option to
bindkey.) You could also do something with "bindkey -s" ,or create your
own zle widget to replace up-line-or-history.
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1999-05-31 4:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-05-17 2:47 cursor position Edi Cahyadi
1999-05-31 4:26 ` Bart Schaefer
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).