Bug 1227980

Summary: dnf does not tab complete as far as possible for ambiguous completions
Product: [Fedora] Fedora Reporter: Alex Richert <alexrichert>
Component: dnfAssignee: Igor Gnatenko <ignatenko>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: 22CC: ctubbsii, ignatenko, jsilhan, jzeleny, mluscon, packaging-team-maint, pnemade, tim.lauridsen, vmukhame
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-19 20:53:15 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Alex Richert 2015-06-04 02:24:53 UTC
Description of problem:
Unlike yum, dnf does not tab complete as far as possible if there are multiple matching packages (see example below).

Version-Release number of selected component (if applicable):
dnf-1.0.0-1.fc22

How reproducible:
Always

Steps to Reproduce:
1. Type "pytho[tab]"

Actual results:
Nothing happens.

Expected results:
"pytho" should change to "python", since for all packages begin with "pytho", the next letter is "n".

Comment 1 Parag Nemade 2015-06-04 04:31:44 UTC
Works fine for me. See

$ sudo dnf install pytho[tab][tab]
Display all 2325 possibilities? (y or n)
python2-firewall.noarch
python2-openms.x86_64
python3-actdiag.noarch
python3-admesh.x86_64
python3-ahkab.noarch
.....
.....
<snip>

but yes what you are expecting that whatever characters with tabtab is pressed the common word that completes those character is not appearing with dnf.

Comment 2 Alex Richert 2015-06-04 04:42:25 UTC
I'm not sure what you mean in that second part there, but just try it with yum for contrast. "yum install pytho[tab]" (just one tab) changes "pytho" to "python", then offers "Display all N possibilities?" after *another* two tabs. dnf does not do this.

Comment 3 Parag Nemade 2015-06-04 04:49:51 UTC
Yes I mean the same. We don't have single tab functionality for tab completion in dnf.

Comment 4 Alex Richert 2015-06-04 09:42:58 UTC
Indeed, that's why I filed this. As a matter of clarification I changed this to a feature request. Are there/could there be plans of bringing back this functionality (seeing as it exists in yum)?

Comment 5 Honza Silhan 2015-07-24 11:31:50 UTC
Igor, do you know what yum does differently?

Comment 6 Igor Gnatenko 2015-07-24 11:48:03 UTC
(In reply to Jan Silhan from comment #5)
> Igor, do you know what yum does differently?

oh, it looks like a black magic from bash ;)

Comment 7 Christopher Tubbs 2016-05-24 04:58:31 UTC
Is this bug a duplicate of bz#1226663?

Comment 8 Fedora End Of Life 2016-07-19 20:53:15 UTC
Fedora 22 changed to end-of-life (EOL) status on 2016-07-19. Fedora 22 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.