Git Product home page Git Product logo

Comments (2)

noctuid avatar noctuid commented on June 27, 2024

Yeah this package could use some work. Right now it makes some dumb assumptions about the start of a sentence (e.g. it won't work with a sentence starting at the beginning of the buffer). For text that isn't hard-wrapped, it's easiest to just assume that a capital letter (or a left quote or something) at the beginning of the line always starts a sentence. For it to work with hard-wrapped text as well, I'll need to add a variable for regexps that can precede the start of a sentence for different modes. In org mode this would also include things like line comments and tables I guess. I don't really use hard-wrapping most of the time, so I never did this, but I'll fix this problem next time I get the chance.

from emacs-sentence-navigation.

noctuid avatar noctuid commented on June 27, 2024

Okay this example should now work as expected. I've made a lot of other improvements, so the behavior should be saner in general. Accurate support for hard-wrapped sentences is implemented and requires that sentence-nav-hard-wrapping is non-nil and that sentence-nav-non-sentence-line-alist is customized properly for the current major mode (which is fairly simple). I've added basic support for org mode. I'll flesh out the list of regexps for org mode and add support for markdown mode when I get the chance.

from emacs-sentence-navigation.

Related Issues (9)

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.