|
jed Adept
Joined: 18 Dec 2005 Posts: 246
|
Posted: Sat Apr 04, 2009 9:29 pm
Notifications from file commands-feature request |
When I use a command such as #file, to write to a file, cmud currently has a feedback to say "Opened file ...." or similar. I've been gagging these outputs but, they are sometimes cumbersome to work with. Would it be possible to add another parameter to each command with a flag whether to display a notification or not? I guess what I'm saying is right now the syntax for #file is:
Code: |
#file filenum filename |
any chance another parameter could be entered (maybe Y or N, or 0 and 1 or something similar) indicating to or not to display the notification such as
Code: |
#file displayflag filenum filename |
?? Last I checked this functionality didn't exist. Thanks for looking!!! |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4691 Location: Pensacola, FL, USA
|
Posted: Sat Apr 04, 2009 9:45 pm |
its a very simply thing to make a #GAG trigger for.
|
|
_________________ Discord: Shalimarwildcat |
|
|
|
jed Adept
Joined: 18 Dec 2005 Posts: 246
|
Posted: Sun Apr 05, 2009 2:09 am |
As I mentioned before, I currently have them set up with gag triggers. The problem is that I do a bunch of logging and writing to external files. I would simply rather not have them displayed then have to gag them as it would vastly reduce the amount of gagging I have to do, particularly when I'm trying to figure out why things are running slow. Also, as I propose they could be event specific i.e. each time I use the #write command I could choose whether it is displayed or not rather than gagging the output of the #write command all the time.
|
|
|
|
Tech GURU
Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
Posted: Sun Apr 05, 2009 4:58 pm |
You can already do this. Go to Options -> Scripting. On the General Scripting tab uncheck Show Information Messages.
|
|
_________________ Asati di tempari! |
|
|
|
jed Adept
Joined: 18 Dec 2005 Posts: 246
|
Posted: Sun Apr 05, 2009 7:01 pm |
I'm talking about the ability to show/suppress these informational messages for individual commands. For instance I may use #write in one spot where i want to see the message, but in another spot I may use the #file command where I don't want to see the message.
|
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Mon Apr 06, 2009 6:57 pm |
No, sorry, I have no plans to do that. You can also write an alias that temporarily changes the %pref("EchoMessage") value. Something like this:
Code: |
#ALIAS QuietCommand($command) {
$prevEcho = %pref("EchoMessage", 0)
#EXEC $command
#CALL %pref("EchoMessage", $prevEcho)
} |
|
|
|
|
|
|