Re: Notifying about errors from user menu items?
Guy Stalnaker via mc <[email protected]> Mon, 26 Aug 2024 15:19:44 -0500
| Newsgroups | gmane.comp.gnome.apps.mc.general |
|---|---|
| Message-ID | <CAGHXqCbcu0ODzCpV4rKxSN+LbjQegsGR3aw33V0o_5cK0on-ww@mail.gmail.com> |
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 <[email protected]> wrote: > On Sat Aug 24, 2024 at 17:23 -0500, Guy Stalnaker <[email protected]> > 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 > > -- mc mailing list [email protected] https://lists.midnight-commander.org/mailman/listinfo/mc