The plugin does not highlight all the words that match current word under cursor but only the words which are visible on the screen. During scrolling a document no more highlighted word appears.
--- Reply to this email directly or view it on GitHub: https://github.com/geany/geany-plugins/issues/294
Plugin uses delayed algorithm to save resources for huge documents and updates marks while you scrolling. Recently is had a little delay (150 ms). This commit https://github.com/geany/geany-plugins/commit/0801a3c56a8f9fcb0fd16ee5a26e03... should fix this issue, possibly you are using outdated version of plugin (depending on distribution).
--- Reply to this email directly or view it on GitHub: https://github.com/geany/geany-plugins/issues/294#issuecomment-194955420
I have an actual version installed/compiled and noticed the following:
**This works well :white_check_mark::** - click on a word once - scroll with the mouse wheel - new occurrences of the word coming into the visible area are properly marked
**This things do not seem to work :x:: Issue 1:** - click on a word once - scroll up or down using page up/page down keys - new occurrences of the word coming into the visible area **NOT** marked
**Issue 2:** - double click on a word (so it is being selected) - scroll with the mouse wheel - new occurrences of the word coming into the visible area **NOT** marked
I just found out that **Issue 2** is the intended/implemented behaviour. See ```automark/src/automark.c```, lines 116-118: ``` /* Do not highlight while selecting text and allow other markers to work */ if (sci_has_selection(sci)) return FALSE; ```
scroll up or down using page up/page down keys
This is the reason - while using PdUp/PgDn for scrolling, you move cursor, loosing current word selection. I have no idea how to fix that without breaking other things.
This is the reason - while using PdUp/PgDn for scrolling, you move cursor, loosing current word selection. I have no idea how to fix that without breaking other things.
ohhh...of course :blush: So Issue 2 is the only one I can re-produce.
@stosunek: do you encounter the problem if you only move the cursor on a word or click once on it, or do you encounter the problem if you double-click on a word (and so select it)?
*Issue 2* actually workaround for another Geany plugin (addons) which provides similar functionality for word highlighting (double-click). Probably there were another issues I don't remember.
Except _Issue 2_ which is not an issue but works as designed I could not find any problems. Should this be closed?
github-comments@lists.geany.org