[IPython-user] feature request
Ryan Krauss
ryanlists@gmail....
Wed May 16 22:41:10 CDT 2007
I don't know if this would be unreasonable to implement, but I have a
feature request. I often have many files of very similar names but
with different extensions when I am working on a project. I would
like IPython to filter out certain file extensions when I type run and
part of a file name and then do tab completion. For example, in the
directory I am working in right now, if I type
In [4]: run sym<tab>
I get:
sym_example_dev_eqs sym_example_dev_editted_2_out.out
sym_example_bode0.f sym_w_spring_bode0.f
sym_analysis_example_eqs sym_analysis_example.py~
sym_example_dev_editted_2_out.tex sym_example_dev_out.dvi
sym_example_dev_editted_2_out.dvi sym_example_dev_out.tex
sym_example_dev_editted_2.tex sym_w_spring_dev.mac
sym_example_dev.tex sym_w_spring_dev.tex
sym_example_dev.mac sym_w_spring_dev_eqs
sym_analysis_example_out.tex sym_w_spring_dev_out.dvi
sym_analysis_example_out.dvi sym_w_spring_dev_out.tex
sym_analysis_example.tex sym_analysis_example.py
sym_analysis_example.mac sym_w_spring_dev_out.log
sym_example_dev_editted_2_out.log sym_w_spring_dev_out.aux
sym_example_dev_editted_2_out.aux sym_w_spring_dev_out.out
which is a big mess to sort through, but there is only 1 *.py file. I
would never want to run anything except a *.py file (maybe there are
legitimate reasons to run other types of files, but I never have).
So, in the example above, I would like run sym<tab> to show what I
consider to be the only logical completion, sym_analysis_example.py.
I know I sort of do it to myself with my choice of file names and it
is a small annoyance, but I do it a lot.
Does that make sense? Are there good reasons to ever run something
that isn't *.py? Or can some extensions be filtered out of tab
completion?
Thanks,
Ryan
More information about the IPython-user
mailing list