Skip to content
This repository has been archived by the owner on Apr 16, 2022. It is now read-only.

Smart chat recall #9

Open
ShoyuVanilla opened this issue Jun 15, 2020 · 1 comment
Open

Smart chat recall #9

ShoyuVanilla opened this issue Jun 15, 2020 · 1 comment
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@ShoyuVanilla
Copy link
Owner

Add an option for enable chat recalls if and only if current chat-box is empty or equals to a previous message.

@ShoyuVanilla ShoyuVanilla added this to the Version 0.2.0 milestone Jun 15, 2020
@ShoyuVanilla ShoyuVanilla added the enhancement New feature or request label Jun 15, 2020
@ShoyuVanilla ShoyuVanilla self-assigned this Jun 15, 2020
@Noggin01
Copy link

Noggin01 commented Sep 22, 2020

I'd modify the original request to allow chat recalls if the chat-box is empty OR if the cursor is at the beginning of the chat-box. Perhaps the following:

If the user presses "up" and the cursor is at the beginning of the chat box
    if the current data in the chat-box is a new message, store it in memory
    restore a previous message that begins with the message stored in memory
        for example, if the user types "/roll" then only messages starting with "/roll" will be restored
    move the cursor to the start of the chat box
    auto-select all text in the chat box
If the user presses "up" and all text is the box is selected
    restore a previous message
If the user presses "up" and the cursor is not at the beginning of the chat box but is on the top line
    move the cursor to the start of the line
If the user presses "up" and the cursor is not at the top of the chat box
    move the cursor up a line
If the user presses "down" and the cursor is at the end of the chat box
    restore the next message, or restore the stored message if we're on the final message already
    move the cursor to the end of the chat box
    auto-select all text in the chat box    
If the user presses "down" and all text is selected
    restore the next message
If the user presses "down" and the cursor is not at the end of the chat box but is on the bottom line
    move the cursor to the end of the line
If the user presses "down" and the cursor is not at the bottom of the chat box
    move the cursor down a line
If the user presses "left" and text is selected
    move the cursor to the beginning of the selected text
    deselect text
If the user presses "right" and text is selected
    move the cursor to the end of the selected text
    deselect text

I hope that's every possibility. It is sometimes amazing to see how difficult a "simple" thing can be!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants