Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: RPN mode for zcalc



Peter Stephenson <p.stephenson@xxxxxxxxxxx> writes:

> On Thu, 16 Jun 2016 17:40:48 +0200
> Christian Neukirchen <chneukirchen@xxxxxxxxx> wrote:
>> Peter Stephenson <p.stephenson@xxxxxxxxxxx> writes:
>> 
>> > This adds an RPN mode for zcalc.  (Because it does, that's why.)  See
>> > the documentation.
>> 
>> It's a nice idea, but it would be even better if space worked as ENTER too,
>> so "5 4 +" returns 9.
>
> That's another function entirely, based on keystrokes rather than lines
> containing expressions; it doesn't fit into zcalc.
>
> Of course, if you want to write one, feel free.

I don't mean the space to update the display or anything, just
tokenize the input first?

I mean, I can type 6+7*8<RET> now, why shouldn't I be able to type
6 7 8 * + <RET>

>> And perhaps an operation to exchange the top two elements.
>
> I'll probably add some things of this sort.

Thanks,
-- 
Christian Neukirchen  <chneukirchen@xxxxxxxxx>  http://chneukirchen.org



Messages sorted by: Reverse Date, Date, Thread, Author