Re: help adding some features to 5.1

2021-09-02 Thread Ananth Chellappa
Just for me :) I know my productivity will be higher. Eventually I'll do a
YouTube video on it. If we see enough adoption, we can consider rolling
them in.

!$ picking up & from the previous command really is a no no :)

On Wed, Sep 1, 2021 at 6:36 PM Lawrence Velázquez  wrote:

> On Wed, Sep 1, 2021, at 8:20 PM, Ananth Chellappa wrote:
> > I hope I can make a genuine contribution at some point.
>
> If you're hoping/planning on getting these changes accepted into
> bash, it might be worth hashing out details with Chet before expending
> your time and energy.  (I am not a contributor, nor do I have any
> formal affiliation with the project.  I just write email.)
>
> On the other hand, if this is for yourself, then hack away!
>
> --
> vq
>


Re: help adding some features to 5.1

2021-09-01 Thread Lawrence Velázquez
On Wed, Sep 1, 2021, at 8:20 PM, Ananth Chellappa wrote:
> I hope I can make a genuine contribution at some point.

If you're hoping/planning on getting these changes accepted into
bash, it might be worth hashing out details with Chet before expending
your time and energy.  (I am not a contributor, nor do I have any
formal affiliation with the project.  I just write email.)

On the other hand, if this is for yourself, then hack away!

-- 
vq



Re: help adding some features to 5.1

2021-09-01 Thread Ananth Chellappa
Thanks Sincerely Chet.

I hope I can make a genuine contribution at some point.

On Wed, Sep 1, 2021 at 12:27 PM Chet Ramey  wrote:

> On 8/31/21 6:38 PM, Ananth Chellappa wrote:
> > Hi Team,
> >Could I get some help locating portions of the code that would
> need
> > to be tweaked to add these features?
> >
> > If I had the time, I would love to get to know the code, but I have too
> > much going on in my real job.
> >
> > 1. Intelligent support for !$ (and related - like !2$, !-N, etc) : This
> > means - ignore the & at the end of the previous command.
>
> This is part of the history library: lib/readline/histexpand.c. Keep in
> mind that history expansion has never worked like this, so "intelligent"
> is subjective.
>
> > 2. Autocomplete for !$ (and related tokens) : This means - if I have
> typed
> > !$ and now press TAB, I want the last word from the previous command
> > substituted on the command-line immediately.
>
> This is part of bash-specific word completion: bashline.c.
>
>
> --
> ``The lyf so short, the craft so long to lerne.'' - Chaucer
>  ``Ars longa, vita brevis'' - Hippocrates
> Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/
>


Re: help adding some features to 5.1

2021-09-01 Thread Chet Ramey
On 8/31/21 6:38 PM, Ananth Chellappa wrote:
> Hi Team,
>        Could I get some help locating portions of the code that would need
> to be tweaked to add these features?
> 
> If I had the time, I would love to get to know the code, but I have too
> much going on in my real job. 
> 
> 1. Intelligent support for !$ (and related - like !2$, !-N, etc) : This
> means - ignore the & at the end of the previous command.

This is part of the history library: lib/readline/histexpand.c. Keep in
mind that history expansion has never worked like this, so "intelligent"
is subjective.

> 2. Autocomplete for !$ (and related tokens) : This means - if I have typed
> !$ and now press TAB, I want the last word from the previous command
> substituted on the command-line immediately.

This is part of bash-specific word completion: bashline.c.


-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/



help adding some features to 5.1

2021-08-31 Thread Ananth Chellappa
Hi Team,
   Could I get some help locating portions of the code that would need
to be tweaked to add these features?

If I had the time, I would love to get to know the code, but I have too
much going on in my real job.

1. Intelligent support for !$ (and related - like !2$, !-N, etc) : This
means - ignore the & at the end of the previous command.
2. Autocomplete for !$ (and related tokens) : This means - if I have typed
!$ and now press TAB, I want the last word from the previous command
substituted on the command-line immediately.

Thanks sincerely,
Ananth