Re: not autocompleting
Hi all, just to confirm
complete -o filenames -d -F _ooexp_ oocalc
did the job
Many thanks, M
On 7/5/12, Kushal Kumaran <kushal.kumaran+debian@gmail.com> wrote:
> On Wed, Jul 4, 2012 at 10:35 PM, Curt <curty@free.fr> wrote:
>> On 2012-07-04, Camaleón <noelamac@gmail.com> wrote:
>>>
>>> Ah, you mean for "hidden" directories.
>>>
>>> For those I neither get the autocomplete when using OOo applications
>>> (oowriter, oocalc...), though it works with the usual bash built-in
>>> tools
>>> (e.g., "cat .th[tab]" → it does autocomplete).
>>>
>>> Not sure if this behaviour can be tweaked :-?
>>
>>
>> curty@einstein:/etc$ complete -p | grep oocalc
>> complete -o filenames -d -X '.[^./]*' -F _ooexp_ oocalc
>>
>> If I only knew what that meant!
>>
>
> The -X option's value excludes entries that begin with a dot from the
> completion list. I don't know why it is done this way, but changing
> it is easy. The lines printed by complete -p are actual bash builtin
> command lines, that you can edit and run.
>
> So just run this:
>
> complete -o filenames -d -F _ooexp_ oocalc
>
> and bash will now show files starting with "." when completing (You
> can do similar things for the other OO commands). For permanence, add
> this line to your .bashrc after /etc/bash_completion is sourced, to
> override whatever it does.
>
> I'm too lazy to track down why the -X exclusion is being used. There
> might be good reasons for that.
>
>> Completion is implemented in the file /etc/bash_completion
>> New completion commands may be placed inside the directory
>> /etc/bash_completion.d
>> We can list all the current completion routines bound via "complete -p"
>>
>> http://www.debian-administration.org/articles/316
>>
>
> --
> regards,
> kushal
>
>
> --
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact
> listmaster@lists.debian.org
> Archive:
> [🔎] CAH8GtdPHfvTu66tEC4NpRX03j5zkef8sUrkL9Etf4cAE_JDexw@mail.gmail.com">http://lists.debian.org/[🔎] CAH8GtdPHfvTu66tEC4NpRX03j5zkef8sUrkL9Etf4cAE_JDexw@mail.gmail.com
>
>
--
Michael
@mkbane_mcr
Reply to: