Fixes edit

This change fixes up the edit semantics of the command line.  It now allows edit of searches, better selection support and can be initiated by clicking on the edit area now.