Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visual feeback when using pathname expansion with globs or braces #3304

Closed
olivergondza opened this issue Aug 17, 2016 · 1 comment
Closed

Comments

@olivergondza
Copy link
Contributor

olivergondza commented Aug 17, 2016

Environment:

  • fish, version 2.3.1
  • rxvt-unicode (urxvt) v9.22 - released: 2016-01-23
  • Linux arch 4.1.17-1-lts Need a history built-in #1 SMP Mon Feb 1 16:35:08 CET 2016 x86_64 GNU/Linux

Fish provides visual aids while typing the pathname and pressing <TAB> by listing all possible matches. Bash, for instance, does that even when glob or [...] is used. This is great help to check what the expression is going to evaluate to before the command is started.

Reproduction steps

In fish

$ mkdir test; cd test; touch 01 02 03 04
$ rm 0<TAB>
01  02  03  04
$ rm 0{1,2}<TAB> # No feedback
$ rm 0?<TAB> # No feedback
$ rm 0*<TAB> # No feedback

In bash

$ mkdir test; cd test; touch 01 02 03 04
$ rm 0<TAB>
01  02  03  04
$ rm 0[12]<TAB>
01  02
$ rm 0?<TAB>
01  02  03  04
$ rm 0*<TAB>
01  02  03  04

Expected results

It would be great if fish can be as useful as bash in these cases.

@faho
Copy link
Member

faho commented Aug 17, 2016

This is basically the same thing as #954. We need to improve completion (and possibly highlighting) for these expansions.

@faho faho closed this as completed Aug 17, 2016
@faho faho added the duplicate label Aug 17, 2016
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants