Git Product home page Git Product logo

browse-word-at-caret's People

Contributors

minman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

browse-word-at-caret's Issues

Highlight on all tabs

Would it be possible to highlight results on all opened tabs? For example, I may have two opened tabs of same source code file and I want to see it on both tabs.

AssertionError with your plugin

Hi,

I got an issue reported in IntelliJ ; sorry I'm not sure what went wrong here 
or how to reproduce it. Plus the following stacktrace also point at some 
IntelliJ code.


Error during dispatching of 
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=browsewordatcaret.BWA
CEditorComponent$1@57365198,notifier=null,catchExceptions=false,when=13534957890
76] on apple.awt.CToolkit@45dc1f76: (9972,10003)
java.lang.AssertionError: (9972,10003)
    at com.intellij.openapi.editor.impl.RedBlackTree.deleteNode(RedBlackTree.java:146)
    at com.intellij.openapi.editor.impl.IntervalTreeImpl.deleteNode(IntervalTreeImpl.java:939)
    at com.intellij.openapi.editor.impl.IntervalTreeImpl.removeNode(IntervalTreeImpl.java:928)
    at com.intellij.openapi.editor.impl.IntervalTreeImpl$IntervalNode.a(IntervalTreeImpl.java:134)
    at com.intellij.openapi.editor.impl.IntervalTreeImpl$IntervalNode.access$1400(IntervalTreeImpl.java:51)
    at com.intellij.openapi.editor.impl.IntervalTreeImpl.removeInterval(IntervalTreeImpl.java:915)
    at com.intellij.openapi.editor.impl.MarkupModelImpl.removeHighlighter(MarkupModelImpl.java:180)
    at browsewordatcaret.BWACEditorComponent$1.run(BWACEditorComponent.java:65)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:702)
    at java.awt.EventQueue.access$400(EventQueue.java:82)
    at java.awt.EventQueue$2.run(EventQueue.java:663)
    at java.awt.EventQueue$2.run(EventQueue.java:661)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:672)
    at com.intellij.ide.IdeEventQueue.d(IdeEventQueue.java:673)
    at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:498)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:333)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

I'm using IntelliJ 12 EAP build 122.746 with your plugin BrowseWordAtCaret at 
version 2.3.3.
Under JDK 1.6_037 on OSX 10.8

Cheers

Original issue reported on code.google.com by [email protected] on 21 Nov 2012 at 11:11

Crashes when using multiple selection

What steps will reproduce the problem?
1. Download newer EAP (i used 
http://blog.jetbrains.com/phpstorm/2014/03/phpstorm-8-early-access-program-start
ed/)
2. Use Alt+Shift and left mouse click to place another cursor

What is the expected output? What do you see instead?
Expected: Everything is fine and dandy
Actual: A notice pops up and tells me BrowseWordAtCaret crashed

What version of the product are you using? On what operating system?
8.0.0 EAP, Linux

Please provide any additional information below.

browsewordatcaret.BWACEditorComponent.caretAdded(Lcom/intellij/openapi/editor/ev
ent/CaretEvent;)V: 
browsewordatcaret.BWACEditorComponent.caretAdded(Lcom/intellij/openapi/editor/ev
ent/CaretEvent;)V
java.lang.AbstractMethodError: 
browsewordatcaret.BWACEditorComponent.caretAdded(Lcom/intellij/openapi/editor/ev
ent/CaretEvent;)V
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at com.intellij.util.EventDispatcher.dispatch(EventDispatcher.java:90)
    at com.intellij.util.EventDispatcher.access$100(EventDispatcher.java:34)
    at com.intellij.util.EventDispatcher$1.invoke(EventDispatcher.java:67)
    at com.sun.proxy.$Proxy28.caretAdded(Unknown Source)
    at com.intellij.openapi.editor.impl.CaretModelImpl.fireCaretAdded(CaretModelImpl.java:489)
    at com.intellij.openapi.editor.impl.CaretModelImpl.addCaret(CaretModelImpl.java:300)
    at com.intellij.openapi.editor.impl.CaretModelImpl.addCaret(CaretModelImpl.java:280)
    at com.intellij.openapi.editor.impl.EditorImpl$MyMouseAdapter.f(EditorImpl.java:5671)
    at com.intellij.openapi.editor.impl.EditorImpl$MyMouseAdapter.access$10600(EditorImpl.java:5448)
    at com.intellij.openapi.editor.impl.EditorImpl$MyMouseAdapter$1.run(EditorImpl.java:5514)
    at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:124)
    at com.intellij.openapi.editor.impl.EditorImpl$MyMouseAdapter.a(EditorImpl.java:5519)
    at com.intellij.openapi.editor.impl.EditorImpl$MyMouseAdapter.mousePressed(EditorImpl.java:5454)
    at java.awt.Component.processMouseEvent(Component.java:6502)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3320)
    at java.awt.Component.processEvent(Component.java:6270)
    at java.awt.Container.processEvent(Container.java:2229)
    at java.awt.Component.dispatchEventImpl(Component.java:4861)
    at java.awt.Container.dispatchEventImpl(Container.java:2287)
    at java.awt.Component.dispatchEvent(Component.java:4687)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4489)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
    at java.awt.Container.dispatchEventImpl(Container.java:2273)
    at java.awt.Window.dispatchEventImpl(Window.java:2719)
    at java.awt.Component.dispatchEvent(Component.java:4687)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:735)
    at java.awt.EventQueue.access$200(EventQueue.java:103)
    at java.awt.EventQueue$3.run(EventQueue.java:694)
    at java.awt.EventQueue$3.run(EventQueue.java:692)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
    at java.awt.EventQueue$4.run(EventQueue.java:708)
    at java.awt.EventQueue$4.run(EventQueue.java:706)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:705)
    at com.intellij.ide.IdeEventQueue.e(IdeEventQueue.java:697)
    at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:520)
    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)


Original issue reported on code.google.com by [email protected] on 7 Mar 2014 at 8:28

Wrap around (at the end go to the first occurrence and vice versa)

What steps will reproduce the problem?
1. You are at the last occurrence of a word in a file.
2. You press the "browse to next" shortcut

What is the expected output? What do you see instead?
I expect to wrap around the end of the file and go to the first occurrence. (If 
this is confusing maybe you could set it so that you have to press the "browse 
to next" shortcut twice in this case).
Instead nothing happens.

What version of the product are you using? On what operating system?
IntelliJ 13.1.2 on MacOSX.

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 24 Jul 2014 at 2:43

Not working at all for me :(

I have a fresh install of WebStorm, and just installed the BrowseWordAtCaret plugin - when pressing Ctrl+Alt+Up/Down, nothing happens...

I even removed the "next / Previous Occurance" controls just in case there was a conflict.

Does this plugin no longer work? :(

WebStorm 2017.2.4

Highlight Word at Caret not working

The word at the caret isn't highlighted/selected.

Expected behavior:
When moving the cart to the next word, the previous and current selected word should be selected and when typing, what's typed should be applied everywhere the word was present and selected.

Actual behavior:
When moving the cart to the next word, the caret just jumps to the next occurrence, and when typing the letters are just applied to where the caret is (normal behavior)

Attempted solutions:

  1. Selected/Checked --> View|Highlight Word at Caret. Didn't change the behavior.
  2. Selected all the checkboxes at --> Settings|Editor|General|Appearance. Didn't solve the issue.

PS:
I don't think it changes anything but I did assign new shortcuts to the plugin since the original ones conflicted with my current ones.

Plugin version: 3.0.5
Android Studio version:

image

Thanks for your time and effort.

finding next instance of a part of a word

I just started using the plugin today, and it works great! There is just one thing that doesn't work as it would be expected. When I select only half a word, and hit Ctrl+Alt+arrow, I would expect it to find the next instance of that word fraction, not the whole word. This is especially true when I am searching for the next instance of a word that is in a camel-case variable, etc.

Operate on more than one word

The plugin defaults to searching single words, I'd love the ability to search 
for more, eg I select a class in HTML:

<div class="some-class"></div>

and select `some-class` but upon pressing alt+ctrl+up it only selects either 
`some` or `class`. 

Would it be possible to for example call the default select word at caret 
before searching, so the selection would expand to closest whole expression. 
Basically I'd love to use this as the default `highlight selected text` 
notepad++ functionality plus the ability to traverse through occurrences, or 
should I use something else entirely?

Original issue reported on code.google.com by Raveren on 17 May 2012 at 12:51

Enhancement: browse single characters, e.g. operators, identical and resp. counterpart

How about adding support for browsing single characters? 
Especially the ability to navigate among operators and quote characters like: 
', ", (, ), [, ], {, } would be very helpful.

Additional: when navigating among braces and compounds like (, ), {, } it would 
be helpful to be able to jump not only to occurrences of that same character, 
but also to the corresponding counterpart character.  




Original issue reported on code.google.com by [email protected] on 29 Apr 2014 at 8:36

resolve usages of deprecated api

IntelliJ Plugin Verifier

4 deprecated API usages
BrowseWordAtCaret 3.0.4 uses deprecated API, which may be removed in future releases leading to binary and source code incompatibilities

Deprecated methods usages (3)

  • BaseComponent.disposeComponent() (1)
  • BaseComponent.initComponent() (1)
  • EditorActionHandler.execute(Editor, DataContext) (1)

Deprecated interface usage (1)

  • ApplicationComponent (1)

Can't distinguish whole word sometimes

eg.
wyh wyh-a
it can't distinguish.

although I know it can recognize between wyh and wyha, but I also wish u can add a clear feature, case sensitive and whole word, thanks~

Disable beeping

When I browse word at caret, my computer beeps. is there a way to disable the 
beeping?

Original issue reported on code.google.com by [email protected] on 8 Apr 2014 at 12:14

Works only for the current scope

If I have several occurrences of the same property in the different methods of the class - this plugin highlights only occurrences in the current method.

Moreover - if I have occurrences of the same property in the same method but in different blocks - this plugin highlights only occurrences in the same block.
image

Adding multiple caret at the word match

This looks a great plugin to highlight word at caret, could you also add adding a carat at the matched word, that would be really amazing to have.. just like emacs multi cursor package.

Ignore case & Incremental highlight.

Thank you for this awesome plugin.

  1. Just wondering, is there any option to ignore case while highlighting the occurrences?
  2. Can we do incremental highlight as well?

I'm using IDEA 2019.3

Allow the selection to begin and end with non-alphanumeric characters

I'm using BrowseWordAtCaret 3.0.4 in Rider 2019.3, so that I can get matching selection behavior that I was used to in Visual Studio (with the Productivity Power Tools extension).

When the selection begins or ends with non-alphanumeric characters, the matches (elsewhere in code) disappear. This prevents me from being able to select entire lines (from the left most column) or to simply end a selection with an operator, semicolon, or other punctuation.

It would be great if the plugin was updated to allow non-alphanumeric characters (including whitespace) to begin and end a selection.

Last year, I started the Rider Forum: Highlighting matching selected text thread on the Rider Support forum about the text selection behavior, and I just recently added a comment with an Animated GIF showing the current BrowseWordAtCaret behavior. The original post includes a screenshot of the behavior I'm looking for, which is available in Visual Studio (with the free Productivity Power Tools extension from Microsoft DevLabs).

As an added bonus, it would be ideal if the whitespace at the beginning and end of each line (or maybe all whitespace) was ignored or fudged so that selecting the entire first line with a lot of starting whitespace would also select the lines with different beginning and trailing whitespace ... and the line with more spaces between the = and 4 ... and lines that include \t tabs vs spaces.

            var x = 4;

        var x = 4;

        var x =      4;

Thanks!

Option to copy line if nothing selected

I love this plugin and its new availability on phpStorm, but I'm used to ctrl+c 
copying entire line, not the word at caret, I'd love to have the old 
functionality back.

Original issue reported on code.google.com by Raveren on 17 May 2012 at 12:46

direct start key navigation broken in 2.3.5

What steps will reproduce the problem?
1. Install latest version of plugin 2.3.5 for IJ Ultimate 11.1
2. Navigate to a word in the file using arrow keys, a field for example
3. Attempt to browse to the next word using ctrl+alt+up / down

What is the expected output? What do you see instead?

Expected: The field / word at my caret is highlighted and I'm taken to the next 
occurrence of the field / word.

Actual: Nothing happens

What version of the product are you using? On what operating system?

2.3.5, Windows 7 Pro, IJ 11.1

Please provide any additional information below.

Attempted to re-install the plugin and remove conflicting keymap bindings, 
neither helped.

Selecting the entire word at the caret did resolve the issue. Stated another 
way, if I were to select the entire field name and THEN issue the ctrl+alt+UP / 
DOWN commands, the plugin worked as expected. The previous version was working 
fine, so I'm assuming it's a minor regression.

Also wanted to say thanks for the plugin, as soon as it broke it was 
immediately missed.  


Original issue reported on code.google.com by [email protected] on 25 Mar 2013 at 11:15

Exception with Auto Highlight (still experimental feature)

no idea how to reproduced it...

Error during dispatching of 
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=javax.swing.Timer$DoP
ostEvent@1c05e77,notifier=null,catchExceptions=false,when=1359715690387] on 
sun.awt.windows.WToolkit@1586cbd: String index out of range: -1
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
    at java.lang.String.substring(String.java:1937)
    at browsewordatcaret.BWACEditorComponent$4.actionPerformed(BWACEditorComponent.java:114)
    at javax.swing.Timer.fireActionPerformed(Timer.java:291)
    at javax.swing.Timer$DoPostEvent.run(Timer.java:221)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:641)
    at java.awt.EventQueue.access$000(EventQueue.java:84)
    at java.awt.EventQueue$1.run(EventQueue.java:602)
    at java.awt.EventQueue$1.run(EventQueue.java:600)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:611)
    at com.intellij.ide.IdeEventQueue.d(IdeEventQueue.java:673)
    at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:498)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:333)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

Original issue reported on code.google.com by [email protected] on 1 Feb 2013 at 11:39

test2

What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?


Please use labels and text to provide additional information.


Original issue reported on code.google.com by [email protected] on 24 Feb 2013 at 6:55

  • Blocked on: #8

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.