Code Monkey home page Code Monkey logo

Comments (4)

purcell avatar purcell commented on July 18, 2024 1

Could you not just get a list of visible buffers with
something like (mapcar 'window-buffer (window-list))
and then maybe check with project.el that project
and major-mode match?

This has nothing to do with projects or major modes afaict.

The complexity this would add is:

  • Have to determine visible windows in the current frame
  • Couldn't toggle symbol-overlay-mode in individual buffers: it would have to be a global mode
  • Have to add/remove overlays across several buffers, so overlay list can no longer be buffer-local
  • Have to remove overlays when buffers become invisible in the frame in which they were added

Look at the code of avy, for comparison, which works like this. You'll see it's much more complex than symbol-overlay.

from symbol-overlay.

purcell avatar purcell commented on July 18, 2024

That would be quite complex and is almost certainly out of scope for this package.

from symbol-overlay.

dakra avatar dakra commented on July 18, 2024

@purcell is it really that difficult?
Could you not just get a list of visible buffers with
something like (mapcar 'window-buffer (window-list))
and then maybe check with project.el that project
and major-mode match?

I don't have any interest in this feature myself,
just curious why this would be complex and out of scope.

from symbol-overlay.

purcell avatar purcell commented on July 18, 2024

Going to close this one for the above reasons, sorry, but thanks for the suggestion.

from symbol-overlay.

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.