As you probably noticed with all the other methods: their first argument is `path` and they look up their session with `getSession`. The reason for this is that a command may be run for a session that is not currently active (e.g. in the other split, or even not visible at all), in which case line 70 below would do something quite unexpected (give you the wrong session and cursor position and insert text into the wrong file).