[mc] Notifying about errors from user menu items?
Guy Stalnaker
jimmyg521 at gmail.com
Mon Aug 26 20:19:44 UTC 2024
What I like about using a temp file is that it stays and I can look at it
independently of MC. I count that as a win and I'm modifying my User Menu
to include your excellent notification scheme as I modified it for all the
commands I usually use.
Guy
--
“Happiness is the meaning and the purpose of life, the whole aim and end of
human existence.”
― Aristotle
On Mon, Aug 26, 2024 at 12:30 AM skejg <grolleman at zoho.com> wrote:
> On Sat Aug 24, 2024 at 17:23 -0500, Guy Stalnaker <jimmyg521 at gmail.com>
> wrote:
>
> > Hello - I was intrigued by your post to the list, so I did some
> > experimenting about ways to get output from a command into a notification
> > dialog such as you show.
>
> Thanks for the email, Guy!
>
> I was also thinking about it and came to the same conclusions as you: it's
> possible with the help of an intermediate file. I just decided that for
> me personally it's not exactly worth the pain: in a case of an error
> I will <C-o> anyway, so I'll see the message there :)
>
> But, yeah, it was quite fun to play with streams, so thanks again for
> your letter, it certainly may be interesting for others.
>
> > I don't know if there is a Midnight-Commander way to pass command error
> > output into MC
>
> Probably, not. But it would be nice to have something like `mcdialog`,
> similar to `mcview` or `mcedit`, so that we could run it like:
>
> mcdialog --alert 'ERROR' 'Patch does not apply'
>
> ...to get notified "the MC way" and to avoid all that flickering :)
>
>
>
>
>
> --
> skejg
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.midnight-commander.org/pipermail/mc/attachments/20240826/e5b89c30/attachment.html>
More information about the mc
mailing list