Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD Beta Forum
Seb
Wizard


Joined: 14 Aug 2004
Posts: 1269

PostPosted: Sat Oct 13, 2007 6:19 pm   

[2.06] No way to convert a zScript trigger pattern to a regex pattern
 
Not really a bug report, but a missing feature compared to zMUD. From time to time, it is useful to convert your zScript trigger pattern to a Perl regular expression, like when you realise that your existing pattern isn't going to work because you have a wildcard in braces {}. Or when you want to make some other tweaks that you can't do in zScript. So the convert button was really useful. It wouldn't be so much of an issue if it was possible to select the perl regex from the Test Pattern tab and copy it to the clipboard, but a button would still be more user-friendly. (Actually being able to do both would be good, since sometimes one wants to post the regex pattern to the forum or something (like when reporting a bug) but not convert one's existing zScript pattern.)

I think the Script language drop-down might be moved, since it is currently visible on all (trigger) tabs, when really it applies only to the Script Text tab. This would leave space for regex checkbox and a convert button. I know the Script language drop-down applies not just to triggers, but it still only applies to the Script Text tab on all settings.
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Sat Oct 13, 2007 6:22 pm   
 
It's also useful because I can never remember the octal code for ESC when I'm writing regex ANSI colour triggers. Definitely should see a comeback, even if it's just letting the Regex Equivalent be copied to the clipboard.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Sat Oct 13, 2007 6:30 pm   
 
Yep, I've wanted this myself too, so it's definitely on the list.

I can't move the script language though. I know that it only applies to the Script Text tab, but it's in the same common panel as the Name field, so it doesn't actually get switched by the tabs...only the panel below the name gets changed.
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5187

PostPosted: Sat Oct 13, 2007 6:44 pm   
 
Perhaps putting something on the Test Pattern tab. It shows the created regex there and has plenty of space.
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
Seb
Wizard


Joined: 14 Aug 2004
Posts: 1269

PostPosted: Sat Oct 13, 2007 9:53 pm   
 
Zugg wrote:
I can't move the script language though. I know that it only applies to the Script Text tab, but it's in the same common panel as the Name field, so it doesn't actually get switched by the tabs...only the panel below the name gets changed.

I realise that it's in the same common panel as the Name field, but my point was that it shouldn't be, since I think it's a bit confusing for Script Language to still be showing when you are on, e.g. the Trigger Testing tab. As a result, I looked in there for Perl regular expression recently but finally discovered it quite well hidden on Script Text tab. Given that the trigger pattern is visible on all tabs it makes more sense for the Perl regular expression checkbox to be visible on all tabs too. But, graphically, the current common panel maybe works a bit better for non-triggers, so whatever you come up with will be good, I'm sure.
Reply with quote
Seb
Wizard


Joined: 14 Aug 2004
Posts: 1269

PostPosted: Sun Oct 14, 2007 10:43 pm   
 
Hmm, I didn't realise that the bottom collapsible panel was also common to all tabs. (It wasn't showing originally and once I'd enabled it, I just got used to it and it faded from my consciousness.) So I take back some of what I said.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD Beta Forum All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net