LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-24-2017, 03:17 PM   #1
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6, CentOS 7 (with Mate), Ubuntu 16.04 Mate
Posts: 1,965

Rep: Reputation: 159Reputation: 159
Tab completion on Gnome 3 ?


Not sure where to post this question so please allow me to try it here...

I setup a CentOS 7 development machine to attempt to compile a source package. Basic install from the Everything DVD - packages for development and the default Gnome 3 desktop. Having no luck with my build project I obtained an rpm from another source and tried to install it thusly

1 - downloaded the .rpm (gnome-commander-1.6.2-1.el7.nux.x86_64.rpm) to the ~/Download dirctory
2 - opened a terminal
3 - cd to ~/Download
4 - su
5 - yum install g [TAB]

I would have expected tab completion to fill in the complete name of the package as I was in the same directory as the package file and there were no other files present. I continued typing

gn [TAB] nothing
gno [TAB] nothing
gnom [TAB] filled in to gnome-
gnome-c [TAB] filled in to gnome-co
gnome-com [TAB] filled in to gnome-comm
gnome-comma [TAB] filled in the complete file name gnome-commander-1.6.2-1.el7.nux.x86_64.rpm

I have used tab completion on CentOS 7 with the Mate destkop, CentOS 6 with Gnome 2, various buntu's, Fedora's, early Red Hat's. I have never seen this sort of behavior.

Granted if I have several similarly named files in the same directory I will have to prompt tab completion along so it can differentiate the files. But with only ONE file in the directory? Is this a Gnome 3 thing?

TIA,

Ken
 
Old 02-25-2017, 07:50 AM   #2
goumba
Senior Member
 
Registered: Dec 2009
Location: New Jersey, USA
Distribution: Current: Debian and OpenSUSE. Past: Arch, RedHat (pre-RHEL). FreeBSD & OpenBSD novice, Hackintosh
Posts: 1,192
Blog Entries: 7

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
Quote:
Originally Posted by taylorkh View Post
Granted if I have several similarly named files in the same directory I will have to prompt tab completion along so it can differentiate the files. But with only ONE file in the directory? Is this a Gnome 3 thing?

TIA,

Ken
I don't use CentOS, but seeing as you have yet to get a reply and it's been more than a day since you posted, I figured I'd offer a suggestion.

It's unlikely caused by GNOME 3 itself. I have no problems with completion on my Debian machine.

What shell are you using? Debian has a "bash-completion" package for this purpose with bash, perhaps CentOS has something similar and it has not been installed? Check your shell, your installed packages and the repositories.
 
Old 02-25-2017, 08:24 AM   #3
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6, CentOS 7 (with Mate), Ubuntu 16.04 Mate
Posts: 1,965

Original Poster
Rep: Reputation: 159Reputation: 159
Thanks goumba,

Yes, I am using bash. I did notice when I accidentally pressed [Enter] while displaying "#yum install gnome-" the system displayed a list of all sorts of stuff beginning with "gnome-" It seemed that tab completion was reading everything in root's path or the RPM database or yum package list or something other than the files in the pwd.

The virtual machine in question was a "development" workstation with all sorts of compilers, tools and the kitchen sink installed. I need to build a Gnome 3 "civilian" test VM. I will see what tab completion does on that machine and update the thread.

Thanks again,

Ken
 
Old 02-25-2017, 11:19 AM   #4
goumba
Senior Member
 
Registered: Dec 2009
Location: New Jersey, USA
Distribution: Current: Debian and OpenSUSE. Past: Arch, RedHat (pre-RHEL). FreeBSD & OpenBSD novice, Hackintosh
Posts: 1,192
Blog Entries: 7

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
Quote:
Originally Posted by taylorkh View Post
Thanks goumba,

Yes, I am using bash. I did notice when I accidentally pressed [Enter] while displaying "#yum install gnome-" the system displayed a list of all sorts of stuff beginning with "gnome-" It seemed that tab completion was reading everything in root's path or the RPM database or yum package list or something other than the files in the pwd.
That may be how CentOS is configured. Check out /usr/share/bash_completion/bash_completion, which should be a shell script which sets up how completion is done, what order, etc.

See http://stackoverflow.com/questions/5...ompletion-work for more information on how completion works (if you feel like getting into it). The files in your home directory may be the last thing the completion mechanism is set to look at.

Last edited by goumba; 02-25-2017 at 11:20 AM.
 
Old 02-25-2017, 12:34 PM   #5
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6, CentOS 7 (with Mate), Ubuntu 16.04 Mate
Posts: 1,965

Original Poster
Rep: Reputation: 159Reputation: 159
Thanks again goumba,

I just built a new CentOS 7 Gnome 3 virtual machine to test a new gnome-commander package from nux. Tab completion is functioning in the same strange way. I have gotten gnome-commander 1.6.2 to install and run which is GREAT. Now I need to go back to CentOS 7 Mate which I actually use and get g-c working there. I will compare the completion scripts from both environments and see what I can determine. Not exactly top priority at the moment but I appreciate the info and I am curious.

Ken
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Argument tab completion KaosX Programming 1 04-08-2011 05:50 PM
Tab completion in CSH Akhran *BSD 11 07-14-2008 06:24 PM
no tab completion maddocks AIX 2 12-27-2007 02:10 PM
Tab-completion kzr_merchant Programming 2 12-17-2007 05:00 PM
tab completion with scp fsbooks Linux - General 5 04-07-2005 04:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration