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

keyup manual-Highlight💡: Highlight keywords from keyup-event shortcut key #18

Open
dnknn opened this issue Dec 3, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@dnknn
Copy link

dnknn commented Dec 3, 2022

💡PLEASE NOTE: This will be a brand new feature, different from the current highlighting logic. because it won't go into the list of user rules! (Has nothing to do with user rules)

  • First of all, please install this script test first, and you can basically understand it completely.
    https://greasyfork.org/scripts/455929
    1. getSelection().toString().trim()
    2. keyup G to highlight.
    3. enjoy.
    4. exit-highlight : Esc or G(only when !getSelection().toString().trim() and has highlighted)

This script is more simple one-time manual temporary highlighting, but it lacks the function of the right map of AutoHighlight.
image

So, whether AutoHighlight can also have this function? users can customize a shortcut key.

@dnknn dnknn added the enhancement New feature or request label Dec 3, 2022
@fastaddons
Copy link
Collaborator

Hello,
Could you describe the feature with words? :)
Is that suppose to highlight what is selected after pressing some key?

I'm open to improvements but I'm very busy with my other addons right now so I don't have much time experiment :).

@dnknn
Copy link
Author

dnknn commented Dec 3, 2022

sorry for my English.....

Is that suppose to highlight what is selected after pressing some key?

Yes! but has no association with user rules, will not be saved to user rules.

There are many application scenarios for this feature, e.g. Just want to find the same highlighted words, Or similar to the highlight search of code variables.

That is to say, this feature is instant and one-time. The main difference is: when there is no need to create automatic highlighting rules for keywords, this feature can be perfectly satisfied at this time, and the operation is simple and convenient.

And all the features of AutoHighlight extension, are based on user rules for manually added keywords (whether temporary or permanent), When the page is opened, these rules are automatically applied for highlighting.

But obviously, we often only need a one-time simple operation to temporarily highlight.

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

No branches or pull requests

1 participant