[Help command] Utilize copy to clipboard #6244

Merged
TrustyJAID merged 3 commits from click-copy-command-help into V3/develop 2024-12-24 03:23:26 +01:00
TrustyJAID commented 2023-09-01 00:50:48 +02:00 (Migrated from github.com)

Description of the changes

This reorganizes the display of help to allow users to more easily click the copy to clipboard on code blocks to copy the command input. Basically this just moves the "Syntax:" outside of the code block leaving most things the same. I also moved aliases outside of the base command for convenience but it's now inside its own code block.

Have the changes in this PR been tested?

Yes

### Description of the changes This reorganizes the display of help to allow users to more easily click the copy to clipboard on code blocks to copy the command input. Basically this just moves the "Syntax:" outside of the code block leaving most things the same. I also moved aliases outside of the base command for convenience but it's now inside its own code block. ### Have the changes in this PR been tested? <!-- Choose one (remove the line that doesn't apply): --> Yes <!-- If the question doesn't apply (for example, it's not a code change), choose Yes. Please respond to this question truthfully. We do not delay nor reject PRs based on the answer to this question but it allows to better review this PR. -->
TrustyJAID commented 2023-09-01 01:03:49 +02:00 (Migrated from github.com)

Here's some examples of how this looks now.
image
image
image
On desktop you can click the code block to copy the contents of the code block. Users will still need to remove parts of command arguments to work properly. But this still makes it easier to copy/paste command input.

Here's some examples of how this looks now. ![image](https://github.com/Cog-Creators/Red-DiscordBot/assets/4099256/c8d42710-80b5-4351-86d6-b0c3d65b0215) ![image](https://github.com/Cog-Creators/Red-DiscordBot/assets/4099256/59dc79f3-f41c-48c7-9a8d-eeb47c7b8bfe) ![image](https://github.com/Cog-Creators/Red-DiscordBot/assets/4099256/e0749720-c9cc-4712-b59d-2580539520e8) On desktop you can click the code block to copy the contents of the code block. Users will still need to remove parts of command arguments to work properly. But this still makes it easier to copy/paste command input.
Jackenmen commented 2024-03-18 00:02:44 +01:00 (Migrated from github.com)

I like the idea though I feel like it falls apart when most commands have some arguments you need to pass. Ctrl+Backspace doesn't work too badly but I'm not entirely convinced to be honest.

I would be interested in learning whether anyone tried using this feature for a while and if they actually ended up using the ability to copy the command or if it was just a gimmick.

Also, I would welcome more feedback on whether this way of showing command syntax and aliases is perhaps considered by the users to look better on its own. If so, then the copy-paste benefit is just a bonus and the question of the usefulness of this feature isn't too important since we can just make the UI look better and be more functional at the same time.


Btw, if we wanted to optimize for mobile more, we could put the command name with the prefix without anything else in one of the embed areas (author name, description, field name/value, footer) since you can tap and hold to copy any part of the embed on mobile 😄 I don't think there's necessarily a suitable place for this anywhere in the embed for it to not look off but I am pretty sure this would be a bigger usability win than the ability to copy the command on desktop.

I like the idea though I feel like it falls apart when most commands have some arguments you need to pass. `Ctrl+Backspace` doesn't work too badly but I'm not entirely convinced to be honest. I would be interested in learning whether anyone tried using this feature for a while and if they actually ended up using the ability to copy the command or if it was just a gimmick. Also, I would welcome more feedback on whether this way of showing command syntax and aliases is perhaps considered by the users to look better on its own. If so, then the copy-paste benefit is just a bonus and the question of the usefulness of this feature isn't too important since we can just make the UI look better and be more functional at the same time. --- Btw, if we wanted to optimize for mobile more, we could put the command name with the prefix without anything else in one of the embed areas (author name, description, field name/value, footer) since you can tap and hold to copy any part of the embed on mobile :smile: I don't think there's necessarily a suitable place for this anywhere in the embed for it to not look off but I am pretty sure this would be a bigger usability win than the ability to copy the command on desktop.
BenCos17 commented 2024-03-19 08:36:44 +01:00 (Migrated from github.com)

I would be interested in learning whether anyone tried using this feature for a while and if they actually ended up using the ability to copy the command or

I use it quite a bit on my bot
It's pretty handy on longer commands tbh

> I would be interested in learning whether anyone tried using this feature for a while and if they actually ended up using the ability to copy the command or I use it quite a bit on my bot It's pretty handy on longer commands tbh
Kreusada (Migrated from github.com) reviewed 2024-05-03 18:20:00 +02:00
Kreusada (Migrated from github.com) left a comment

I have tested these changes and they work great. I'd be interested to hear about your stance on Jack's suggestions before approving and merging this PR.

I have tested these changes and they work great. I'd be interested to hear about your stance on [Jack's suggestions](https://github.com/Cog-Creators/Red-DiscordBot/pull/6244#issuecomment-2002648617) before approving and merging this PR.
Jackenmen (Migrated from github.com) approved these changes 2024-12-24 03:23:10 +01:00
Jackenmen (Migrated from github.com) left a comment

![](https://i.fluffy.cc/g6TR0RVJMJ4f5nWrDR39tNrddc3gNSdm.gif)
Sign in to join this conversation.
No reviewers
No labels
Automated PR
Blocked
Blocked By: Damage Control
Blocked By: Dependency
Blocked By: Other PR
Breaking Change
Category: CI
Category: Cogs - Admin
Category: Cogs - Alias
Category: Cogs - Audio
Category: Cogs - Bank
Category: Cogs - Cleanup
Category: Cogs - CustomCommands
Category: Cogs - Dev
Category: Cogs - Downloader
Category: Cogs - Economy
Category: Cogs - Filter
Category: Cogs - General
Category: Cogs - Image
Category: Cogs - Mod
Category: Cogs - Modlog
Category: Cogs - Mutes
Category: Cogs - Permissions
Category: Cogs - Reports
Category: Cogs - Streams
Category: Cogs - Trivia
Category: Cogs - Trivia - Lists
Category: Cogs - Warnings
Category: Core - API - App Commands Package
Category: Core - API - Audio
Category: Core - API - Bank
Category: Core - API - Commands Package
Category: Core - API - Config
Category: Core - API - Other
Category: Core - API - Utils Package
Category: Core - Bot Class
Category: Core - Bot Commands
Category: Core - Command-line Interfaces
Category: Core - Downloader
Category: Core - Help
Category: Core - i18n
Category: Core - Modlog
Category: Core - Other Internals
Category: Core - RPC/ZMQ
Category: Docker
Category: Docs - Changelogs
Category: Docs - For Developers
Category: Docs - Install Guides
Category: Docs - Other
Category: Docs - User Guides
Category: Meta
Category: RPC/ZMQ methods
Category: Vendored Packages
Changelog Entry: Added
Changelog Entry: Pending
Changelog Entry: Skipped
Closed: Duplicate
Closed: External
Closed: Invalid
Closed: User Error
Closed: Won't Fix
Complex Issue
Docs-only
Feature Branch
Good First Issue
Help Wanted
High Priority
Needs Backport To stable-docs
No Activity
No Repro
QA: Bypassed
QA: Changes Requested
QA: Passed
Release Blocker
Status: Accepted
Status: Frozen
Status: In Progress
Status: Needs Discussion
Status: Needs Info
Status: Needs Triage
Status: PRs Welcome
Type: Bug
Type: Dependency Update
Type: Deprecation
Type: Enhancement
Type: Feature
Type: Informational
Type: Merge
Type: Optimisation
Type: Question
Type: Removal
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Mrcoolgamer11/Red-DiscordBot!6244
No description provided.