Hi all, just to confirm complete -o filenames -d -F _ooexp_ oocalc
did the job Many thanks, M On 7/5/12, Kushal Kumaran <[email protected]> wrote: > On Wed, Jul 4, 2012 at 10:35 PM, Curt <[email protected]> wrote: >> On 2012-07-04, Camaleón <[email protected]> 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 [email protected] > with a subject of "unsubscribe". Trouble? Contact > [email protected] > Archive: > http://lists.debian.org/cah8gtdphfvtu66tec4nprx03j5zkef8surkl9etf4cae_jd...@mail.gmail.com > > -- Michael @mkbane_mcr -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected] Archive: http://lists.debian.org/CALcNodHig3Zs1djFmMj9Fu6QmoBjJh=mpxzp0gra9mrhw28...@mail.gmail.com

