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

Feature Request: Highlight without marking the whole word. #144

Open
psiehr opened this issue Feb 8, 2017 · 5 comments
Open

Feature Request: Highlight without marking the whole word. #144

psiehr opened this issue Feb 8, 2017 · 5 comments

Comments

@psiehr
Copy link

psiehr commented Feb 8, 2017

Hey,

first I would like to thank you for your package. It is a very useful add-on for atom.

There is only one disadvantage: You have to mark the whole word.
So you either do a double click, or if you are a mouse-hater, you do a ctrl+shift + →.

Anyway it would be nice if words also get highlighted if the cursor is inside a word,
so you don't have to highlight them.
Just like the highlighting of matching brackets in bracket matcher.

Best
Philipp


Duplicate -> #111
please delete this issue.

@richrace
Copy link
Member

richrace commented Feb 8, 2017

In the package settings does unticking Only Highlight Whole Words solve this?

@psiehr
Copy link
Author

psiehr commented Feb 8, 2017

No, actually I have no idea what that option does.

@richrace
Copy link
Member

richrace commented Feb 8, 2017

Say I have a word: someReallUsefulMethod with that option selected, to get the highlight you'd have to select the whole word.

With that option disabled you could select Use and only that part would have the highlight box, and would look for any other occurrences of Use elsewhere in your file.

@psiehr
Copy link
Author

psiehr commented Feb 9, 2017

That is not exactly what issue #111 and I suggest.
Let's say we have the following code:

variable1 = []
variable2 = []
variable3 = []

for it in varia|ble2:
    do something

The | marks the location of the text cursor, not the mouse cursor.
Now variable2 in line 2 should be highlighted.
This should happen live while working with the code.
The marking of the word is an unnecessary step, that takes both time to execute and get used to.

Kind of like in the following gif from the refactor package, without the editing part.

@vadim-on-github
Copy link

Duplicate: #96

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

No branches or pull requests

3 participants