Fork me on GitHub
#cursive
<
2016-06-23
>
danielcompton00:06:16

@wilkerlucio have you looked at the Cursive defined live templates? I learned a lot from them

wilkerlucio00:06:19

@danielcompton: just looked, but could not find any of then using variables in expressions =/

wilkerlucio00:06:44

one thing is being weird, is that I can't put any custom value at the expression, not even blanking it out, when I type something there it always seems to be rejected

wilkerlucio00:06:53

I'm not even able to clean the expression

wilkerlucio00:06:10

it changes when I use the mouse interface, but no custom text

wilkerlucio00:06:25

can someone please test and see if this happens out of my setup?

puzzler19:06:28

Anyone out there using parinfer in Cursive? Has it stabilized yet? (last time I tried Cursive, there were still several problems with parinfer, for example, refactoring name changes could change the semantic meaning of the code, so I've been waiting for it to mature before trying again)

cfleming23:06:20

@puzzler: No, I haven’t updated that yet. I’m still not sure whether to try to create a hybrid mode which solves those problems, or just to expose paren mode (which I’m resisting because I think it increases the user complexity considerably).

cfleming23:06:50

@wilkerlucio: Can you give an example of what you’re trying to achieve?

wilkerlucio23:06:05

@cfleming: sure, I'm trying to write a snippet to create UI components for om.next, as a pattern the component factory name is a dash-case version of the class name

wilkerlucio23:06:23

I thought I could use lowercaseAndDash(String) function to do that into the variables

wilkerlucio23:06:30

then I get into the issue I talked before

cfleming23:06:44

Ok, so you want the user to enter UiComponent for $COMP$ and have it generate ui-component for $COMP_LOWER$?

cfleming23:06:19

Let me check, one sec

cfleming23:06:31

You still have to tab through the var name, but it’s generated correctly.

puzzler23:06:53

Is there a way to disable the automatic entry of right parens when typing left parens, when paredit and parinfer are turned off?

wilkerlucio23:06:45

and actually, it is working before tabbing here, perfect 🙂

cfleming23:06:43

@puzzler: Yes, Editor-&gt;General-&gt;Smart Keys and the various matching pair options there.