Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
*don't* fail when bck-i-search is over
- X-seq: zsh-users 15562
- From: darwin <darwinskernel@xxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: *don't* fail when bck-i-search is over
- Date: Mon, 22 Nov 2010 11:34:47 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:mime-version:content-type:content-disposition:user-agent; bh=Rb7b2qTxASxVvDhM4k++faZosGFPW51BZT4xJTl6hAU=; b=YGHzON3GJTLOe2uQK4LjquggrVXk/JTiGDaUQHa//1Ya4u0C3f4bpBxWObnCC71v7t QmGqLXdUETe6Eu05S+CGINev/ef1BwJBC5fjt7XH6Bl6PNtIm4ejpAJxKAF1+QMLt97i H6ZQY1GhCTn4afBSkjWmOLwNrAGgBFnAep3hI=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:mime-version:content-type :content-disposition:user-agent; b=A0fOPQCQfQuU7m4SvSAmBIgpA+2WaqlHe5tFz0sopmRc213km7S83Ou7EE7xm9VygI ZuWAR9RU0Jg+FPFcMaVSQCTnnHUFbZU6ekkU69MdgHS8ErcCSn7LBR90QvdqiJnWgGhI nnPKGa5Cm0WPD02v2XIL9aRoTZd9MbQx6+LXg=
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
hello,
i've this in .zshrc
zle-line-init(){
zle history-incremental-search-backward }
#zle -K vicmd;}
zle -N zle-line-init
bindkey -M isearch "^I" vi-repeat-search
# bindkey -M isearch "^I" history-incremental-search-forward
1. it _almost_ does what i want it to do which is to start off on bck-i-search. the idea is that with cli as the main interface, user have issued his most commonly used commands already and so it makes more sense to look into .histfile (or whereever) first. as a result the system is now screaming. well, it's all great util user wants to issue a never-issued-before command. one way to do this is to get out of bck-i-search and do it there (viins, vicmd, what have you). but a more elegent solution, i think, is to have shell start digging the $PATH for possible completions once it's done with the .histfile. that way performance wouldn't be comprimised and user is still doing the same thing (keep begging the tab) to get to where he wants to go. is there a way to do that?
2. the commented lines are what i had before. with all my _elegant_ solutions there are still situations when i would still want to edit a command and that's when i would prefer to go back to vicmd (it's a matter of muscle mm really). but with my current setting:
bindkey -M isearch '^[' send-break
hitting esc gets me out of bck-i-search and dumps me into emacs! i even tried with
bindkey -v
but that's half-baked because i esc bck-i-search into viins and not vicmd. i would appreciate any help with this one also and thanks in advance.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author