FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 07-14-2012, 02:37 PM
mk bane
 
Default 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:
> http://lists.debian.org/CAH8GtdPHfvTu66tEC4NpRX03j5zkef8sUrkL9Etf4cAE_JDex w@mail.gmail.com
>
>


--
Michael
@mkbane_mcr


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: http://lists.debian.org/CALcNodHig3Zs1djFmMj9Fu6QmoBjJh=MPxzp0GRA9mrHW28vg w@mail.gmail.com
 

Thread Tools




All times are GMT. The time now is 10:28 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org