def open_completer(self, event):
    relpath = event.symbol
    #print event # dbg
    if '-b' in event.line:
        # return only bookmark completions
        bkms = self.db.get('bookmarks',{})
        return bkms.keys()


    if event.symbol == '-':
        print "completer"
        width_dh = str(len(str(len(ip.user_ns['_sh']) + 1)))
        print width_dh
        # jump in directory history by number
        fmt = '-%0' + width_dh +'d [%s]'
        ents = [ (i,s) % fmt for i,s in enumerate(ip.user_ns['_sh'])]
        if len(ents) > 1:
            return ents
        return []

    raise IPython.ipapi.TryNext
dataset/ETHPy150Open CountZer0/PipelineConstructionSet/python/maya/site-packages/pymel-1.0.3/pymel/tools/ipymel.py/open_completer/swapped operands of `%`