Skip to content
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

The ability to specify URLs for the Revision Box. #5

Open
awulkan opened this issue Jun 17, 2022 · 5 comments
Open

The ability to specify URLs for the Revision Box. #5

awulkan opened this issue Jun 17, 2022 · 5 comments
Labels
approved Approved for implementation feature-request New feature or request

Comments

@awulkan
Copy link

awulkan commented Jun 17, 2022

Context

Right now you can specify applications where the revision box should be used. However I find that I often need to use it on specific web sites as well. However I don't want to use the the revision box on all websites, so I don't want to simply specify my browser in the revision box settings.

Goals

The ability to specify URLs in the revision box settings file.
Preferably with wildcards/regex to allow for only specifying specific parts of a website.

Proposed Solution

I do not know how to solve this, but I might attempt to figure it out.
At the very least I am available to exchange ideas with if necessary. :)

Alternatives

I don't know of any valid alternatives other than making Serenade work properly on all pages without the use of the revision box.

@awulkan awulkan added feature-request New feature or request needs-triage Awaiting triage from a core team member labels Jun 17, 2022
@MattWiethoff
Copy link
Contributor

Thanks for the report!

Does the beta version of the chrome extension work for you? We removed support for content editables and trigger the revision box instead, which might capture the URLs you want to disable.

We haven't published it to the chrome store yet, but it's available here: https://github.com/serenadeai/chrome and requires Serenade 2.0.1.

@awulkan
Copy link
Author

awulkan commented Jun 18, 2022

I am using the latest source-compiled version of the chrome extension, and version 2.0.1 of Serenade.
It doesn't trigger the revision box in any of the places that I'm having problems, such as this GitHub comment section (which is a textarea element). Serenade can't use commands like "change to " or "undo".

@MattWiethoff
Copy link
Contributor

Thanks for checking. I'm unable to repro this on my end (those command work for me in the github text area).

Sounds like this call might not be returning the editor state for you, so it'd be great if we could confirm and then narrow things down further. Happy to debug this live over discord as well, I'm MattWiethoff there too..

@awulkan
Copy link
Author

awulkan commented Jun 21, 2022

For some reason it works for me as well now on GitHub. I have tried it on multiple occasions without it working, so it must have been some temporary problem. Anyway, the "change" command still doesn't work on Discord's (website) comment box, for example. And I don't get any revision box automatically there either.
I'll contact you on Discord. :)

@MattWiethoff
Copy link
Contributor

MattWiethoff commented Jun 21, 2022

After trying it out on discord, I think your proposal does make sense when we don't have a regular input / code editor available in the browser. How about the following for the proposed solution:

I'm not sure what the format of the url wildcards should look like. Maybe there's a standard way of doing that we should be using. Ideally the format would make it easily distinguishable from an app name, since it would mean we wouldn't have to change the json structure of the settings file (we can just use a url in the places we currently use an app name).

@MattWiethoff MattWiethoff added approved Approved for implementation and removed needs-triage Awaiting triage from a core team member labels Jun 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Approved for implementation feature-request New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants