Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ MUSHclient
➜ Suggestions
➜ Trigger and Alias Grouping
Trigger and Alias Grouping
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Relgar
(1 post) Bio
|
Date
| Thu 17 May 2007 11:58 PM (UTC) |
Message
| Hi there. I've been using Mushclient for a good couple of months now, and am quite happy with it, but for a few things which I feel could be improved. One of the main issues is the presentation of triggers, aliases, or variables. Is it possible to sort of sort them into visual groups (for example, in the treeview configuration screen, perhaps expand the Trigger / Alias node to encompass groups)? You can find my proposal here:
[url=http://imageshack.us][img=http://img247.imageshack.us/img247/1215/treeviewet4.png][/url]
And the current view here:
[url=http://imageshack.us][img=http://img182.imageshack.us/img182/385/currentviewjf7.png][/url]
This does nothing from a functional point of view, of course, but it does relieve substantial mental burden on the user to sort throught each trigger or alias and go 'nope, that's not what I'm looking for'.
Failing this, would it be possible to make something where the user is able to view only items of a particular group quickly? I tried clicking Filter By: but I didn't quite guess I'd have to code to filter. Thanks!
| Top |
|
Posted by
| Nick Gammon
Australia (23,140 posts) Bio
Forum Administrator |
Date
| Reply #1 on Fri 18 May 2007 01:09 AM (UTC) |
Message
| The group name has its own column - you may have to scroll to the right to see it. You can click on the column header and drag the group column to the left where it is easier to see. Then click on that column to sort by group. That way everything in that group is together.
As for the filter, if you copy and paste the code below into the filter box, it will query you for a group (when you enable the filter) and only display that group:
-- ask which group, default to last one they chose
group = utils.inputbox ("Choose group",
"Group to filter by",
GetVariable ("trigger_group") or "")
-- trim spaces, make lower case
if group then
group = Trim (string.lower (group))
if group == "" then
group = nil
else
SetVariable ("trigger_group", group) -- save for next time
end -- if
end
-- called for each trigger
function filter (s)
-- if no group, return everything
if not group then
return true
end -- if
-- return true if correct group
return string.lower (GetTriggerInfo (s, 26)) == group
end -- filter
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
9,411 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top