Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 27, 2008, 6:29:08 PM (16 years ago)
Author:
landauf
Message:

you'll love this: separated displayed strings in autocompletion from actually inserted strings, to make fancy things like a really good autocompletion for files and directories.

@bensch: this is the "better system" I was talking about

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/console/src/core/CommandEvaluation.cc

    r1435 r1441  
    271271    }
    272272
    273     std::string CommandEvaluation::dump(const std::list<std::pair<std::string, std::string> >& list)
     273    std::string CommandEvaluation::dump(const ArgumentCompletionList& list)
    274274    {
    275275        std::string output = "";
    276         for (std::list<std::pair<std::string, std::string> >::const_iterator it = list.begin(); it != list.end(); ++it)
     276        for (ArgumentCompletionList::const_iterator it = list.begin(); it != list.end(); ++it)
    277277        {
    278278            if (it != list.begin())
    279279                output += " ";
    280280
    281             output += (*it).second;
     281            output += (*it).getDisplay();
    282282        }
    283283        return output;
Note: See TracChangeset for help on using the changeset viewer.