-
Notifications
You must be signed in to change notification settings - Fork 47
Configure 'disableForSelector' #77
base: master
Are you sure you want to change the base?
Conversation
…figure the disableForSelector parameter. This modification adds a single value configuration pane that is read when the package is initialized.
@lee-dohm would you consider merging this pull-request to the main branch? |
Is this going to happen any time soon? LaTeX needs it desperately, as mathmode is scoped to string. |
The PR needs changes to support the config changing after initialization.
…On Sat, Jul 22, 2017, 12:06 AM Aerijo ***@***.***> wrote:
Is this going to happen any time soon? LaTeX needs it desperately, as
mathmode is scoped to string.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#77 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAHQp0EN73Jv1AOG6-X4E4vYzS3pluRIks5sQZ-AgaJpZM4KeSTw>
.
|
I don't know how to make it work like you want, but surely the average user won't ever change it (given that it has been permanantly set from the beginning). It's only people who want one or the other that will change it, and they will probably leave it be once making that change. I really think the benefits outweigh the drawbacks here, and this feature should be made accessible to those who need it. Definitely add a warning to the option, saying that changes won't take effect until Atom is relaunched, that it is only a "work in progress" feature, but please let this happen. It really doesn't seem like @jpbarto is going to fix it any time soon. |
@Aerijo we're not going to accept a PR unfinished. If someone else wanted to take this starting point and add the finishing touches including tests and support of the configuration changing after initialization, we would definitely be interested. |
Is there a workaround I can use in the meantime then? I've tried changing the value directly, but it seems core packages can't be edited (or found) like normal ones can. I was also unsuccessful when adding a duplicate of this package to the packages folder and changing that version. |
How can I add this work around in Windows |
@lee-dohm This PR probably needs to be resubmitted, but you mentioned
I've learnt a lot more about how these packages all fit together, so I was testing this myself. Unfortunately, I found that The value of the provider did change when the settings were changed, but the behaviour (of |
This modification creates a single value configuration panel which makes the disableForSelector user configurable. The default value is '.comment, .string' but means the user can more easily change it through configuration.
TODO: the package only reads the configuration value at startup and does not currently listen for a value change.