moohaad / pyscripter

Automatically exported from code.google.com/p/pyscripter
0 stars 0 forks source link

Add directories/files names autocompletion in string values #190

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago

Is it possible to add a little useful feature that exist in current
python idle ?
it's an autocompletion feature : when creating a string using " " or ' ' if
user press Ctrl+Space it display a list of directories/files in the current
directory (according to os.getcwd() ) or if the string contains a path
it display a list of directories/files in this path.

Original issue reported on code.google.com by sebastie...@gmail.com on 14 Jan 2008 at 9:14

GoogleCodeExporter commented 9 years ago

Original comment by pyscripter on 1 Mar 2008 at 3:15

GoogleCodeExporter commented 9 years ago
I dont think the file part is required.
There is a builtin module called glob  which includes unix/dos style file 
handling so you can do *\*file.txt  inside your code.

this might be a simple python code sample for you, to see glob in action :
http://wiki.brilaps.com/wikka.php?wakka=pythumb

Original comment by peter.b...@gmail.com on 28 Oct 2010 at 9:03