oakmac / sublime-text-parinfer

Parinfer plugin for Sublime Text
ISC License
57 stars 8 forks source link

Enable parinfer on open files #30

Closed facundoolano closed 4 years ago

facundoolano commented 8 years ago

When I start Sublime with some open .clj files from a previous session, Parinfer doesn't turn on by default, I have to manually enable it with Ctrl+) on each file.

ItamarShDev commented 7 years ago

any update on this issue? Atom-parinfer fixes the file on opening it, and i really miss it on sublime.

If help is needed, ill be glad to try!

oakmac commented 7 years ago

I'm not seeing this behavior on my machine.

Can you confirm that .clj file extensions are listed when you go to Preferences > Package Settings > Parinfer ?

ItamarShDev commented 7 years ago

@oakmac yes it is

pjago commented 6 years ago

it seems that's the reason: SublimeTextIssues/Core#5 On startup, because the plugin will only load after the view, we can't rely on the event handle on_load. Looking further, view.begin_edit() was deprecated in ST3, and it is causing a TypeError.

https://github.com/oakmac/sublime-text-parinfer/blob/efc770c81dd847e70162b06a7e44a922fd5735c9/sublime-parinfer.py#L214-L219