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

Always highlight a set of keywords #9

Open
mayuroks opened this issue Oct 14, 2014 · 5 comments
Open

Always highlight a set of keywords #9

mayuroks opened this issue Oct 14, 2014 · 5 comments
Assignees

Comments

@mayuroks
Copy link

keywords like TODO, FIXME, BADCODE, README etc are are found in most of my code. I want those words to be highlighted as soon as my sublime text comes up.

I can save those words to an array in my settings and and I want those words to always be highlighted. Is there way to do that ?

@seanliang
Copy link
Owner

Do you mean that the plugin will highlight those words automatic when the document is opened?

What will happen if you perform a manual highlight later?

  1. The keywords will not be affected, or
  2. The keywords will appear in the input panel and you can remove any of them, or
  3. The keywords will be removed from highlighting

@mayuroks
Copy link
Author

YES the pluign should automatically highlight those words as soon as the document is opened. This feature is mostly about long term code-base development / maintainance rather than short-term word highlighting

The best solution to overcome conflicts is to have keyword-color list like this.

permanent_highlight_keyword_color_mappings: {'TODO': 'yellow', 'FIXME': 'red'}

there should be few more settings for permanent highlight like this

permanent_keyword_highlight_toggle_key: <SOME BUTTON> # turn on n off the prmently highlighted words
permanent_keyword_highlight_always: true # if set to false, you can use toggle key
permanent_keyword_hide_on_manual_search: true( DEFAULT ) # false to keep them highlighted in case of manual searches as well

And the new manual words should be highlighted using default colors, so to answer your questions

  1. The keywords will not be affected or 3) removed from highlighting, THAT will depend upon these settings
    These settings will help in setting up my coding practices and deal with most of the regular stuff

  2. Input panel can also be a good way when you wanna go deeper into highlight / searching in whichever way the user prefers.

I hope you get the idea.

@seanliang
Copy link
Owner

Ok. I'll try to implement this feature when I have time.

@seanliang seanliang self-assigned this Oct 17, 2014
@Enteleform
Copy link

+1, this would be an awesome feature 👍

seanliang added a commit that referenced this issue Mar 27, 2015
Always highlight keywords (issue #9)
@laramjo
Copy link

laramjo commented Apr 19, 2015

They could give me an example of how to change the color of the word to highlight

(google translate.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants