Giter Site home page Giter Site logo

Comments (6)

ecsplendid avatar ecsplendid commented on June 12, 2024

I thought we solved this problem? - see #38

from jetzt.

peteruithoven avatar peteruithoven commented on June 12, 2024

Good point, I didn't try it yet. I should try before coming up with backup solutions ;)
I'll try tomorrow.
If we think we don't need the backup we can close this for now, we can always reopen it.

from jetzt.

ds300 avatar ds300 commented on June 12, 2024

The article selection does not solve this problem in that it doesn't let you choose a start point. It just makes a best guess and you have to live with it.

On the other hand, selecting text before pressing alt-s can be clumsy, and the current mouseover selection mode can pick up a lot of cruft and doesn't let you e.g. start halfway through the <p>s in a <div>.

To fix this, I've made the default mouseover mode select the siblings of the pointed-to node. In addition, it tries to filter out non-text stuff which seems to work pretty well. Finally, you can hold alt to get the old behaviour back.

This is all in dev. Try it out.

from jetzt.

ecsplendid avatar ecsplendid commented on June 12, 2024

@ds300 this is inspired mate well done! I will be stealing it :>

from jetzt.

ecsplendid avatar ecsplendid commented on June 12, 2024

The article scraper we are running is pretty flaky to be honest, I think we should scrap that and use this new method. It seems to work nicely. Then we have just alt-s to worry about

from jetzt.

peteruithoven avatar peteruithoven commented on June 12, 2024

@ds300, I like it! Your solution has the same outcome, but with more feedback.
I'm considering this closed.

from jetzt.

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.