olegych / ih-reloaded Goto Github PK
View Code? Open in Web Editor NEWIdentifierHighlighter reloaded. Gives you one-stroke way to navigate to next/previous identifier occurence.
IdentifierHighlighter reloaded. Gives you one-stroke way to navigate to next/previous identifier occurence.
Phpstorm 7.1.
Wrong end: 16244; document length=5899; start=16240: Wrong end: 16244; document length=5899; start=16240
java.lang.IllegalArgumentException: Wrong end: 16244; document length=5899; start=16240
at com.intellij.openapi.editor.impl.RangeMarkerImpl.<init>(RangeMarkerImpl.java:44)
at com.intellij.openapi.editor.impl.RangeMarkerImpl.<init>(RangeMarkerImpl.java:37)
at com.intellij.openapi.editor.impl.RangeHighlighterImpl.<init>(RangeHighlighterImpl.java:42)
at com.intellij.openapi.editor.impl.MarkupModelImpl.addRangeHighlighterAndChangeAttributes(MarkupModelImpl.java:129)
at com.intellij.openapi.editor.impl.MarkupModelImpl.addRangeHighlighter(MarkupModelImpl.java:170)
at com.intellij.codeInsight.highlighting.HighlightManagerImpl.a(HighlightManagerImpl.java:132)
at com.intellij.codeInsight.highlighting.HighlightManagerImpl.addOccurrenceHighlight(HighlightManagerImpl.java:206)
at com.intellij.codeInsight.highlighting.HighlightManagerImpl.addRangeHighlight(HighlightManagerImpl.java:243)
at com.intellij.codeInsight.highlighting.HighlightManagerImpl.addRangeHighlight(HighlightManagerImpl.java:222)
at com.intellij.codeInsight.highlighting.HighlightUsagesHandler.highlightRanges(HighlightUsagesHandler.java:322)
at com.intellij.codeInsight.highlighting.HighlightUsagesHandler.a(HighlightUsagesHandler.java:391)
at com.intellij.codeInsight.highlighting.HighlightUsagesHandler.highlightReferences(HighlightUsagesHandler.java:257)
at com.intellij.codeInsight.highlighting.HighlightUsagesHandler$DoHighlightRunnable.run(HighlightUsagesHandler.java:212)
at com.intellij.find.findUsages.PsiElement2UsageTargetAdapter.highlightUsages(PsiElement2UsageTargetAdapter.java:142)
at com.intellij.codeInsight.highlighting.HighlightUsagesHandler.invoke(HighlightUsagesHandler.java:132)
at com.intellij.codeInsight.highlighting.actions.HighlightUsagesAction$1.run(HighlightUsagesAction.java:58)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:124)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:99)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:85)
at com.intellij.codeInsight.highlighting.actions.HighlightUsagesAction.actionPerformed(HighlightUsagesAction.java:51)
at com.olegych.ihr.actions.BaseIdentifierNavigationAction.invokeAction(BaseIdentifierNavigationAction.java:56)
at com.olegych.ihr.actions.BaseIdentifierNavigationAction.highlight(BaseIdentifierNavigationAction.java:52)
at com.olegych.ihr.actions.BaseIdentifierNavigationAction.navigate(BaseIdentifierNavigationAction.java:39)
at com.olegych.ihr.actions.BaseIdentifierNavigationAction.actionPerformed(BaseIdentifierNavigationAction.java:24)
at com.olegych.ihr.actions.NextIdentifierAction.actionPerformed(NextIdentifierAction.java:6)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher$3.performAction(IdeKeyEventDispatcher.java:564)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processAction(IdeKeyEventDispatcher.java:611)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.d(IdeKeyEventDispatcher.java:463)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.dispatchKeyEvent(IdeKeyEventDispatcher.java:206)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:493)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:335)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
java.lang.IllegalArgumentException: Wrong end: 16244; document length=5899; start=16240
at com.intellij.openapi.editor.impl.RangeMarkerImpl.<init>(RangeMarkerImpl.java:44)
at com.intellij.openapi.editor.impl.RangeMarkerImpl.<init>(RangeMarkerImpl.java:37)
at com.intellij.openapi.editor.impl.RangeHighlighterImpl.<init>(RangeHighlighterImpl.java:42)
at com.intellij.openapi.editor.impl.MarkupModelImpl.addRangeHighlighterAndChangeAttributes(MarkupModelImpl.java:129)
at com.intellij.openapi.editor.impl.MarkupModelImpl.addRangeHighlighter(MarkupModelImpl.java:170)
at com.intellij.codeInsight.highlighting.HighlightManagerImpl.a(HighlightManagerImpl.java:132)
at com.intellij.codeInsight.highlighting.HighlightManagerImpl.addOccurrenceHighlight(HighlightManagerImpl.java:206)
at com.intellij.codeInsight.highlighting.HighlightManagerImpl.addRangeHighlight(HighlightManagerImpl.java:243)
at com.intellij.codeInsight.highlighting.HighlightManagerImpl.addRangeHighlight(HighlightManagerImpl.java:222)
at com.intellij.codeInsight.highlighting.HighlightUsagesHandler.highlightRanges(HighlightUsagesHandler.java:322)
at com.intellij.codeInsight.highlighting.HighlightUsagesHandler.a(HighlightUsagesHandler.java:391)
at com.intellij.codeInsight.highlighting.HighlightUsagesHandler.highlightReferences(HighlightUsagesHandler.java:257)
at com.intellij.codeInsight.highlighting.HighlightUsagesHandler$DoHighlightRunnable.run(HighlightUsagesHandler.java:212)
at com.intellij.find.findUsages.PsiElement2UsageTargetAdapter.highlightUsages(PsiElement2UsageTargetAdapter.java:142)
at com.intellij.codeInsight.highlighting.HighlightUsagesHandler.invoke(HighlightUsagesHandler.java:132)
at com.intellij.codeInsight.highlighting.actions.HighlightUsagesAction$1.run(HighlightUsagesAction.java:58)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:124)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:99)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:85)
at com.intellij.codeInsight.highlighting.actions.HighlightUsagesAction.actionPerformed(HighlightUsagesAction.java:51)
at com.olegych.ihr.actions.BaseIdentifierNavigationAction.invokeAction(BaseIdentifierNavigationAction.java:56)
at com.olegych.ihr.actions.BaseIdentifierNavigationAction.highlight(BaseIdentifierNavigationAction.java:52)
at com.olegych.ihr.actions.BaseIdentifierNavigationAction.navigate(BaseIdentifierNavigationAction.java:39)
at com.olegych.ihr.actions.BaseIdentifierNavigationAction.actionPerformed(BaseIdentifierNavigationAction.java:24)
at com.olegych.ihr.actions.NextIdentifierAction.actionPerformed(NextIdentifierAction.java:6)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher$3.performAction(IdeKeyEventDispatcher.java:564)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processAction(IdeKeyEventDispatcher.java:611)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.d(IdeKeyEventDispatcher.java:463)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.dispatchKeyEvent(IdeKeyEventDispatcher.java:206)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:493)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:335)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
Currently trying this in the latest version of Jetbrains Rider, highlighting happens but the caret does not navigate.
Hi!
Current implementation of Identifier Highlighter seems to invoke 'highlight usages in file' action which (when 'highlight usages of element at caret' is on) causes two (for me) unpleasant effects:
As a workaround, I tried to disable background color for search results, but this affects search usages as well (which is hard to deal with :))
It would be great if the plugin could somehow only use the search results and navigate through them, without automatically turning on the search highlights. (I think that's the way it worked in IDEA < 10, with Identifier Highlighter :))
Thanks in advance! :)
Artur
Cursor randomly change it's position on the same line during autocomplete in python file in long line in IDEA 12.0
See for more details: http://youtrack.jetbrains.com/issue/PY-8169
To above defect was attached video with problem.
This plugin is n't working with 6.0.3. Pleade fix.
Great plugin! Strange this is not included in the main IDE...
But one thing is missing, I think:
Navigating opening/closing block brackets.
Intellij provides such a feature by default.
One can configure these 4 separate keyboard shortcuts:
The problem:
These are 2-4 additional keyboard shortcuts to set and remember.
The Solution:
I think at least 2 of these features could be integrated (optionally) in the IdentifierHighlighter plugin, reusing the same keyboard shortcuts:
Allow the existing plugin keyboard shortcuts (optionally?) to also navigate from an opening bracket to the corresponding closing bracket or vice versa, when highlighted.
This would make the plugin more versatile and handy, and I can't think of any negative effects when implemented.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.