Create a new channel as a copy of main.
Rename main to:
Delete main? This cannot be undone.
can_be_unstashed = function(pane) if not pane.is_stash then return end assert(pane.filename) local filename = unstash_filename(pane.filename) return not has_local_modifications(filename) end