fix #298: Insert with cursor: Indentation is wrong
fix #300: Implement 'Link Mode' (Script.Link)