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

Autocomplete single-quotes for local macros #15

Open
BertLloyd opened this issue Jul 15, 2016 · 6 comments
Open

Autocomplete single-quotes for local macros #15

BertLloyd opened this issue Jul 15, 2016 · 6 comments

Comments

@BertLloyd
Copy link

BertLloyd commented Jul 15, 2016

Is it possible for the stata language to override atom's autocomplete for open-single-quote to give open-single-quote close-single-quote rather than the current default of open-single-quote open-single-quote?

@nickeubank
Copy link
Collaborator

I think that'd be great, though I'm afraid I'm not sure how that would be implemented. A PR on this would be welcome if you'd like to give it a shot!

@BertLloyd
Copy link
Author

Unfortunately this is way beyond my abilities.

@nickeubank
Copy link
Collaborator

:) well we'll leave it open and see if anyone picks it up
On Mon, Jul 18, 2016 at 8:56 AM BertLloyd [email protected] wrote:

Unfortunately this is way beyond my abilities.


You are receiving this because you commented.

Reply to this email directly, view it on GitHub
#15 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AJPC7YUc3gvhl-eCvivcU4MqK9DmTOvvks5qW6JEgaJpZM4JNbJY
.

@BertLloyd
Copy link
Author

A simple half-workaround would be if I could figure out how to turn off atom's autocomplete for open-single-quote.

@kylebarron
Copy link

I discovered this while writing code that I'll submit for a pull request soon. It's handled by the bracket-matcher package, not a language package. Add the below to your config.cson (the key is the `' line; you can choose what other characters you want it to autocomplete).

".source.stata":
  "bracket-matcher":
    autocompleteCharacters: [
      "()"
      "[]"
      "{}"
      "''"
      "`'"
      "\"\""
    ]

@kylebarron
Copy link

This is resolved by default and without user input in my PR: #19

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

No branches or pull requests

3 participants