zsh-workers
 help / color / mirror / code / Atom feed
From: Guido van Steen <gvsteen@yahoo.com>
To: zsh-workers@sunsite.dk
Subject: matlab-history-beginning-search-backward
Date: Wed, 30 Sep 2009 09:52:10 -0700 (PDT)	[thread overview]
Message-ID: <140222.25175.qm@web65614.mail.ac4.yahoo.com> (raw)

Dear list, 

I use the "history-beginning-search-backward" widget quite frequently. It searches for commands in the command history that START WITH "LBUFFER". 

I like this behaviour. It is simple and it keeps my attention fixed on one line. What I don't like about the widget is that ONLY searches for commands that start with "LBUFFER". Instead I would prefer a similar widget that searches for commands in the command history, in such a way that "LBUFFER" is a SUBSTRING of these commands. (This is the default history management in MATLAB and FISH.) 

I know there is the "history-incremental-search-backward" widget, which is bound to "^r" by default. This widget does more-or-less what I want. However, it shows two prompts, which I don't seem to like that much. Moreover, if requires the userto invoke it first and then start typing what he looks for. Usually I seem to start typing something and then find out that I do not remember the command that I want to type anymore. So I would like to involve the widget after I type, as can be done with the "history-beginning-search-backward" widget. 

So, my question is: Has anyone ever come across such a "matlab-history-beginning-search-backward" kind of widget? Or, if not, can anyone provide me with pointers on how to write one by myself. I have to add that I am not very fluent at C. 

I hope I phrased my question clear enough. 

Cheers! 

Guido 




      


             reply	other threads:[~2009-09-30 16:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-30 16:52 Guido van Steen [this message]
2009-12-13 23:25 ` matlab-history-beginning-search-backward Bart Schaefer

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=140222.25175.qm@web65614.mail.ac4.yahoo.com \
    --to=gvsteen@yahoo.com \
    --cc=zsh-workers@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).