def get_selected_text(self):
    """
    Return selected text from view.

    Parameters
    ----------
    self : class view

    Returns
    ----------
    str
        Selected text
    """
    sel_text = self.view.sel()
    sel_text = self.view.substr(sel_text[0])
    return sel_text