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.
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.
Hope this helps,
Lorenzo.
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
On Tue, Jun 19, 2012 at 8:02 AM, Lorenzo Sutton <lorenzofsutton@gmail.com> wrote:
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 .per<TAB>*
it completes the directory (.personal)but if I try*oocalc .per<TAB>it doesn't complete.If I try other commands, eg** emacs .per<TAB>they seem to complete okay
Thanks, M*
06-20-2012, 02:18 PM
Camaleón
not autocompleting
On Tue, 19 Jun 2012 20:07:41 +0100, mk bane wrote:
> On Tue, Jun 19, 2012 at 8:02 AM, Lorenzo Sutton
> <lorenzofsutton@gmail.com>wrote:
>
>> 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
Mmm... then the auto-completion should be done for the defined mime-types
but as you mentioned, the autocompletion is not being done also for
directories, not just OOo filenames... weird :-?
What's the output of "complete -p | grep oocalc"? I get:
--
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/jrsm41$8av$5@dough.gmane.org
06-23-2012, 10:25 AM
Camaleón
not autocompleting
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.bane@googlemail.com>wrote:
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...)?
I'm going out of ideas :-/
> For ref, my full complete -p output is attached
I leave the bunch of text "as is" so other can review.
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20120623102527.GA4593@stt008.linux.site">http://lists.debian.org/20120623102527.GA4593@stt008.linux.site
06-23-2012, 01:32 PM
Curt
not autocompleting
On 2012-06-16, mk bane <michael.k.bane@googlemail.com> 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,
Seems as though there's an old bug report concerning this here:
Look at Drew Parson's post, for instance, where he refers to oocalc not
prompting for autocompletion for files with certain suffixes.
I personally verified his empirical data (-) by creating an empty
directory on my machine and "touching" two files, 'datafile.dat' and
'datafile.txt". oocalc will not autocomplete for the former but will
autocomplete for the latter.
Is your problem related to file suffixes or to something else entirely?
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: slrnjubhcq.24l.curty@einstein.electron.org">http://lists.debian.org/slrnjubhcq.24l.curty@einstein.electron.org
07-03-2012, 07:11 PM
mk bane
not autocompleting
On 6/23/12, Camaleón <noelamac@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.bane@googlemail.com>wrote:
>
> (...)
>
>> >> 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-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: http://lists.debian.org/CALcNodH6P19f8+EeXW7NCoD_-=RPFahF6N10kG0owfyWatMHEA@mail.gmail.com
07-04-2012, 03:40 PM
Camaleón
not autocompleting
On Tue, 03 Jul 2012 20:11:19 +0100, mk bane wrote:
> On 6/23/12, Camaleón <noelamac@gmail.com> wrote:
(...)
>> 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
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 :-?
Greetings,
--
Camaleón
--
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/jt1o65$3jh$11@dough.gmane.org
07-04-2012, 05:05 PM
Curt
not autocompleting
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 :-?
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
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: slrnjv8u1i.2vn.curty@einstein.electron.org">http://lists.debian.org/slrnjv8u1i.2vn.curty@einstein.electron.org
07-04-2012, 05:36 PM
Camaleón
not autocompleting
On Wed, 04 Jul 2012 17:05:58 +0000, Curt 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
(...)
Ah! Sure, the above listing, I completely forgot.
Now, if you tell the user what needs to be done to tweak the current
complete routines your post would be even useful.
Greetings,
--
Camaleón
--
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/jt1uv8$3jh$17@dough.gmane.org
07-05-2012, 07:09 AM
Kushal Kumaran
not autocompleting
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_JDex w@mail.gmail.com">http://lists.debian.org/CAH8GtdPHfvTu66tEC4NpRX03j5zkef8sUrkL9Etf4cAE_JDex w@mail.gmail.com