-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
🚀 Feature: Presets #233
Comments
Yeah this sounds like a good idea! I can definitely empathize with the use case. There's a lot of prior art in other tools with extended other configs, such as ESLint plugins, Prettier configuration sharing, and TypeScript TSConfig Clarifying questions we'll need to answer:
|
I don't have a point of view on this, more information is welcome.
Good question, I haven't thought about that yet.
It would be super nice to have dynamic placeholders indeed. More thoughts: How about keeping it simple at first. Let's analyse the current behaviour of the extension:
The new proposal behaviour would just do the same, except that it would load replies from different places at the same time. For example, the default preset configuration would be:
This would by default load the file from Now, my idea is to have the possibility to add or remove presets, but also to enable or disable them, as such:
With that preset configuration, the extension would load the replies only from these locations:
All the gathered replies would be added to the list of "Saved replies", with or without a prefix to find them easily (to be discussed). What do you think? |
Where is this being set/stored? |
I guess Browser extensions can have settings stored somewhere? |
Funny, I came into this discussion thinking more about allowing the
Once those questions are answered I think we can accept a PR. We should also note that this extension also supports Firefox now (#7 -> #177). So any UI proposal here should work in Chrome, Firefox, and also be able to extend to Edge (#224) and Safari (#225). |
Yes I think this could definitely augment the extension, it has a lot of potential.
The name of the preset in the UI for example.
The unique key should be the
I've never designed any extension and I don't really do Javascript, so I'm afraid I won't be of any help in here. |
Bug Report Checklist
main
branch of the repository.Overview
Do you think it's feasible to implement presets? Here's a practical scenario to illustrate the concept:
As a NixOS contributor and pull request reviewer, I use custom replies in my GitHub configuration to expedite my review process. My goal is to enhance the review quality and maintain these configurations in a central, easily accessible location without necessarily committing them to the main NixOS repository. To achieve this, I propose the idea of configurable presets.
Consider the following preset examples:
{name: "NixOS", location: "https://github.com/foobar/bar"}
{name: "Rust", location: "https://github.com/another/one"}
{name: "Foobar", location: "https://github.com/foo/bar/replies.yml"}
{name: "Local", location: "/home/foo/bar/replies.yml"}
The key feature here would be the ability to seamlessly enable or disable these presets. For instance, while reviewing NixOS, I could activate the
NixOS
preset to access all predefined replies from a specific repository configured in that preset. Similarly, when reviewing another project, I could simply deactivate the NixOS preset and enable another relevant one. This flexibility would allow for quick and efficient utilization of context-specific replies.I'm eager to hear your thoughts on this concept and its potential implementation.
Additional Info
No response
The text was updated successfully, but these errors were encountered: