Saturday, 24 August 2013

Command tab completion of arguments from folder

Command tab completion of arguments from folder

Is it possible to create a list of completions for a command based on some
folder's files?
Say I want to run Sublime Text 2 on one of my projects, which are saved as
~/sublime_projects/*.sublime-project. Desired behaviour:
subl<tab><tab>
foo bar project2
in case there are foo.sublime-project, bar.sublime-project,
project2.sublime-project files in ~/sublime_projects.

No comments:

Post a Comment