-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[repo] V2.53 - Add wrayth links to repo output #1282
base: master
Are you sure you want to change the base?
[repo] V2.53 - Add wrayth links to repo output #1282
Conversation
Tested commands that call format_list and are affected by this change:
Other things of note:
|
Moved the "duplicate file" help text to a proc and called anywhere it is required. Moving out of draft now as think this is about there. Final maybe todo to check on is adding links to show-updatable for completeness. |
Looking like a no on the show-updatable for this release. If you add the XML before creating the table it will set the column widths all wrong. There is currently no way to set the width of a single column, all columns have to be same size. There is a issue raised to fix this, maybe return once that is done. |
Yep, you have to add the XML code AFTER the fact, otherwise the table spacing adjusts for the extra xml even though it's not shown on the client. You can see what I did here for table = table.to_s
if table =~ /\n\|([\w\d\s\|\$\/\(\)\.]+)\|\n/
header = $1
headerbold = Lich::Messaging.monsterbold(header)
table = table.gsub(header, headerbold)
end
_respond "<output class=\"mono\"/>\n" + table + "\n<output class=\"\"/>"
end Could probably use this regex match:
To then gsub in the appropriate clicky needed |
Ok all commands I could think of tested and the last push fixes things for when using the --hide-author flag. If there is no author but there is a name clash you will get the game field, this gets added to the link. If there is no author and no name clash then we have nothing but the name left, this will still get turned into a link. I think in this final case there is likely a chance of a clash but as the clicky links do not have the --hide-author flag the problem will correct itself with worse case scenario of one extra click. This point I think I am done with anything I can think of, so just any final comments/suggestions. |
Fixed issue with using rjust due to new <d cmd> stuff in links causing it to get confused and not allowing it to justify filennames properly.
Created a output_mono_msg proc to send mono txt
missed one update for a mono call.
This should be good now for full testing. Updated output listings to be in mono format. |
add `--search` option to help output
Tried running once again to see if usable and ran into some Ruby errors that need to be resolved first. |
Initial draft to show a possible implementation. Before this change a ;repo download action pauses for 3 seconds before continuing, due to ease of accidentally clicking a link logic is added to prompt for user confirmation via ;send and if not given in time the script will exit without downloading.
This is achieved by adding a '--clicked' link to all links the script generates, this means any manual ;repo download commands will still exhibit old behaviour. This means new feature (links) new behaviour (;send confirmation instead of auto download after timeout). This behavior could become the default for all "dangerous" actions.
In this current from the new behavior is only implemented into download action but will be added to delete and (probably) rate as that will cover the three "dangerous" actions that could be done via the links.
First download command example of no duplicate names, second download is with duplicates (bonus text appears to explain how to download).
First appearance of ">alias.lic" is a link click, this one no response is given and times out
Second appearance of ">alias.lic" is a link click, followed by a confirmation (and download completing)