# Path: conf.py
# CONF_FILE = os.path.join(urk.userpath,'urk.conf')
# def pprint(obj, depth=-2):
# def save(*args):


import windows
import chaninfo
import events
from conf import conf
        elif input.text.startswith('/edit '):
            candidates = script_completer(window, left, right, text)
            
        elif input.text.startswith('/server '):
            candidates = network_completer(window, left, right, text)
            
        elif text.startswith('/'):
            candidates = command_completer(window, left, right, text)
            suffix = ' '
            
        else:
            candidates = nick_completer(window, left, right, text)
            
            if left == text:
                suffix = ': '
            else:
                suffix = ' '
                
        if text:
            before = left[:-len(text)]
        else:
            before = left
            
        insert_text = '%s%s%s%s' % (before, '%s', suffix, right)
        cursor_pos = len(before + suffix)

        original = window.input.text, window.input.cursor

        for cand in candidates:
            if cand.lower().startswith(text.lower()):

# Path: conf.py
# CONF_FILE = os.path.join(urk.userpath,'urk.conf')
# def pprint(obj, depth=-2):
# def save(*args):


# Path: scripts/completion.py
import windows
import chaninfo
import events
from conf import conf

        elif input.text.startswith('/edit '):
            candidates = script_completer(window, left, right, text)
            
        elif input.text.startswith('/server '):
            candidates = network_completer(window, left, right, text)
            
        elif text.startswith('/'):
            candidates = command_completer(window, left, right, text)
            suffix = ' '
            
        else:
            candidates = nick_completer(window, left, right, text)
            
            if left == text:
                suffix = ': '
            else:
                suffix = ' '
                
        if text:
            before = left[:-len(text)]
        else:
            before = left
            
        insert_text = '%s%s%s%s' % (before, '%s', suffix, right)
        cursor_pos = len(before + suffix)

        original = window.input.text, window.input.cursor

        for cand in candidates:
            if cand.lower().startswith(text.lower()):

                window.input.text, window.input.cursor = insert_text % cand, cursor_pos + len(cand)