selected icon indicating copy to clipboard operation
selected copied to clipboard

Feature Request: Highlight without marking the whole word.

Open psiehr opened this issue 8 years ago • 5 comments

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 -> https://github.com/richrace/highlight-selected/issues/111 please delete this issue.

psiehr avatar Feb 08 '17 15:02 psiehr

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

richrace avatar Feb 08 '17 16:02 richrace

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

psiehr avatar Feb 08 '17 16:02 psiehr

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.

richrace avatar Feb 08 '17 16:02 richrace

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.

psiehr avatar Feb 09 '17 08:02 psiehr

Duplicate: #96

vadim-on-github avatar Aug 27 '18 22:08 vadim-on-github