Incremental lowercase

2011-06-02
2013-01-25
  • Dragos Toader
    Dragos Toader
    2011-06-02

    # I'm used to Textpad style incremental lowercase
    # Ctrl+L changes to lower case of the next char if nothing is selected
    from Npp import *
    import string
    # console.write(editor.getSelText())
    if editor.getSelText() == '':
        # console.write(str(position))
        editor.setSel(editor.getCurrentPos(),editor.getCurrentPos()+1)
    editor.lowerCase()
    editor.setSel(editor.getCurrentPos(),editor.getCurrentPos())