Re: Feature request: tab completion on functions

2018-02-02 Thread Chet Ramey
On 2/2/18 6:18 AM, Odne Hellebø wrote: > Damn :) my email is in a changelog :D Thanks :) Credit where credit's due. > One thing though, is it possible to stop the cursor at the point it > gets ambiguous? As in I have function > foobar and fooBar if I do > foo I will get foobar and if my intent wa

Re: Feature request: tab completion on functions

2018-02-02 Thread Odne Hellebø
Damn :) my email is in a changelog :D Thanks :) One thing though, is it possible to stop the cursor at the point it gets ambiguous? As in I have function foobar and fooBar if I do foo I will get foobar and if my intent was to execute fooBar I will have to go back and uppercase it. I think it would

Re: Feature request: tab completion on functions

2018-02-01 Thread Chet Ramey
On 2/1/18 3:40 PM, Odne Hellebø wrote: > Is it something that you will consider adding to bash? I also saw something > about the complete inbuilt command, is it possible through that? I already did, and the version in the devel branch can do it. -- ``The lyf so short, the craft so long to lerne.

Re: Feature request: tab completion on functions

2018-02-01 Thread Odne Hellebø
Is it something that you will consider adding to bash? I also saw something about the complete inbuilt command, is it possible through that? Just to spur the competition, zsh is able to do it ;) On 29 January 2018 at 15:05, Chet Ramey wrote: > On 1/28/18 8:10 PM, L A Walsh wrote: > > >> > >> It

Re: Feature request: tab completion on functions

2018-01-29 Thread Chet Ramey
On 1/28/18 8:10 PM, L A Walsh wrote:     >> >> It's all fine. He wants case-insensitive matching, which bash can be made >> to do, and non-case-preserving completion, which readline does. >>   > >    Bash can be made to do?  W/o new code? No, it takes a patch to enable case-sensitive matchi

Re: Feature request: tab completion on functions

2018-01-28 Thread L A Walsh
Chet Ramey wrote: On 1/27/18 3:38 PM, L A Walsh wrote: Bash has the nocaseglob option, which ignores case on searching for files via a wildcard. I don't believe there is an option to search for functions ignoring case. So your "ab" will ignore case of a file that is looked up. Bu

Re: Feature request: tab completion on functions

2018-01-28 Thread Chet Ramey
On 1/27/18 3:38 PM, L A Walsh wrote: > Ilkka Virta wrote: >> Doesn't Bash/readline already tab-complete file names so that the >> completion fixes the case? If I do 'touch ABBA' and 'rm ab', it will >> complete the name to 'ABBA'. It also completes 'ab' to 'ABBA' as the >> name of a command if it's

Re: Feature request: tab completion on functions

2018-01-27 Thread L A Walsh
Ilkka Virta wrote: Doesn't Bash/readline already tab-complete file names so that the completion fixes the case? If I do 'touch ABBA' and 'rm ab', it will complete the name to 'ABBA'. It also completes 'ab' to 'ABBA' as the name of a command if it's a binary in PATH, but if it's a function, it

Re: Feature request: tab completion on functions

2018-01-26 Thread Odne Hellebø
@Chet why wouldn't I be able to execute the result? @Ilkka Virta you nailed it :) I may have been slightly unclear on what I want. I have 2 functions makeFoodSpaghetti and makeFoodLasagne. * ma * makeFood * makeFoodl <- this does nothing * makeFoodL-> expands to makeFo

Re: Feature request: tab completion on functions

2018-01-26 Thread Chet Ramey
On 1/26/18 10:23 AM, Ilkka Virta wrote: > On 26.1. 16:36, Chet Ramey wrote: >> You want to be able to complete shell function names case-insensitively >> even though you won't be able to execute the result? I can see case- >> insensitivity for executables on a case-insensitive file system like >> M

Re: Feature request: tab completion on functions

2018-01-26 Thread Ilkka Virta
On 26.1. 16:36, Chet Ramey wrote: You want to be able to complete shell function names case-insensitively even though you won't be able to execute the result? I can see case- insensitivity for executables on a case-insensitive file system like Mac OS HFS+ or APFS, but shell functions? Doesn't B

Re: Feature request: tab completion on functions

2018-01-26 Thread Chet Ramey
On 1/26/18 5:57 AM, Odne Hellebø wrote: > I have some functions that are very similar and would like to be able to > tabcomplete those. The command is like makeFoodSpaghetti and > makeFoodLasagne. I get tabcompletion for make but if the nextletter isn't a > capital letter it doesn't work and ob

Feature request: tab completion on functions

2018-01-26 Thread Odne Hellebø
I have some functions that are very similar and would like to be able to tabcomplete those. The command is like makeFoodSpaghetti and makeFoodLasagne. I get tabcompletion for make but if the nextletter isn't a capital letter it doesn't work and obviously need to have capital letter for S and L