-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Add (truncated) preview to snippets command #3342
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
Conversation
lorenzo132
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works as intented, can be merged in my opinnion.
StephenDaDev
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this adds functionality that is useful to our member base. LGTM.
StephenDaDev
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also tested as working on 4.1.2
Taaku18
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed by stephen and lorenzo.
* Add (truncated) preview to snippets command (#3342) * Add (truncated) preview to snippets command * Add old view as option with "compact" * Fix black formatting * Fix: Image url regex in thread send method (#3378) * feat minimum character requirement for thread creation. (#3380) * update: dpy, snoozing. This pull request updated discord.py to 2.5.2. This also brings a new few features. - snooze - snoozed - unsnooze - clearsnoozed Aswell as a few new config options. - max_snooze_time - snooze_title - snooze_text - unsnooze_tex - unsnooze_notify_channel Signed-off-by: lorenzo132 <[email protected]> * remove: unneeded import Signed-off-by: lorenzo132 <[email protected]> * Formatting black Signed-off-by: lorenzo132 <[email protected]> * fix?: internal messages on restoration Signed-off-by: lorenzo132 <[email protected]> * formatting Signed-off-by: lorenzo132 <[email protected]> * fix: internal messages. Signed-off-by: lorenzo132 <[email protected]> * fix: internals Signed-off-by: lorenzo132 <[email protected]> * Update thread.py Signed-off-by: lorenzo132 <[email protected]> * fix: use same logkey after restoration Signed-off-by: lorenzo132 <[email protected]> * Add files via upload Signed-off-by: lorenzo132 <[email protected]> * Update thread.py Signed-off-by: lorenzo132 <[email protected]> * Update thread.py Signed-off-by: lorenzo132 <[email protected]> * Update thread.py Signed-off-by: lorenzo132 <[email protected]> * fix: show who send which internal message. * Black formatting. * Update Pipfile Signed-off-by: lorenzo132 <[email protected]> * Update Pipfile.lock Signed-off-by: lorenzo132 <[email protected]> * fix: unsnooze bug * feat: CV2 * update: black * fix: duplicates in logs, notes. * feat: dpy 2.6.3, forwarded messages, bug fixes. * Fix jump_url not being displayed * Update pipfile for new dpy version * fix: bug in note title/color * Update snooze arg * Update Pipfile to include tomli package Signed-off-by: lorenzo132 <[email protected]> * auto detect dpy version Signed-off-by: lorenzo132 <[email protected]> * Remove crlf terminators * fix: ignore typing failures (#3389) * fix: ignore typing failures Make Modmail keep working when typing is disabled/outage * fix: only surpress failures * chore: sync local edits before push * Lock pipenv * Fix: closing with timed words/ command in reply. (#3391) * fix: ignore typing failures Make Modmail keep working when typing is disabled/outage * fix: only surpress failures * chore: sync local edits before push * Fix: closing with timed words/ command in reply. * Fix: typing in changelog command. * Fix: closing with timed words (additional)) * Fix changelog entry for command reply issue Corrected wording in the changelog entry regarding command inclusion in replies. Signed-off-by: lorenzo132 <[email protected]> * Update CHANGELOG for v4.2.0 enhancements Forwarded messages now display correctly in threads. Signed-off-by: lorenzo132 <[email protected]> --------- Signed-off-by: lorenzo132 <[email protected]> * Remove disutil, undo lowercasing escape seq * Add back uvloop * Add config help for snooze configs Signed-off-by: Taku <[email protected]> * Update sponsors and bmac links --------- Signed-off-by: lorenzo132 <[email protected]> Signed-off-by: Taku <[email protected]> Co-authored-by: Sebastian <[email protected]> Co-authored-by: Zallom <[email protected]> Co-authored-by: lorenzo132 <[email protected]> Co-authored-by: “lorenzo132” <[email protected]> Co-authored-by: Martin <[email protected]>
This update changes the ?snippet command.
When the snippet command is invoked with no snippet name, but snippets do exist, it will not only show a list of all snippets, but also show a (possibly truncated to a length of 350 characters) preview.
Also changed the amount of snippets per page from 15 to 10 per page to accommodate the more space taken up.