Renaming fragmented tracks

After editing some takes that involved cutting and moving small pieces, I find that only the piece of the track that is highlighted at the time is renamed using the Track/Rename action. How can I rename the whole file and how do I undo the renamed fragment.