If you need more flexibility than fvwm-menu-directory can give you, you can do the same with GNU find. All you need to do is to create a dynamic menu in your fvwm config
DestroyMenu MenuDaimi AddToMenu MenuDaimi + DynamicPopupAction PipeRead "$[FVWM_USERDIR]/menus/my_menu.sh"
and let the shell script output the menu. I use it, for example, to keep a list of shortcuts to my assignments:
cat << eos DestroyMenu recreate MenuDaimi AddToMenu MenuDaimi eos echo '+ "dADS1" Title' find $HOME/A/aflv_* -name "*.tex" -printf '+ %%24x24/mimetypes/gnome-mime-application-x-tex.png%%"%f"t Exec exec gvim -c "cd %H" %pn' ...
(Note that the find command should be written as one line.) This will list all LaTeX files in $HOME/A/aflv_*, and selecting an entry will start GVIM in the corresponding directory. Nice…
One could get creative and sort the files after date, skip files more than a week old etc. But please be careful not to forget to actually work on the assignments