Bruno Cassol - 2011-10-03

I always wanted to cut current line (if no text is selected) in Notepad++ because that is the default behavior in many code editors.

This is how you can do that:

1) Install NppPython plugin

2) Create this python script:

if editor.getSelectionStart() == editor.getSelectionEnd():
    editor.lineCut()
else:
    editor.cut()

3) Restart notepad++

4) Go to Menu Settings->Shortcut mapper -> Plugin commands

5) Find your script in the list and set CTRL+X shortcut for it.

If you need help feel free to contact me brunocassol@gmail.com