Add support for opening the text segment from the context menu.