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+deb...@gmail.com wrote: On Wed, Jul 4, 2012 at 10:35 PM, Curt cu...@free.fr wrote: On 2012-07-04, Camaleón noela...@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-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/cah8gtdphfvtu66tec4nprx03j5zkef8surkl9etf4cae_jd...@mail.gmail.com -- Michael @mkbane_mcr -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/CALcNodHig3Zs1djFmMj9Fu6QmoBjJh=mpxzp0gra9mrhw28...@mail.gmail.com
Re: not autocompleting
On 6/23/12, Camaleón noela...@gmail.com wrote: El 2012-06-22 a las 20:23 +0100, mk bane escribió: (resending to the list) On Fri, Jun 22, 2012 at 8:20 PM, mk bane michael.k.b...@googlemail.comwrote: (...) What's the output of complete -p | grep oocalc? I get: sm01@stt008:~/Desktop$ complete -p | grep oocalc complete -o filenames -d -X '.[^./]*' -F _ooexp_ oocalc Hi Camaleon Mine looks same? mkb@amd64:~$ complete -p |grep oocalc complete -o filenames -d -X '.[^./]*' -F _ooexp_ oocalc It looks okay. How about your alias? Do you have something fancy added that can be interferring with autocomplete? Are you experiencing the problem when you login with a different user? Does the same happen for all of the OOo applications (oowriter, oodraw, ooimpres...)? Hi folks with apologies for being busy elsewhere... The problem for oocalc is when the directory begins with a dot (.) and partially given, eg oocalc .per[TAB] won't auto-complete but oocalc time[TAB] will auto-complete Same applies to oowriter Thanks, Michael -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/CALcNodH6P19f8+EeXW7NCoD_-=rpfahf6n10kg0owfywatm...@mail.gmail.com
Re: not autocompleting
On Tue, Jun 19, 2012 at 8:02 AM, Lorenzo Sutton lorenzofsut...@gmail.comwrote: On 16/06/12 17:05, Camaleón wrote: On Sat, 16 Jun 2012 14:16:51 +0100, mk bane wrote: A while ago I upgraded to Squeeze. I've noticed filename completion does not appear to work for some commands, such as oocalc. Anybody point me the direction of a solution? Thanks, Is it only failing for a specific set of filenames (OOo)? If so, there has to be a file at /etc/bash_completion.d/**ooffice.sh for that purpose, installed by openoffice.org-common package. That file exists, yes Otherwise, if completion is not working at all, chances are that during upgrade your /etc/bash.bashrc was overwritten/changed so that the completion part was commented out (I think that is the default on vanilla installs?). Have a look at /etc/bash.bashrc and search for a comment: # enable bash completion in interactive shells and uncomment the lines just after it. That does appear to be anywhere but if I source it I still have the problem. Clarification of the problem: if I do ls .perTAB it completes the directory (.personal) but if I try oocalc .perTAB it doesn't complete. If I try other commands, eg emacs .perTAB they seem to complete okay Thanks, M
not autocompleting
A while ago I upgraded to Squeeze. I've noticed filename completion does not appear to work for some commands, such as oocalc. Anybody point me the direction of a solution? Thanks, -- Michael @mkbane_mcr