By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,869 Members | 1,756 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,869 IT Pros & Developers. It's quick & easy.

Allow tab completion when inputing filepath?

P: n/a
Hi all,

I've been looking around on the web for a way to do this, but so far
have not come across anything for this particular application. I have
found some ways to enable tab completion for program-related commands,
but not for system filepaths. This would be nice to have when
prompting the user to enter a file/directory location.

Any suggestions?

Thanks,
Keith
Jul 9 '08 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Keith Hughitt wrote:
I've been looking around on the web for a way to do this, but so far
have not come across anything for this particular application. I have
found some ways to enable tab completion for program-related commands,
but not for system filepaths. This would be nice to have when
prompting the user to enter a file/directory location.
What platform are you on? And what kind of display?
(Console / GUI / wxPython / Qt / Web...)

TJG
Jul 9 '08 #2

P: n/a
On Jul 9, 10:18*am, Tim Golden <m...@timgolden.me.ukwrote:
Keith Hughitt wrote:
I've been looking around on the web for a way to do this, but so far
have not come across anything for this particular application. I have
found some ways to enable tab completion for program-related commands,
but not for system filepaths. This would be nice to have when
prompting the user to enter a file/directory location.

What platform are you on? And what kind of display?
(Console / GUI / wxPython / Qt / Web...)

TJG
Hi TJG,

Currently Unix/Console. Although I don't have any plans at the moment
to add a GUI, it would be great if a cross-platform solution existed.

Keith
Jul 9 '08 #3

P: n/a
Keith Hughitt wrote:
On Jul 9, 10:18 am, Tim Golden <m...@timgolden.me.ukwrote:
>Keith Hughitt wrote:
>>I've been looking around on the web for a way to do this, but so far
have not come across anything for this particular application. I have
found some ways to enable tab completion for program-related commands,
but not for system filepaths. This would be nice to have when
prompting the user to enter a file/directory location.
What platform are you on? And what kind of display?
(Console / GUI / wxPython / Qt / Web...)

TJG

Hi TJG,

Currently Unix/Console. Although I don't have any plans at the moment
to add a GUI, it would be great if a cross-platform solution existed.
Ah. Not my area then, I'm afraid :( I mostly do Windows stuff.
However, I don't remember ever coming across a standard way
of doing this, although it shouldn't be too hard to roll your own.

TJG
Jul 10 '08 #4

P: n/a
Keith Hughitt <ke***********@gmail.comwrote:
>Keith Hughitt wrote:
[ ... ] I have
found some ways to enable tab completion for program-related commands,
but not for system filepaths.
Currently Unix/Console.
What's wrong with the readline module?
http://docs.python.org/lib/module-readline.html

--
\S -- si***@chiark.greenend.org.uk -- http://www.chaos.org.uk/~sion/
"Frankly I have no feelings towards penguins one way or the other"
-- Arthur C. Clarke
her nu becomež se bera eadward ofdun hlęddre heafdes bęce bump bump bump
Jul 10 '08 #5

This discussion thread is closed

Replies have been disabled for this discussion.