zsh-users
 help / color / mirror / code / Atom feed
From: Christian Taylor <cht@chello.at>
To: "zsh-users" <zsh-users@sunsite.dk>
Subject: Re: history-search + a few new user question
Date: Sun, 4 Dec 2005 18:15:39 +0100	[thread overview]
Message-ID: <200512041815.39602.cht@chello.at> (raw)
In-Reply-To: <20051204162658.GA17541@alnagon.localnet.cz>

karpi wrote:

> 1) At first there was my mostly touched function:
> -type some chars, which command begins, and then call completation from
> history. Yes there is history-search-backward history-search-forward,
> but they are "first word based" -->
> gvim .z<touch-key_history-search-backward> do not complete .zshrc from
> history, but offers: gvim something, gvim /something/other, gvim
> /something/which/i/do/not/needs.now ...
> I would like get only "gvim .z" based lines from history.
> Im clear? Is there some function, or way to set this, plz..?

I dislike the history-search-Xward functions too. Luckily, there's:
history-beginning-search-backward (and ...-forward)
which does exactly the desired thing.

[...]

> 3) when I press Alt-backspace, cursor deletes all path. Is possible it
> deletes only part of path limited by "/"

That's because zsh by default considers "/" to be part of a word instead of a 
separator (defined in the WORDCHARS parameter). I remove "/" in my .zshrc:
WORDCHARS=${WORDCHARS//\/}
This also causes backward-word etc. to stop on "/".

hope this helps,

Christian


  reply	other threads:[~2005-12-04 17:17 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-04 16:26 karpi
2005-12-04 17:15 ` Christian Taylor [this message]
2005-12-04 17:49 ` Julius Plenz
2005-12-05  6:35 ` Bart Schaefer
2005-12-05 10:30   ` Peter Stephenson
2005-12-05  6:41 ` Thor Andreassen
2005-12-05 11:22 ` karpi

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=200512041815.39602.cht@chello.at \
    --to=cht@chello.at \
    --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).