Add escaping of []’s.
Factor into handler subroutines.
Handle video and attempt to get selectedText using command-c.