Skip to content

Added more configurable options. Removed some annoyances.#150

Open
optroot wants to merge 10 commits into
jiangmiao:masterfrom
optroot:master
Open

Added more configurable options. Removed some annoyances.#150
optroot wants to merge 10 commits into
jiangmiao:masterfrom
optroot:master

Conversation

@optroot

@optroot optroot commented Aug 23, 2016

Copy link
Copy Markdown

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

gr0g commented Oct 2, 2016

Copy link
Copy Markdown

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

@revolter

revolter commented Mar 4, 2017

Copy link
Copy Markdown

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

luan commented Mar 30, 2018

Copy link
Copy Markdown

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

@giddie

giddie commented Jan 24, 2020

Copy link
Copy Markdown

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