I figured it out.  Turns out file sees .xoj files as gzip, thus
type/^gzip was matching before regex/\.xoj$ (which I put at the bottom
of mc.ext/bindings, above the default/* rule).

On Mon, Apr 30, 2012 at 9:01 PM, Trey Blancher <[email protected]> wrote:
> I'm using mc 4.8.1 (Debian wheezy) and 4.7.0.6 (Debian squeeze), and I
> can't seem to get the following to launch in mc:
>
> # xoj
> regex/\.xoj$
>  Open=xournal %f &
>  View=xournal %f &
>
> In squeeze, when I hit ENTER the mc window just blinks, but doesn't
> launch Xournal.  In wheezy, when I hit ENTER it opens the .xoj file in
> more, which again, isn't launching it in Xournal.  I've made sure to
> save mc.ext or bindings, exited and restarted mc, and my results don't
> change.
>
> I created another extension, and it seems to be OK:
>
> # kdb
> regex/\.kdb$
>  Open=keepassx %f &
>  View=keepassx %f &
>
> And it seems to work OK. I can use the shell within mc ("xournal %f",
> and it does the right thing), so I don't know what I'm doing wrong.
_______________________________________________
mc mailing list
http://mail.gnome.org/mailman/listinfo/mc

Reply via email to