Skip to content
This repository was archived by the owner on Apr 6, 2018. It is now read-only.

More text objects (by @udp) - #286

Merged
bhuga merged 9 commits into
atom:masterfrom
carlosdcastillo:udp-more-text-objects-pr
Jun 10, 2014
Merged

bhuga merged 9 commits into
atom:masterfrom
carlosdcastillo:udp-more-text-objects-pr

Conversation

@carlosdcastillo

Copy link
Copy Markdown
Contributor

In #229 @udp implemented more text objects, in particular i( and i'. All of these things are @udp's contribution.

I only took the pull request @udp (#229) addressed the concerns of @bhuga and fixed the automated tests so they pass. All trivial fixes.

@jamesamcl

Copy link
Copy Markdown
Contributor

👍

LGTM—thanks for finishing this off.

Comment thread lib/text-objects.coffee

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔥 this newline please.

@bhuga

bhuga commented May 30, 2014

Copy link
Copy Markdown
Contributor

Looks really good. ✨ for picking this one back up, I miss ci" all the time!

Adding more specs and some documentation on why two different classes.
@bhuga

bhuga commented Jun 6, 2014

Copy link
Copy Markdown
Contributor

Sorry for the delay getting back to this.

I tested using this line:

    Digest::SHA1.hexdigest("v7:#{schema_version}#{concurrency}#{IO.binread(schema_file)}")

Things work great inside the quotes, and di( figures out which parens it's in, which is great. But I found a few bug cases:

  • di( and di" both fail when not inside any quotes or parens on the line, such as in the word 'hexdigiest'. The correct behavior is to do nothing (probably best to represent this as not composing properly?), but we'll search lines away for a match.
  • di{ works inside the {}, but di} in the same set of brackets deletes the rest of the line.

@carlosdcastillo

Copy link
Copy Markdown
Contributor Author

@bhuga: di( and di" work for me on hexdigest and on SHA1 and on Digest (when I say work I mean no-op)

di} is not part of this commit and is broken in master, I don't know why.

@bhuga

bhuga commented Jun 10, 2014

Copy link
Copy Markdown
Contributor

Okay, I can't repeat these anymore. I wonder if I broke it testing )}?

In any case, this is a huge improvement on where we were before. Thanks!

bhuga pushed a commit that referenced this pull request Jun 10, 2014
@bhuga
bhuga merged commit 126517a into atom:master Jun 10, 2014
MarkusSN pushed a commit to MarkusSN/vim-mode that referenced this pull request May 28, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants