Replies: 1 comment 2 replies
-
I don't remember missing such a feature myself. It can surely be useful in some use cases and workflows, but then again so could be completing with the oldest/smallest/largest/random/first-sorted/last-sorted one. And offhand I think more often than not we should respect the globs for completing these special cases so that e.g. for a PDF viewer one would get the newest/oldest/... PDF. I guess I find the idea interesting, but there are so many variables at play that I'm not sure an easy enough to use implementation exists. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Some time ago I put together a modification to
_filedir
to allow autocomplete to return the latest file in a directory. I've found this to be incredibly useful, so I've put together a fork with these changes:https://github.com/compholio/bash-completion
Examples:
I'd be curious to see how others feel about this and whether people think this feature (or a version of it) is worth including in bash-completion.
Beta Was this translation helpful? Give feedback.
All reactions