Allow tab completion when inputing filepath?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Keith Hughitt

    Allow tab completion when inputing filepath?

    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
  • Tim Golden

    #2
    Re: Allow tab completion when inputing filepath?

    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

    Comment

    • Keith Hughitt

      #3
      Re: Allow tab completion when inputing filepath?

      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

      Comment

      • Tim Golden

        #4
        Re: Allow tab completion when inputing filepath?

        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

        Comment

        • Sion Arrowsmith

          #5
          Re: Allow tab completion when inputing filepath?

          Keith Hughitt <keith.hughitt@ 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?
          The readline module defines a number of functions to facilitate completion and reading/writing of history files from the Python interpreter. This module can be used directly, or via the rlcompleter...


          --
          \S -- siona@chiark.gr eenend.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

          Comment

          Working...