isn't this same as 

```js
editor.navigateLineEnd()
editor.insert("\n")
```
?