Parinfer plugin

108 views
Skip to first unread message

Maurício Szabo

unread,
Feb 21, 2016, 8:50:32 AM2/21/16
to light-table...@googlegroups.com
Hello, everyone.

I'm working on a LightTable plugin to the wonderful JS library Parinfer - it's kinda like paredit but it infers when to close parenthesis based on indentation. It's usable right now, with some minor issues that I'm working on.


The only major problem I see is that, sometimes, when I open LightTable, it shows the message: "Some plugin dependencies are missing: lt_parinfer". I wasn't able to find out what's wrong yet...

Magnus Rundberget

unread,
Feb 21, 2016, 3:53:45 PM2/21/16
to Light Table Discussion
Excellent news !

A bit suprised it works with the behaviors file wiring to a function and not a LT behavior. Am I missing something or have I just missed that feature all toghether ?
Anyways the way to allow the plugin to be customizable is to embrace behaviors. That way you can make it so that users can turn it on/off, change mode etc.

Let me know if there is anything you need in terms of assistance/qa etc. I'm very keen to see this plugin come to life !

cheers
Magnus

Michael Ball

unread,
Feb 21, 2016, 6:17:01 PM2/21/16
to Light Table Discussion
Very nice to see parinfer come to Lighttable and see much potential. I tried it out and worked as described, including the plugin dependencies missing message.

One thing I noticed is that it clears the inline results for the entire file when it reformats, but that's probably something in the plan to reformat the current expression only, rather than whole file.

It looks like you were forced to use the npm/js version because lighttable is on old version of cljs. What are the pros/cons of the npm version versus the published cljs version, and do you plan to switch?

Magnus Rundberget

unread,
Mar 31, 2016, 12:22:26 PM3/31/16
to Light Table Discussion
The plugin is shaping up nicely it seems !


Haven't tried the latest version (as of today) in anger yet, but first test runs looks really promising.
I'll give it a good go for a little while and report any issues and/or send you PRs if there is anything I see that I'm able to help out with !

tx for doing this :-)

Btw. I saw a commit about the, let's put it gently, "lacking" documentation in Light Table.
If there are any particular areas you have in mind feel free to let me know or create issues for it if you feel inclined. Maybe there are some quick wins that would help as a short term solution.

The LT docs in general on most levels needs a major overhaul, I know, but it's a pretty massive effort and we're not exactly fully staffed. It's deffo on the radar if that's any consolation.


cheers
Magnus





On Sunday, 21 February 2016 14:50:32 UTC+1, Mauricio Szabo wrote:
Reply all
Reply to author
Forward
0 new messages