Giter Club home page Giter Club logo

Comments (7)

scriptum avatar scriptum commented on September 2, 2024

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 0801a3c should fix this issue, possibly you are using outdated version of plugin (depending on distribution).

from geany-plugins.

lpaulsen93 avatar lpaulsen93 commented on September 2, 2024

I have an actual version installed/compiled and noticed the following:

This works well ✅:

  • 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 ❌:
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

from geany-plugins.

lpaulsen93 avatar lpaulsen93 commented on September 2, 2024

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;

from geany-plugins.

scriptum avatar scriptum commented on September 2, 2024

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.

from geany-plugins.

lpaulsen93 avatar lpaulsen93 commented on September 2, 2024

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 😊
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)?

from geany-plugins.

scriptum avatar scriptum commented on September 2, 2024

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.

from geany-plugins.

lpaulsen93 avatar lpaulsen93 commented on September 2, 2024

Except Issue 2 which is not an issue but works as designed I could not find any problems. Should this be closed?

from geany-plugins.

Related Issues (20)

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.