-
Notifications
You must be signed in to change notification settings - Fork 0
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 Request/Proposal] Adding support for custom, static "shortcuts" area. #2
Comments
Thanks a lot. I'm glad to hear others are finding it useful.
It's got like 10 users if we include my mom, and maybe 10% of the users have custom CSS. I think they'll handle some back-compat breaks. If need be, better do it now than once it has 5 million users :^)
Sounds good to me. maybe not the most user-friendly but it's straightforward. I'll think of some way to explain it on the page.
Will parsing require an external library? I'd like to keep the code relatively simple. (although right now options.js looks a bit like yandev spaghetti)
Maybe it would be better around line 39, right after we check if the tips are enabled by the user:
Please go ahead, I'll handle the new strings and translations. |
Be advised, I pushed some changes, |
Thank you! I'm sorry for the very late response. Apparently my Github emails were turned off, whoops.
That way people can (optionally) line the shortcuts up so it's easier to format them and edit.
I can understand options.js better than some of my old code! It definitely won't require another library. It should actually be easily doable with regexes for each line (only tested with an online regex tester, haven't coded it yet):
Quick question before I start - should there be some upper bound on the number of shortcut "sets" users are allowed to make? It should probably have a maximum number of cells so it doesn't get too cramped. This is my idea for the replacement:
Thanks, and sorry for the delay! |
It's no problem really, you're offering help, neither of us have real obligations to it, and the project has no deadline to honor. So basically the tips would look like this: Search Bar (with more space between the elements) I think it's good this way. In fact that's what the shortcuts used to look like some versions ago because it's how most games present their button prompts.
Let's see how 5 looks like, but it will also depend on resolution/window size. I'd be in favor of letting people manage the sections how they please, if they really want to entirely fill their screen with shortcuts. Also, I'm wondering if we should let them modify even the default tips. Maybe it's something they would appreciate, but there would probably be cases were someone deletes stuff they didn't mean to. If we do let them, I'll add a button to do a factory-reset of the options. |
First off, I love the extension, thanks for making it! Really helpful.
I want to make a suggestion - the place on the bottom that displays search tips is really great, and I'd love to use that area to add/change info I frequently need and want to remember. For instance, I have an extension that gives me a sidebar I use to manage my todo lists. There's a shortcut for it, but I don't often remember the shortcut and have to open it manually. It'd be great if there was an option to change the data on the bottom to a custom value. Maybe it'd be possible to set a custom number of columns too, to display a bit more data.
I'd love to do this myself, but I want to do it with the least risk of breaking custom CSS, so I want to run my proposal by you:
#tip_container > div elements are inline-block, so I don't think the default css needs any changes. Do you want me to make a PR, and if so is that way to handle it OK?
The text was updated successfully, but these errors were encountered: