[2016-09-09 09:35] Link Satonaka <[email protected]>
> > [meillo]
> > > [Link]
> > > Another oddity to me as a new user is the separation of ‘pick’ and
> > > ‘scan’. How much sense does it actually make that these are two
> > > separate utilities?
> > 
> > How much sense does it make that ls(1) and grep(1)/find(1) are
> > separate utilities? ;-)

I find this idea not that bad. As far as I see wold this be 50 extra
lines in pick and we could drop scan.c.

> > [meillo]
> > It would complicate the code and limit the possibilities. (This
> > is a question of Unix style.) But what I can think of is adding
> > a `-scan' switch to pick, which would automatically invoke scan
> > with the result. I think it would be worth considering that. If
> > the added complexity is small and the usability increases greatly
> > (you can add such a switch to the profile or we could even enable
> > it by default) ...

It wouldn't be that complicate. We would to replace the

> printf("%s\n", m_name(msgnum));

with a call to scan() and add the ``-format'' switch.

In other words pick supports only the format '=%(msg)' at
the moment. If we have a format switch in pick we could replace
scan by a symlink to pick.

Philipp

Ps: yes I have read the other parts of this thread and I'll write another
mail to this thread, but not now.

Reply via email to