Here is a tool that adds the ability to long press the built in history up button in the console, to bring up a table of the current history buffer. Selecting a row copies it to the command line. this also lets you save the history session to a json file, which allows it to be loaded again later. For stupid reasons that I will eventually fix, when loading from the history file, you will have to close and then reopen the history for the loaded values to show up. At the moment, it also needs to be in site-packages to work, or in pythonista_startup. It should be safe to enable there, and then the gesture is always available.
Others may find this interesting for :
1) example of a themable ListDialogController -- notice tableview cell background match theme.
2) Example of custom view in the title bar, in this case a search textfield.
3) repurposing an existing App button for our own nefarious purposes.

https://github.com/jsbain/objc_hacks.git. history_popup.py