Bug fixes and API improvements
fman 0.3.8 is out. It fixes several bugs that prevented fman from starting. As always, you can see a more detailed overview on the Changelog page :-)
The new version also improves fman's API:
So far, custom commands had to extend DirectoryPaneCommand
. As is
explained in more detail on
this page, a
directory pane lists the contents of a directory:
A DirectoryPaneCommand
lets you for example query which files are
currently selected. This is for instance used by the Copy command (F5) to
determine what to copy.
The slight problem was, not all custom commands actually need that much information. For example: The About command displays information about your copy of fman:
This command will never need to know which files are currently selected.
What's more, only one "copy" of the command should reside in your computer's
RAM. But DirectoryPaneCommand
s are always instantiated twice,
once for each pane.
That's why ApplicationCommand
was introduced. It's simply a more
fitting abstraction for a certain kind of command. The upcoming feature that
prompted this is a command that lets you install GitHub-hosted plugins from
within fman. Here too, the command does not need to know what files are
selected (and there should only be one "copy" of the command).
It will take a few more days to implement the new command. Stay tuned!