sourceafFandocViewer::ViewFandocIndex.fan

using fwt::Event
using flux::FluxCommand

** A [flux]`fandoc://flux` tool command that loads the fandoc index page into the Frame. Nothing 
** amazing, it just saves you from typing 'fandoc://'!
** 
** To use, copy this src file to '%FAN_HOME%/etc/flux/tools/'.
** 
** Be extra lazy and map this command to the 'F1' key; edit '%FAN_HOME%/etc/flux/tools/keys.fog' 
** and add the line:
** 
**   "tools.ViewFandocIndex": "F1", 
** 
** You could make 'fandoc://' your home page but viewing the Doc Index page loads all the pods into
** memory, is quite an expensive operation and may take several seconds - so you may not want to.
** @since 1.0.4
class ViewFandocIndex : FluxCommand {
    
    new make(Str id) : super(id) {}

    override Void invoked(Event? event) {
        frame.load(`fandoc://`)
    }
    
}