Giter Club home page Giter Club logo

vim-textobj-sentence's People

Contributors

alerque avatar lafrenierejm avatar landonschropp avatar reedes avatar telemachus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vim-textobj-sentence's Issues

One strange sentence navigation case

Consider the case:

Prof. Plum said, "Hey Mr. Green. Didn't see you there." He casually slid the revolver behind a nearby book. Plum lit his pipe.

If the cursor is on the beginning of the line in normal mode, and I press ), it goes to the "D" of "didn't". I think this is reasonable. However, if I press ) again, it jumps to the "P" in the second "Plum" (last sentence) and skips over the "He" sentence. I was thinking that it would move to the middle sentence instead.

It is entirely possible that I have a bad configuration or interaction with another plugin of some sort. Just wanted to file this in case it is not the desired behavior. I could see this being confusing if I had a lot of back-and-forth dialog in a piece of writing. Hope this helps, and thanks for making this plugin!

Not jumping to next sentence

Given document:

/////////////////////////
This is a test.

“this is a test”
/////////////////////////

From first sentence hit ')' to jump to the next. Nothing happens.

Might give examples of how vim-textobj-sentence handles touted benefits

Hi Reed, hope things are going well! I was reading through the documentation (working on previously referenced Vim book (finally)) and saw a couple of benefits that the README mentions that I'm not sure I fully understand. I could dig into the code, but figured it might be a case where it could be clearer to others as well.

Here are the relevant sections:

  • Support for sentences containing typographical characters, incl. quotes, em dash, etc.
  • Support for lightweight markup languages (markdown, e.g.)

I was not clear how having dashes would affect the sentence finding algorithm. Same with things like asterisks around words inside of sentences.

Thank you for your work on this plugin, it is quite useful for moving around and manipulating sentences!

Create a new text object for clauses

Hi,

I have enjoyed using your plugin but I have a small request. Would it be possible to add a new text object for clauses (or fragments bounded by commas or periods, whatever you call it) and make it sort of a sister object of the sentence object?

Thanks,
Mac

"e.g." and "i.e." are treated as sentence endings in latex files

The plugin treats e.g. and i.e. as sentence endings. It seems to work for markdown files, but not latex. For example this sentence is treated as two objects.

Here is a sentence i.e. this is an example.

I tried adding another abbreviations to g:textobj#sentence#abbreviations that it didn't fix the problem.

Sentences inside parentheses?

First, thanks for this plugin! I found it while looking for something that improves on vim's built-in handling of sentences in LaTeX files. (If you're bored and curious for more details: https://vi.stackexchange.com/q/23228/7933.)

The good news: out of the box, this plugin handles some very ugly situations in LaTeX wonderfully!

The bad news: the plugin cannot handle parenthetical sentences. Here's a test sample:

(|This is a test.) This is only a test. Still testing.
This is only a test. (|This is a test.) Still testing.

If | is the initial cursor position, then ) in the first line jumps to Still. In the second line, ) moves directly down to the next line.

Thanks again for writing this plugin.

delimit by single carriage return

I'd love this to be able to delimit by a single carriage return.

I write screenplays in fountain and selecting the first sentence of dialogue will invariably also select characters' names.

I tried to hack around in sentence.vim but I don't sufficiently understand what is happening here.

Missing :endif error on launch

I've just installed this on my Vim 7.4 and when I open a file in Vim, I get these messages:

Error detected while processing function textobj#sentence#init..textobj#user#plugin..369:
line   15:
E605: Exception not caught: Unknown command: 'pattern'
Error detected while processing function textobj#sentence#init..textobj#user#plugin:
line   15:
E171: Missing :endif                              

Not sure how best to track this one down.

Ignoring Symbols Like (. or `. or \.

I tried adding '(' to the abbreviations, but it does not work. Backtick/Grave does not work either. For example, I'd like things like (.) or . or an escaped period to be ignored. I can't think of any situation in which a sentence would end with these characters except for possibly backtick, so it might be nice to have ( and \ ignored by default.

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.