[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: help adding some features to 5.1

From: Chet Ramey
Subject: Re: help adding some features to 5.1
Date: Wed, 1 Sep 2021 15:27:15 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:78.0) Gecko/20100101 Thunderbird/78.13.0

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, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]