Re: FVWM: menu browsers

From: Dominik Vogt <dominik.vogt_at_gmx.de>
Date: Tue, 23 Nov 1999 16:27:36 +0100

On Mon, Nov 22, 1999 at 11:54:01PM +0000, Mario Saraceni wrote:
> hi
>
> can anyone save me the trouble of understanding the man page of
> fvwm-menu-directory and tell me if there is a way of implementing a simple
> file browser with an associated application to open the files? what i'm
> thinking of is somthing like what's done in WindowMaker, where a submenu can
> just browse a directory and open its files with a particular
> application. can this be done in the same way in fvwm-2.3.9? can different
> applications be specified in different menu entries? can anyone send
> examples, please? thanx!

I have this in my config file:

  AddToFunc MakeMissingDirectoryMenu
  + i piperead 'fvwm_make_directory_menu.sh '$0

  AddToMenu workmenu
  + MissingSubmenuFunction MakeMissingDirectoryMenu
  ...
  + "root directory" popup / MENUPOS
  + home popup /home/luthien MENUPOS

With this I have two directory menus, one starting at / and one
starting at ~. The shell script fvwm_make_directory_menu.sh is
the predecessor of the perl scripts. Within you will find a line
'ACTION=vi'. Replace 'vi' by any program you would like to run.
It's easy to modify the shell script to take the command as another
argument. A similar script remembers the directory you last
opened. To use it, put this in your config file:

  AddToMenu workmenu
  + BrowseMenu popup BrowseMenu MENUPOS

  AddToMenu BrowseMenu
  + DynamicPopupAction Piperead 'fvwm_make_browse_menu.sh BrowseMenu'

The script looks similar. Again replace 'vi' with any command you
like.

Bye

Dominik ^_^

--
Dominik Vogt, dominik.vogt_at_gmx.de
Reply-To: dominik.vogt_at_gmx.de
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Tue Nov 23 1999 - 15:52:45 GMT

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:38:02 BST