Re: Recalling previous commands

2016-01-01 Thread Brent Laabs
Linenoise is included in Task::Star.
https://github.com/tadzik/Task-Star/commit/8ff101ae15

As a bit of history, Linenoise used to be part of the Rakudo repo, but it
was split off in the interest of making the base install smaller, keeping
separate software separate, and making it more pluggable.

On Fri, Jan 1, 2016 at 11:40 PM, Kaare Rasmussen  wrote:

> Hi
>
>> Try Out Linenoise
>> https://github.com/hoelzro/p6-linenoise/
>> panda install Linenoise
>>
>
> Command history is essential to the user experience of a REPL. I wonder
> why Linenoise just isn't included in Task::Star (?)
>
> /kaare
>


Re: Recalling previous commands

2016-01-01 Thread Kaare Rasmussen

Hi

Try Out Linenoise
https://github.com/hoelzro/p6-linenoise/
panda install Linenoise


Command history is essential to the user experience of a REPL. I wonder 
why Linenoise just isn't included in Task::Star (?)


/kaare


Re: Recalling previous commands

2016-01-01 Thread Brandon Allbery
On Fri, Jan 1, 2016 at 4:47 PM, Parrot Raiser <1parr...@gmail.com> wrote:

> Every time I make a typo in a complex command, I reflexively hit
> ctrl-k before remembering I'm not in bash any more.  :-)*
>

...ctrl-k? wtf is bash misteaching people any more? I'd expect ctrl-p, like
pretty much anything else with line editing (including bash).
That said, I don't know how Linenoise does in the history department.

-- 
brandon s allbery kf8nh   sine nomine associates
allber...@gmail.com  ballb...@sinenomine.net
unix, openafs, kerberos, infrastructure, xmonadhttp://sinenomine.net


Re: Recalling previous commands

2016-01-01 Thread Patrick R. Michaud
While I recall that we've often discussed building command history into 
Rakudo's REPL directly, the workaround suggested to me was to use 'rlwrap':


   $ rlwrap ./perl6

Then the arrow keys work, as well as CTRL-P and other bash-like history 
commands.  I've never used CTRL-K for history, but rlwrap is customizable so 
there's probably a way to get that to work somehow.

Pm

On Fri, Jan 01, 2016 at 04:47:15PM -0500, Parrot Raiser wrote:
> Is there any way to recall a previous command (for correction or
> re-running), when using Perl 6 in the interactive REPL mode?
> 
> Every time I make a typo in a complex command, I reflexively hit
> ctrl-k before remembering I'm not in bash any more.  :-)*


Re: Recalling previous commands

2016-01-01 Thread James Ellis Osborne III
Try Out Linenoise
https://github.com/hoelzro/p6-linenoise/
panda install Linenoise

-jas

On 1 January 2016 at 13:52, Brandon Allbery  wrote:
> On Fri, Jan 1, 2016 at 4:47 PM, Parrot Raiser <1parr...@gmail.com> wrote:
>>
>> Every time I make a typo in a complex command, I reflexively hit
>> ctrl-k before remembering I'm not in bash any more.  :-)*
>
>
> ...ctrl-k? wtf is bash misteaching people any more? I'd expect ctrl-p, like
> pretty much anything else with line editing (including bash).
> That said, I don't know how Linenoise does in the history department.
>
> --
> brandon s allbery kf8nh   sine nomine associates
> allber...@gmail.com  ballb...@sinenomine.net
> unix, openafs, kerberos, infrastructure, xmonadhttp://sinenomine.net