Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix some issues with Inputs editor #5942
Copying the input names is a little tricky... I set it up so that in all cases it will only copy/move a name if destination input channel is nameless AND source input becomes empty after the operation. Specifically, it will (or should) not duplicate names. So if you copy/paste a line to a new channel, the name will not carry over. If you cut/paste a line and the source input channel now has no entries, the name WILL carry over (if the destination channel is nameless). Same for moving an item with move up/down or drag-move.
One noticeable side-effect is when you Cut an item, the input name will remain with the old input channel until you paste the clipboard. It actually provides a decent place marker showing where the line was cut from, so it's not too awkward. If you don't paste the cut item anywhere, then the "ghost" name will remain until that input channel is edited again.