Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Debian User (http://www.linux-archive.org/debian-user/)
-   -   not autocompleting (http://www.linux-archive.org/debian-user/674374-not-autocompleting.html)

Lorenzo Sutton 06-19-2012 07:02 AM

not autocompleting
 
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-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Archive: 4FE02413.4010408@gmail.com">http://lists.debian.org/4FE02413.4010408@gmail.com

mk bane 06-19-2012 07:07 PM

not autocompleting
 
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*

Camaleón 06-20-2012 02:18 PM

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:

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

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

Camaleón 06-23-2012 10:25 AM

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:

(...)

> >> 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 _umount umount
> complete -o filenames -F _insmod modinfo
> complete -o filenames -F _insmod insmod
> complete -F _iptables iptables
> complete -o filenames -F _conjure conjure
> complete -o default -F _gpg gpg
> complete -o filenames -o nospace -F _dd dd
> complete -o filenames -F _longopt expand
> complete -o filenames -F _longopt who
> complete -F _known_hosts ping
> complete -o filenames -F _filedir_xspec harbour
> complete -o filenames -F _filedir_xspec lokalize
> complete -o filenames -F _filedir_xspec amaya
> complete -o filenames -F _filedir_xspec kate
> complete -o filenames -F _filedir_xspec xemacs
> complete -o filenames -F _filedir_xspec dragon
> complete -o filenames -F _filedir_xspec pdftex
> complete -o filenames -F _filedir_xspec unlzma
> complete -F _dhclient dhclient
> complete -o filenames -F _cpio cpio
> complete -o filenames -F _longopt mkdir
> complete -o filenames -F _longopt paste
> complete -o filenames -F _longopt cp
> complete -o filenames -F _root_command kdesudo
> complete -o filenames -F _root_command really
> complete -o filenames -F _filedir_xspec hbpp
> complete -o filenames -F _filedir_xspec rpm2cpio
> complete -o filenames -F _filedir_xspec pdflatex
> complete -F _invoke_rc_d invoke-rc.d
> complete -o filenames -F _ssh_copy_id ssh-copy-id
> complete -F _rdesktop rdesktop
> complete -o filenames -F _dpkg dpkg
> complete -o filenames -F _chgrp chgrp
> complete -F _function declare
> complete -o filenames -F _longopt bash
> complete -o filenames -F _longopt ln
> complete -o filenames -F _longopt df
> complete -o filenames -F _longopt patch
> complete -o filenames -F _filedir_xspec wine
> complete -o filenames -F _filedir_xspec view
> complete -o filenames -F _filedir_xspec vi
> complete -o filenames -F _filedir_xspec unxz
> complete -F _vpnc vpnc
> complete -F _pm_is_supported pm-is-supported
> complete -o filenames -o nospace -F _perl perl
> complete -F _debconf_show debconf-show
> complete -o filenames -F _command else
> complete -o filenames -F _command nice
> complete -F _known_hosts mtr
> complete -v unset
> complete -o filenames -F _filedir_xspec ly2dvi
> complete -o filenames -F _filedir_xspec mozilla-firefox
> complete -o filenames -F _filedir_xspec mozilla
> complete -g groupdel
> complete -F _userdel userdel
> complete -o filenames -F _man man
> complete -o filenames -F _gcc gpc
> complete -o filenames -F _configure configure
> complete -o filenames -F _longopt objcopy
> complete -F _known_hosts traceroute6
> complete -u sux
> complete -o filenames -d -X '.[^./]*' -F _ooexp_ ooimpress
> complete -o filenames -F _filedir_xspec opera
> complete -o filenames -F _filedir_xspec gvim
> complete -o filenames -F _filedir_xspec uncompress
> complete -o filenames -F _animate animate
> complete -F _complete complete
> complete -o filenames -F _longopt dir
> complete -A binding bind
> complete -o filenames -F _filedir_xspec modplugplay
> complete -o filenames -F _filedir_xspec lzgrep
> complete -o nospace -F _scp scp
> complete -F _rpcdebug rpcdebug
> complete -F _ntpdate ntpdate
> complete -o filenames -F _make make
> complete -o filenames -F _gzip pigz
> complete -o filenames -F _fusermount fusermount
> complete -o default -F _aptitude aptitude
> complete -o filenames -F _longopt tr
> complete -o filenames -F _root_command gksu
> complete -F _known_hosts fping
> complete -F _known_hosts ping6
> complete -F _passwd passwd
> complete -o filenames -F _filedir_xspec sqlite3
> complete -o filenames -F _filedir_xspec xanim
> complete -o filenames -F _filedir_xspec unpigz
> complete -o filenames -F _import import
> complete -o filenames -F _montage montage
> complete -F _id id
> complete -o filenames -F _filedir_xspec dillo
> complete -o filenames -F _filedir_xspec aaxine
> complete -o filenames -F _filedir_xspec dvipdfmx
> complete -o filenames -F _filedir_xspec advi
> complete -o filenames -F _filedir_xspec ggv
> complete -F _vipw vigr
> complete -F _pgrep pgrep
> complete -F _killall pkill
> complete -o filenames -F _man apropos
> complete -F _insserv insserv
> complete -o filenames -F _longopt rmdir
> complete -o filenames -F _longopt cut
> complete -o filenames -F _command nohup
> complete -A setopt set
> complete -u groups
> complete -o filenames -d -X '.[^./]*' -F _ooexp_ oocalc
> complete -o filenames -F _filedir_xspec emacs
> complete -o filenames -F _filedir_xspec lzmore
> complete -o filenames -F _filedir_xspec lzless
> complete -o default -F _look look
> complete -F _ifupdown ifdown
> complete -o filenames -F _gcc gcc
> complete -u chfn
> complete -o filenames -F _filedir_xspec fbxine
> complete -o filenames -F _filedir_xspec kdvi
> complete -o filenames -F _xz xz
> complete -F _faillog faillog
> complete -o default -F _mii_tool mii-tool
> complete -o filenames -F _man whatis
> complete -o filenames -F _command padsp
> complete -o filenames -F _command eval
> complete -o filenames -F _filedir_xspec poedit
> complete -o filenames -F _filedir_xspec firefox
> complete -o filenames -F _filedir_xspec lynx
> complete -o filenames -F _filedir_xspec ps2pdf
> complete -o filenames -F _filedir_xspec kpdf
> complete -o filenames -F _filedir_xspec gv
> complete -o filenames -d -X '.[^./]*' -F _ooexp_ ooffice
> complete -o filenames -F _longopt less
> complete -o filenames -F _longopt vdir
> complete -o filenames -F _command vsound
> complete -o filenames -F _command command
> complete -o filenames -d -X '.[^./]*' -F _ooexp_ oomath
> complete -o filenames -F _filedir_xspec madplay
> complete -o filenames -F _filedir_xspec compress
> complete -F _pm_action pm-hibernate
> complete -o filenames -F _info info
> complete -o filenames -F _dpkg dpkg-deb
> complete -o filenames -F _longopt sort
> complete -o filenames -F _longopt ptx
> complete -F _known_hosts ssh-installkeys
> complete -o filenames -F _filedir_xspec lilypond
> complete -o filenames -F _filedir_xspec gtranslator
> complete -o filenames -F _filedir_xspec jadetex
> complete -o filenames -F _tar tar
> complete -F _ssh autossh
> complete -F _rtcwake rtcwake
> complete -F _rmmod rmmod
> complete -o filenames -F _make gmake
> complete -o filenames -F _compare compare
> complete -o filenames -F _convert convert
> complete -o filenames -F _aspell aspell
> complete -o default -F _longopt seq
> complete -o default -F _longopt env
> complete -o filenames -F _longopt fold
> complete -o filenames -F _longopt csplit
> complete -o filenames -F _longopt texindex
> complete -o filenames -F _command then
> complete -b builtin
> complete -j -P '"%' -S '"' fg
> complete -u write
> complete -o filenames -F _filedir_xspec iceweasel
> complete -o filenames -F _filedir_xspec sxemacs
> complete -o filenames -F _filedir_xspec mpg321
> complete -o filenames -F _filedir_xspec mpg123
> complete -o filenames -F _filedir_xspec zcat
> complete -o filenames -F _filedir_xspec unzip
> complete -o filenames -F _filedir_xspec pbunzip2
> complete -F _chage chage
> complete -F _ifupdown ifup
> complete -o filenames -F _longopt wc
> complete -o filenames -F _longopt head
> complete -o filenames -F _command aoss
> complete -o filenames -F _filedir_xspec pdfjadetex
> complete -o filenames -F _filedir_xspec gpdf
> complete -o filenames -F _filedir_xspec dvipdf
> complete -o filenames -F _filedir_xspec kghostview
> complete -o nospace -F _rsync rsync
> complete -o filenames -F _mogrify mogrify
> complete -o default -F _iconv iconv
> complete -o filenames -F _longopt mknod
> complete -o filenames -F _longopt ls
> complete -o filenames -F _command ltrace
> complete -F _known_hosts rsh
> complete -F _nslookup nslookup
> complete -u w
> complete -o filenames -F _filedir_xspec gharbour
> complete -o filenames -F _filedir_xspec modplug123
> complete -o filenames -F _filedir_xspec dvipdfm
> complete -o filenames -F _filedir_xspec pbzcat
> complete -o filenames -F _gcc gcj
> complete -o default -F _dpkg_reconfigure dpkg-reconfigure
> complete -F _chsh chsh
> complete -F _function typeset
> complete -F _function function
> complete -o filenames -F _longopt sha1sum
> complete -F _known_hosts dig
> complete -F _known_hosts telnet
> complete -c type
> complete -A shopt shopt
> complete -o filenames -d -X '.[^./]*' -F _ooexp_ oobase
> complete -o filenames -F _filedir_xspec texi2dvi
> complete -o filenames -F _filedir_xspec texi2html
> complete -o filenames -F _filedir_xspec zipinfo
> complete -F _gpasswd gpasswd
> complete -o filenames -F _pwck pwck
> complete -F _resolvconf resolvconf
> complete -F _pm_action pm-suspend-hybrid
> complete -o filenames -F _find find
> complete -o filenames -F _longopt unexpand
> complete -o filenames -F _longopt od
> complete -o filenames -F _longopt fmt
> complete -o filenames -F _longopt du
> complete -o filenames -F _filedir_xspec epiphany
> complete -o filenames -F _filedir_xspec ps2pdf12
> complete -o filenames -F _filedir_xspec ee
> complete -o filenames -F _filedir_xspec lzcat
> complete -F _ssh slogin
> complete -o default -F _openssl openssl
> complete -o filenames -F _display display
> complete -o filenames -F _gcc cc
> complete -F _known_hosts showmount
> complete -o nospace -F _user_at_host talk
> complete -v readonly
> complete -o filenames -F _filedir_xspec ps2pdf13
> complete -o filenames -F _filedir_xspec gunzip
> complete -F _sftp sftp
> complete -g -F _newgrp newgrp
> complete -F _groupmod groupmod
> complete -F _usermod usermod
> complete -F _pack200 pack200
> complete -F _update_initramfs update-initramfs
> complete -F _getent getent
> complete -o default -F _longopt netstat
> complete -o filenames -F _longopt rm
> complete -o filenames -F _longopt readelf
> complete -o filenames -F _root_command fakeroot
> complete -o filenames -F _filedir_xspec google-chrome
> complete -o filenames -F _filedir_xspec vim
> complete -o filenames -F _filedir_xspec ps2pdf14
> complete -o filenames -F _filedir_xspec okular
> complete -o filenames -F _filedir_xspec dvips
> complete -o filenames -F _filedir_xspec lzfgrep
> complete -o filenames -d -X '.[^./]*' -F _ooexp_ oofromtemplate
> complete -F _unpack200 unpack200
> complete -o filenames -F _identify identify
> complete -o filenames -F _gzip gzip
> complete -o filenames -F _longopt cat
> complete -o filenames -F _longopt date
> complete -F _known_hosts fping6
> complete -j -P '"%' -S '"' disown
> complete -u su
> complete -o filenames -F _filedir_xspec kompare
> complete -o filenames -F _filedir_xspec hbrun
> complete -o filenames -F _filedir_xspec kbabel
> complete -o filenames -F _filedir_xspec rview
> complete -o filenames -F _filedir_xspec kaffeine
> complete -o filenames -F _filedir_xspec slitex
> complete -o filenames -F _gcc c++
> complete -o filenames -F _longopt wget
> complete -o filenames -F _longopt md5sum
> complete -o filenames -F _longopt touch
> complete -o filenames -F _longopt diff
> complete -o filenames -F _longopt objdump
> complete -o nospace -F _cd cd
> complete -o filenames -F _filedir_xspec galeon
> complete -o filenames -F _filedir_xspec bzme
> complete -o filenames -F _filedir_xspec xfig
> complete -o filenames -F _filedir_xspec xv
> complete -o filenames -F _filedir_xspec xzcat
> complete -F _xhost xhost
> complete -o filenames -F _python python
> complete -F _pm_powersave pm-powersave
> complete -o filenames -F _make pmake
> complete -o filenames -F _cancel cancel
> complete -o default -F _cpan2dist cpan2dist
> complete -o filenames -F _apt_get apt-get
> complete -o filenames -F _longopt tee
> complete -o filenames -F _longopt mkfifo
> complete -o filenames -F _longopt gprof
> complete -F _known_hosts traceroute
> complete -o filenames -F _filedir_xspec lyx
> complete -o filenames -F _filedir_xspec rgvim
> complete -o filenames -F _filedir_xspec timidity
> complete -o filenames -F _filedir_xspec dvitype
> complete -o filenames -F _filedir_xspec dviselect
> complete -o filenames -F _filedir_xspec xdvi
> complete -o filenames -F _grpck grpck
> complete -F _route route
> complete -o default -o filenames -F _mutt muttng
> complete -o default -o dirnames -F _mount mount
> complete -o filenames -F _longopt uniq
> complete -o filenames -F _root_command sudo
> complete -o filenames -F _command tsocks
> complete -a unalias

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: 20120623102527.GA4593@stt008.linux.site">http://lists.debian.org/20120623102527.GA4593@stt008.linux.site

Curt 06-23-2012 01:32 PM

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:

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-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

mk bane 07-03-2012 07:11 PM

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

Camaleón 07-04-2012 03:40 PM

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

Curt 07-04-2012 05:05 PM

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 :-?


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-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

Camaleón 07-04-2012 05:36 PM

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

Kushal Kumaran 07-05-2012 07:09 AM

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


All times are GMT. The time now is 01:38 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.