[Hugs] #61: [Patch] Readline command completion for everything
#61: [Patch] Readline command completion for everything -------------------------+-------------------------------------------------- Reporter: gsauthof | Owner: nobody Type: enhancement | Status: new Priority: major | Milestone: Component: hugs | Version: 200609 Keywords: | -------------------------+-------------------------------------------------- Hi, I wrote a patch that improves the readline command completion feature of hugs. I.e: - added completion of function names and constructors - added completion of command names (:<cmd>) - added completion of module names (e.g. after :browse , etc.) - only do filename completion where it makes sense (e.g. after :load , etc.) - expand use of tilde (~) in filenames (previously it was completed but not recognized by hugs) - read and write the history from/to ~/.hugs_history - make hugs recognize :help Patch is attached. Best regards Georg Sauthoff -- Ticket URL: <http://hackage.haskell.org/trac/hugs/ticket/61> Hugs <http://www.haskell.org/hugs/> Hugs 98, an interpreter for Haskell
#61: [Patch] Readline command completion for everything --------------------------+------------------------------------------------- Reporter: gsauthof | Owner: nobody Type: enhancement | Status: new Priority: major | Milestone: Component: hugs | Version: 200609 Resolution: | Keywords: --------------------------+------------------------------------------------- Comment (by gsauthof): Hm, trac eats my newlines? The WikiFormatting link (http://hackage.haskell.org/trac/hugs/wiki/WikiFormatting) contains spam and the suggested formatting does not work in the Comment Preview (e.g. '* ')... Strange. -- Ticket URL: <http://hackage.haskell.org/trac/hugs/ticket/61> Hugs <http://www.haskell.org/hugs/> Hugs 98, an interpreter for Haskell
#61: [Patch] Readline command completion for everything --------------------------+------------------------------------------------- Reporter: gsauthof | Owner: nobody Type: enhancement | Status: closed Priority: major | Milestone: Component: hugs | Version: 200609 Resolution: fixed | Keywords: --------------------------+------------------------------------------------- Changes (by ross): * resolution: => fixed * status: new => closed Comment: Thanks. I've committed it to our shiny new darcs repository, though it does have some limitations: * the names include things that aren't in scope (:names has the same problem) * the names don't include qualified names * the words completed are space-delimited, rather than being Haskell ids * completion for :load works for filenames only, not modules Still, it's a start, and better than nothing. -- Ticket URL: <http://hackage.haskell.org/trac/hugs/ticket/61> Hugs <http://www.haskell.org/hugs/> Hugs 98, an interpreter for Haskell
participants (1)
-
Hugs