scop / bash-completion

Programmable completion functions for bash
GNU General Public License v2.0
2.9k stars 380 forks source link

Filename autocompletion for dot program does not accept .gv extension #1109

Closed bluelightning32 closed 7 months ago

bluelightning32 commented 7 months ago

Describe the bug

Dot is a program in the graphviz package. Its source files used to use .dot as a file extension. However, according to wikipedia, .gv is now the preferred file extension.

Bash autocompletion only accepts files with the legacy .dot extension. It will not autocomplete files with the .gv extension.

To reproduce

  1. Create a blank file called test.gv. For example, it can be created by running : >test.gv.
  2. Type dot test.
  3. Hit tab. Watch how the filename is not completed.

Expected behavior

The test.gv filename from the example should be expanded when tab is pressed.

Versions (please complete the following information)

Additional context

Debug trace

trace.txt

akinomyoga commented 7 months ago

Thanks for the report.