Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added more configurable options. Removed some annoyances. #150

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

optroot
Copy link

@optroot optroot commented Aug 23, 2016

Allows for some configurable options for when auto-pairs trigger:

  • Only trigger when there is whitespace to the right
  • Only trigger when there are only close-tags and whitespace on the right
  • When a line is not balanced, insert close-tag before skipping over
    f(g(x|) -> press ')' -> f(g(x)|)
  • Never skip over tags
  • Never skip except over quotes
  • Never jump lines

See the commit changes to the readme for more details

And some minor bugfixes, and a debug option.

@gr0g
Copy link

gr0g commented Oct 2, 2016

@optroot "Only trigger when there is whitespace to the right" <-- Thank you

@revolter
Copy link

revolter commented Mar 4, 2017

Only trigger when there is whitespace to the right

This should not be an option, this should be default behavior! And I mean it. No one wants to add a pair of quotes right before a word. @jiangmiao please merge this and make it default.

@luan
Copy link

luan commented Mar 30, 2018

@jiangmiao please give some attention to these prs, there's a bunch of them wanting the whitespace behaviour and it keeps coming back.

@giddie
Copy link

giddie commented Jan 24, 2020

No one wants to add a pair of quotes right before a word.

Well, I kind of do: press quote and then M-e, and the word is wrapped in quotes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants