Re: not autocompleting

2012-07-14 Thread mk bane
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

2012-07-05 Thread Kushal Kumaran
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



Re: not autocompleting

2012-07-04 Thread Camaleón
On Tue, 03 Jul 2012 20:11:19 +0100, mk bane wrote:

 On 6/23/12, Camaleón noela...@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-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/jt1o65$3jh$1...@dough.gmane.org



Re: not autocompleting

2012-07-04 Thread Curt
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!

 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-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/slrnjv8u1i.2vn.cu...@einstein.electron.org



Re: not autocompleting

2012-07-04 Thread Camaleón
On Wed, 04 Jul 2012 17:05:58 +, Curt 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

(...)

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-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/jt1uv8$3jh$1...@dough.gmane.org



Re: not autocompleting

2012-07-03 Thread mk bane
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

2012-06-23 Thread Camaleón
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...)?

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.

 complete -o filenames -d -X '.[^./]*' -F _ooexp_ oodraw
 complete -o filenames -F _filedir_xspec elinks
 complete -o filenames -F _filedir_xspec freeamp
 complete -F _kill kill
 complete -F _renice renice
 complete -F _update_alternatives alternatives
 complete -o filenames -F _reportbug reportbug
 complete -F _pgrep pidof
 complete -o filenames -d -X '.[^./]*' -F _ooexp_ ooweb
 complete -o filenames -F _java java
 complete -o filenames -F _stream stream
 complete -o filenames -F _longopt split
 complete -o filenames -F _longopt sed
 complete -o filenames -F _longopt grep
 complete -o filenames -F _longopt ld
 complete -j -P '%' -S '' jobs
 complete -d pushd
 complete -o filenames -F _filedir_xspec playmidi
 complete -F _service service
 complete -o filenames -F _querybts querybts
 complete -F _killall killall
 complete -o filenames -F _composite composite
 complete -o filenames -F _gcc g77
 complete -o filenames -F _gcc g++
 complete -o filenames -F _longopt mv
 complete -F _known_hosts rlogin
 complete -b help
 complete -A stopped -P '%' -S '' bg
 complete -o filenames -F _filedir_xspec cdiff
 complete -o filenames -F _filedir_xspec bibtex
 complete -o filenames -F _filedir_xspec rgview
 complete -o filenames -F _filedir_xspec realplay
 complete -o filenames -F _filedir_xspec xine
 complete -o filenames -F _filedir_xspec xpdf
 complete -F _sysctl sysctl
 complete -F _groupadd groupadd
 complete -o filenames -F _newusers newusers
 complete -F _useradd useradd
 complete -o filenames -d -X '.[^./]*' -F _ooexp_ unopkg
 complete -o default -o filenames -F _mutt mutt
 complete -o filenames -F _insmod modprobe
 complete -o filenames -F _make gnumake
 complete -o default -o nospace -F _export export
 complete -o filenames -F _longopt pr
 complete -o filenames -F _longopt strip
 complete -F _known_hosts ftp
 complete -o filenames -d -X '.[^./]*' -F _ooexp_ oowriter
 complete -o filenames -F _filedir_xspec chromium-browser
 complete -o filenames -F _filedir_xspec gqmpeg
 complete -o filenames -F _filedir_xspec tex
 complete -o filenames -F _filedir_xspec lzegrep
 complete -F _update_rc_d update-rc.d
 complete -o bashdefault -F _perldoc perldoc
 complete -o filenames -F _longopt m4
 complete -o filenames -F _command do
 complete -o filenames -F _command time
 complete -o filenames -F _command exec
 complete -o nospace -F _user_at_host finger
 complete -o nospace -F _user_at_host ytalk
 complete -c which
 complete -u slay
 complete -o filenames -F _filedir_xspec aviplay
 complete -o filenames -F _filedir_xspec latex
 complete -o filenames -F _filedir_xspec evince
 complete -F _update_alternatives update-alternatives
 complete -F _vipw vipw
 complete -o nospace -F _alias alias
 complete -o filenames -F _apt_cache apt-cache
 complete -o default -F _longopt uname
 complete -o filenames -F _longopt ldd
 complete -o filenames -F _longopt tac
 complete -F _known_hosts tracepath6
 complete -o filenames -F _filedir_xspec netscape
 complete -o filenames -F _filedir_xspec acroread
 complete -F _xrandr xrandr
 complete -o filenames -F _longopt bc
 complete -o filenames -F _root_command gksudo
 complete -o filenames -F _filedir_xspec rvim
 complete -o filenames -F _filedir_xspec makeinfo
 complete -o filenames -F _filedir_xspec bunzip2
 complete -F _ssh ssh
 complete -F _lastlog lastlog
 complete -F _pm_action pm-suspend
 complete -F _desktop_file_validate desktop-file-validate
 complete -o filenames -F _longopt tail
 complete -o filenames -F _longopt nl
 complete -F _known_hosts host
 complete -F _known_hosts tracepath
 complete -o filenames -F _filedir_xspec ogg123
 complete -F _chpasswd chpasswd
 complete -o filenames -F _chown chown
 complete -o filenames -F _longopt awk
 complete -o filenames -F _longopt nm
 complete -o filenames -F _command xargs
 complete -o filenames -F _filedir_xspec kwrite
 complete -o filenames -F _filedir_xspec gview
 complete -o filenames -F _filedir_xspec ps2pdfwr
 complete -o filenames -F _filedir_xspec qiv
 complete -o filenames -F _filedir_xspec znew
 complete -o filenames -F _filedir_xspec bzcat
 complete -o dirnames -F 

Re: not autocompleting

2012-06-23 Thread Curt
On 2012-06-16, mk bane michael.k.b...@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:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=503691

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-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/slrnjubhcq.24l.cu...@einstein.electron.org



Re: not autocompleting

2012-06-20 Thread Camaleón
On Tue, 19 Jun 2012 20:07:41 +0100, mk bane wrote:

 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

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:

sm01@stt008:~/Desktop$ complete -p | grep oocalc
complete -o filenames -d -X '.[^./]*' -F _ooexp_ oocalc

Greetings,

-- 
Camaleón


-- 
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/jrsm41$8av$5...@dough.gmane.org



Re: not autocompleting

2012-06-19 Thread Lorenzo Sutton

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.


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-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/4fe02413.4010...@gmail.com



Re: not autocompleting

2012-06-19 Thread mk bane
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

2012-06-16 Thread mk bane
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


Re: not autocompleting

2012-06-16 Thread Camaleón
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.

Greetings,

-- 
Camaleón


-- 
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/jri7bd$tm4$6...@dough.gmane.org