Please disregard my previous email and the attached patch. The patch
was not ready for review yet; I was still deciding and adjusting what
should be included in the cwmrc(5) manual page.

On Fri, Oct 16, 2026 at 3:48 PM <[email protected]> wrote:
>
> --- /tmp/opencode/cwm-7.9-original/cwm-7.9/cwmrc.5      2026-05-19 
> 11:19:08.000000000 -0300
> +++ /tmp/cwm-7.9/cwmrc.5        2026-10-16 15:48:16.601341953 -0300
> @@ -154,6 +154,17 @@
>  is executed with
>  .Xr execvp 3 .
>  .Pp
> +The application menu is opened with the
> +.Ic menu-cmd
> +bind function and can be filtered by typing part of an entry name.
> +Only entries defined with
> +.Ic command
> +are shown in this menu, except for the special
> +.Nm term
> +and
> +.Nm lock
> +entries.
> +.Pp
>  The
>  .Ar name
>  entries
> @@ -254,13 +265,23 @@
>  .It menu-window-hidden
>  Launch hidden window search menu.
>  .It menu-cmd
> -Launch application search menu.
> +Launch the application search menu.
> +The menu contains entries defined with
> +.Ic command
> +and filters them as input is typed.
>  .It menu-group
>  Launch group search menu.
>  .It menu-exec
>  Launch
>  .Dq exec program
>  menu.
> +The menu initially lists executable regular files and symbolic links found
> +in the directories in
> +.Ev PATH .
> +Typing filters this list; if there is no matching entry, the input may still
> +be used as a program and its arguments.
> +The selected input is executed using
> +.Xr execvp 3 .
>  .It menu-exec-wm
>  Launch
>  .Dq exec WindowManager
> @@ -467,11 +488,15 @@
>  # Turn on sticky-group mode
>  sticky yes
>
> -# Any entry here is shown in the application menu
> +# Entries declared with `command' are shown by menu-cmd
>  command firefox                firefox
>  command xmms           xmms
>  command top            "xterm -e top"
>
> +# menu-exec searches PATH and can also run a program entered directly
> +bind-key 4-space       menu-cmd
> +bind-key 4-p           menu-exec
> +
>  # Autogroup definitions
>  autogroup 3 "aterm,XTerm"
>  autogroup 3 "xterm,XTerm"

Reply via email to