Comments (2)
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.
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)
- Add to Melpa HOT 1
- status of this library, adding complex rules HOT 2
- Deal with Other Sentence Endings
- Doesn't quite work with comments? HOT 2
- selection of non sentence objects HOT 2
- How can I add other characters to go through, like comma for example? HOT 2
- Navigating with cascaded outlining on in org-mode lists. HOT 6
- Unusable on Emacs 27.0.50: "Unknown rx symbol" HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from emacs-sentence-navigation.