Use ns::create_event_string
Fix unreliable tab switching keys

This was broken by 645f8d91e14cfc9b9b45aab3701378949e142e65.

The issue is that if the user press a key not in our managed menu, then the menu delegate will no longer be asked to update the menu for keys not in this (cached) menu.

Example: If there are items for ⌘1-3 in the menu and the user press ⌥⌘N a few times (to create more tabs), then the delegate is asked to update the menu on the first press, but as ⌥⌘N is not in the menu, successive events will not cause the menu to be updated. If the user then press ⌘5 (to go to the 5’th tab), nothing will happen, because our menu only holds 3 items, and the delegate is not asked to update the menu.
Don’t open documents with a path via UUID

The UUID is a unique reference to a document that trumps the path. However, as we don’t actually keep the documents in the file chooser, we end up with UUIDs from documents that does not exist, and should a new document be created for the same path, it will get another UUID.
Improve scroll when selecting units

When selecting a unit (Edit → Select submenu or e.g. Find Next) then we only scroll if we can make the entire selection visible.

Closes #692.
Files with no extension open as plain text

This is instead of asking the user.
Render table view as having focus
Change some default settings

- File browser placed on right.
- HTML output placed in new window.
- Theme set to Twilight.
Only underline matched characters

We now drawn the full string with same color and font.

Path shown in status bar is not marked up at all.
Make file chooser a floating panel

Also disable our “render as active” code for the table view when the window is not key.
Provide singleton API for FileChooser

You can still create multiple instances, but would generally not want to.
Checkin release notes
Clear file chooser filter string

Now that we re-use the window we need to manually clear the filter string (from last use).
Opening folders is added to recent menu

This behavior was lost while reworking the document window class, closes #701.
Our divider line view can now handle secondary color

This is used when the window is not main (if provided).
Added ability to set default type to use for unknown documents.